What do I specify as the “target folder” parameter to ClientBuildManager constructor?

懵懂的女人 提交于 2019-12-08 02:53:25

问题


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?


回答1:


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".



来源:https://stackoverflow.com/questions/10830044/what-do-i-specify-as-the-target-folder-parameter-to-clientbuildmanager-constru

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!