JPI

Hello,
I am using the WorkflowCompiler class to generate an assemby in a directory.
Each time I am invoking the Compile method I get a new directory in C:\Documents and Settings\UserName\Local Settings\Temp . It contains the pdb file of the assembly.
I wonder how to specifiy to WorkflowCompiler to remove this directory
It is boring because I get a large collection of temp dir as we often call the compiler.

I'v tried to specifiy to WorkflowcompilerParameters not to keep the files, but it does not work.
Code Snippet

cp.TempFiles = new TempFileCollection( @"C:\",false);


The WorkflowCompilerResults also returns nothing in cr.TempFiles.

Any ideas to remove this temporary directory How to get its name

J-P



Re: Windows Workflow Foundation Temporary directory left by WorkflowCompiler

Tom Lake - MSFT

Unfortunately there is no setting you can set that will automatically remove the temporary files or to get its location. What are your concerns about having the files / directories left






Re: Windows Workflow Foundation Temporary directory left by WorkflowCompiler

JPI

Thanks for your answer Tom.
My concern was about the numbers of directories left on the disk. I would like to leave the disk as clean as it was before to run my application.





Re: Windows Workflow Foundation Temporary directory left by WorkflowCompiler

Josh Hanks

I have a different concern about these files / directories. I am compiling the Workflows in a Web Service. When a user hits this Web Service, we manually impersonate them. When the workflows are compiled, the temp .pdb files are placed in C:\WINDOWS\Temp rather than C:\Documents and Settings\user\Local Settings\Temp. The problem is that the user does not have permissions to C:\WINDOWS\Temp, nor do I want to give them these permissions. Is there any way to overcome this