Domanda

I'd like to experiment with the fourth parameter of ClientBuildManager class constructor that lets me specify the compilation options. The problem is I have to provide the third parameter that specifies the "target folder".

Previously I used the two-paremeters constructor like this:

VirtualDirectory dir = ...;
using( var buildManager = new ClientBuildManager( dir.Path, dir.PhysicalPath ) ) {
     buildManager.PrecompileApplication();
}

and it worked okay - the two parameters are quite obvious.

I have no idea where to get the third "target folder" parameter.

How do I obtain the value that can be passed as the third "target folder" parameter so that precompilation works as before?

È stato utile?

Soluzione

You can pass null for the TargetFolder if you just want to "Compiling an Application in Place". If you pass a valid folder for TargetFolder you will be "Compiling an Application for Deployment".

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top