18

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]

tsps
  • 1,200
  • 3
  • 13
  • 25

3 Answers3

17

Delete the temporary website folder from

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

Adrian
  • 194
  • 1
  • 3
  • 4
    Also delete the contents of the same folder under Framework64: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files – Debby Mendez Aug 14 '14 at 19:45
14

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.

tsps
  • 1,200
  • 3
  • 13
  • 25
4

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

PaperThick
  • 2,749
  • 4
  • 24
  • 42