aspnet_compiler throw error - TC buildstep exited with code 0
Hello,
Below TC log:
[07:10:13] : [Step 42/69] Microsoft (R) ASP.NET Compilation Tool version 4.6.1590.0
[07:10:13] : [Step 42/69] Utility to precompile an ASP.NET application
[07:10:13] : [Step 42/69] Copyright (C) Microsoft Corporation. All rights reserved.
[07:10:13] : [Step 42/69] ....
[07:10:56] : [Step 42/69] error CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral...
[07:10:57] : [Step 42/69] Process exited with code 0
ASP.NET compiler comes from c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe
Any idea why TC exited build step with code 0 - why not exited with error???
Please sign in to leave a comment.
Hi Thomas,
what kind of Build Step are you running? Is it a manual script or are you using VisualStudio/MSBuild?
Hi,
Runner type: command line
Run: Custom script
Custom Script:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -p "%env.packagepath%\App.Published" -v / "%env.packagepath%\App"
Hi Thomas,
Did the aspnet_compiler exit also with code 0? Is the exit code of the compiler somewhere?
Hello,
There is no nth more than this what you see in TC log .
Hi Thomas,
what happens when you run the same command on a development machine? Does it fail with an error different than 0?
Yes, the same on development machine. Not depends of machine/agent
Hi Thomas,
thanks for that. If the same happens in the development machine, it returns 0, then I'd suggest contacting the asp net for it to ask why it returns 0 for a failed compilation.