gpt4 book ai didi

msbuild - 巡航控制 ASPNETCOMPILER : error ASPRUNTIME: The precompilation target directory

转载 作者:行者123 更新时间:2023-12-01 23:18:14 24 4
gpt4 key购买 nike

当我尝试通过 CruiseControl 和 MSBuild 版本 4 构建解决方案文件时,我收到以下错误

ASPNETCOMPILER : error ASPRUNTIME: The precompilation target directory

它从何而来,如何避免?

最佳答案

您需要仔细检查预编译目录位置。

你需要:

  • 删除其内容(如“ASPNETCOMPILER : error ASPRUNTIME: Target Directory not empty”)
  • 检查其路径(解决方案文件中的Debug.AspNetCompiler.TargetPathRelease.AspNetCompiler.TargetPath)是否可写(例如,您不能在根目录中写入ClearCase 中动态 View 的目录:M:\MyView)
  • 检查 Cruise Control 是否可以访问您的 View (尤其是动态 View 时)

如“Trying to Build and Publish Asp.net website from command line using aspnet_compiler”所示,错误信息通常更完整,类似于:

Error: error ASPRUNTIME: The precompilation target directory
(c:\Inetpub\wwwroot\WebsiteOne)
cannot be in the same tree as the source application directory
(c:\inetpub\wwwroot\WebsiteOne).

来自博文“Getting Started with CruiseControl.NET”:

For web solutions, update the TargetPath for the Debug and/or Release build of the application to be outside of the source application directory.
Otherwise, you will receive the following error:

ASPNETCOMPILER : error ASPRUNTIME: The precompilation target directory cannot be in the same tree as the source application directory.

This can be done by modifying the following in the solution file:

Debug.AspNetCompiler.TargetPath = “c:\ccnet\PrecompiledWeb\SampleWeb\”
Release.AspNetCompiler.TargetPath = “c:\ccnet\PrecompiledWeb\SampleWeb\”

Alternative, one may update the Output location found in the application MSBuild properties.

You may be wondering why an updated solution won’t be updated with the next scheduled build. As it works out (and makes sense) only changes which are applied to source control are pulled onto the build box.

关于msbuild - 巡航控制 ASPNETCOMPILER : error ASPRUNTIME: The precompilation target directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14332794/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com