【问题标题】:Unable to compile web project with sub-web-projects with MSBuild无法使用 MSBuild 编译带有子 Web 项目的 Web 项目
【发布时间】:2011-09-01 16:58:24
【问题描述】:

我正在尝试使用 MSBuild 编译一个 Web 项目解决方案,该解决方案将其他 Web 项目作为子文件夹,但无法解决该问题:

ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

我已经在 IIS 中创建了一个站点,并为所有也是 Web 项目的子文件夹创建了虚拟目录(正如它所建议的那样),它现在可以在 VS2010 中编译,但是在使用 MSBuild 时仍然会为根项目获取这个( aspnet_compiler.exe)。

有没有办法让我看到它在 VS 中是如何工作的,以便我可以使用该命令行?

【问题讨论】:

    标签: .net visual-studio-2010 msbuild continuous-integration web-project


    【解决方案1】:

    哦,seems 你可以使用 VS 使用 devenv.com 进行重建:

    "C:\progfiles\msvs10\common7\ide\devenv.com" "SolutionFile.sln" /重建

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多