Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net Visual studio 2010对话框停止自动生成_Asp.net_Visual Studio 2010_Build Automation - Fatal编程技术网

Asp.net Visual studio 2010对话框停止自动生成

Asp.net Visual studio 2010对话框停止自动生成,asp.net,visual-studio-2010,build-automation,Asp.net,Visual Studio 2010,Build Automation,我正在进行一个使用NAnt自动生成的项目。自动构建包括清理机器的NAnt任务,包括删除和重新创建虚拟目录、清除VSWebCache等。机器重置后,它将尝试使用以下命令编译站点: <exec program="${visualstudio.install.dir}\devenv.com" commandline="SolutionFile.sln" failonerror="true"/> 事实上,我的机器上有3个不同版本的.NET——我处理多个项目。我无法提前配置站点,因为构建脚本

我正在进行一个使用NAnt自动生成的项目。自动构建包括清理机器的NAnt任务,包括删除和重新创建虚拟目录、清除VSWebCache等。机器重置后,它将尝试使用以下命令编译站点:

<exec program="${visualstudio.install.dir}\devenv.com" commandline="SolutionFile.sln" failonerror="true"/>
事实上,我的机器上有3个不同版本的.NET——我处理多个项目。我无法提前配置站点,因为构建脚本无论如何都会破坏我的配置。我想我需要的要么是一种自动接受对话框的方式(就像我单击了YES按钮一样),要么是一个NAnt任务,它将自动将vdir设置为ASP.NET 4.0应用程序


我有自由修改构建脚本,但我不能简单地删除重置计算机的部分——我们的构建框与其他项目共享,我们必须在运行编译之前将所有内容重置为已知的良好状态。

直接使用MSBUILD,不要使用devenv。这是一个完整的IDE,您只需要构建它

Microsoft Visual Studio

The web (URL) is currently configured for use with ASP.NET 1.1.  Web project (name) is targeting ASP.NET 4.0; if not configured some features may make incorrect assumptions, and pages designed with the tool may not render correctly.

Would you like the site to be configured for use with ASP.NET 4.0?