ASPNETCOMPILER : error ASPRUNTIME: Target Directory not empty

时间秒杀一切 提交于 2019-12-03 16:07:23

问题


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]


回答1:


Delete the temporary website folder from

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\




回答2:


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.




回答3:


I got it working by deleting everything except the .wdproj file in the deploy folder.



来源:https://stackoverflow.com/questions/3821797/aspnetcompiler-error-aspruntime-target-directory-not-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!