ASPNETCOMPILER:错误 ASPRUNTIME:目标目录不为空
我有一个需要使用 nant 脚本构建的 Web 应用程序。解决方案中的所有项目都构建良好,但每次在构建结束时都会出现此错误。我找不到关于解决此错误的很多有用信息。以前有人遇到过并解决过此类问题吗?任何帮助将不胜感激。
[执行] ASPNETCOMPILER:错误 ASPRUNTIME:目标目录是 不为空,并且似乎不存在 包含之前编译的 应用。请删除它 手动,或选择不同的 目标。 [C:\SRC\BorgWorld\trunk\apps\Zombies.metaproj]
I have a web application that needs to be built using a nant script. All the projects in the solution build fine but for this error that crops up each time at the end of the build. I couldn't find much useful information on resolving this error. Has anyone encountered and fixed this kind of issue before? Any help would be much appreciated.
[exec] ASPNETCOMPILER : error
ASPRUNTIME: The target directory is
not empty, and does not appear to
contain a previously compiled
application. Please delete it
manually, or choose a different
target.
[C:\SRC\BorgWorld\trunk\apps\Zombies.metaproj]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
中删除临时网站文件夹
从c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
Delete the temporary website folder from
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
我只需删除预编译网站的文件夹即可实现此目的。南特取得了成功,所有项目均成功建成。
I got this to work by just deleting the folder to where the website was being precompiled. The nant succeeded with all projects built successfully.
我通过删除
deploy
文件夹中除.wdproj
文件之外的所有内容来使其正常工作。I got it working by deleting everything except the
.wdproj
file in thedeploy
folder.就我而言,它是解决方案根目录中的 PrecompiledWeb 文件夹。 msbuild 日志在抱怨 metaproj 文件夹之前指向它,在我的情况下该文件夹甚至不存在。
In my case it was PrecompiledWeb folder in the solution root directory. The msbuild log points at it before complaining about the metaproj folder, which does not even exist in my case.