我怎么指定为"目标文件夹"参数ClientBuildManager构造? [英] What do I specify as the "target folder" parameter to ClientBuildManager constructor?

查看:183
本文介绍了我怎么指定为"目标文件夹"参数ClientBuildManager构造?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试 ClientBuildManager类的构造函数的第四个参数这让我指定的编译选项。问题是我必须提供第三个参数,指定了目标文件夹。

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我用了两paremeters构造是这样的:

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.

我如何获得可传递的第三个目标文件夹参数的值,使precompilation像以前一样工作?

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

推荐答案

您可以传递null 作为TargetFolder如果你只是想的编译到位的应用程序。如果你传递一个有效的文件夹TargetFolder您将 编译应用程序的部署

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

这篇关于我怎么指定为"目标文件夹"参数ClientBuildManager构造?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆