AppDomainSetup: ShadowCopyFiles, ShadowCopyDirectories

R

Rob

Hello,

I have upgraded my application from 1.1 to 2.0 framework. Now my
application is giving me two warnings on methods that have been
depreciated, SetShadowCopyFiles() and SetShadowCopyPath(). In the help
it tells me to use AppDomain.SetupInformation for these settings but I
can't get them to stick at runtime.

I don't want to create a new application domain. I would like to
configure the current application domain at startup. Does anybody know
if there is an app config file setting or alternative?

Thanks,
Rob Panosh
Advanced Software Designs
 
S

Scott M

You can still use depreciated properties, objects and methods in your code.
They just might not be available in later versions of the framework. This
gives you time to re-write and refactor your code.
 
R

Rob

Scott,

Thanks for your reply. That is the point I am in the process of trying
to rewrite my code. I need to find a way to configure the current
appdomain. I can configure the current appdomain PrivatePath (assembly
probing) using the following element in my app config file.

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="ScriptReferences"/>
</assemblyBinding>
</runtime>

What I am trying to find out is there is a way to configure (maybe app
config file, can't find anything in help) SetShadowCopyFiles() and
SetShadowCopyPath() during startup when the current appdomain is
created.

Rob
 
R

Rob

I'm simply amazed that nobody can assist me on this. All I want to be
able to do is change these settings in the current application domain.
I can't undstand why MS would obsolete the functions I used in the 1.1
framework.

Rob
 
T

Taylor Brown

I'm looking to find out the exact same thing. I would rather not write
a Launcher executable if I can help it.

Is there a way to guarantee that the default AppDomain has
ShadowCopyFiles turned on before it performs the first bind?

Cheers,

Taylor
 
R

Rob

Taylor,

Not sure, as you can see nobody seems to know much about this topic.

Cheers,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top