msbuild + aspnet_compiler.exe + compressed build folder = ASPNETCOMPILER: Object reference not set to an instance of an object.

Discussion msbuild + aspnet_compiler.exe + compressed build folder = ASPNETCOMPILER: Object reference not set to an instance of an object.

  • Thursday, September 20, 2012 8:09 AM
     
     

    We use TFS to msbuild our .NET 4 applications. (VS\TFS2010)

    All worked well till compression was enabled on the output folder and we got an aspnet compiler crash.

    Building directly from inside visual studio (devenv) still worked.

    Also executing the aspnet_compiler command on a command prompt still worked.

    But when building the solution from msbuild this error appeared.

    Disabling compression resolved the problem....

All Replies

  • Monday, September 24, 2012 1:55 AM
    Moderator
     
     
    Thank you reporting the issue, I'm looking into it. Will update soon.

    Forrest Guo | MSDN Community Support | Feedback to manager

  • Monday, September 24, 2012 6:08 AM
    Moderator
     
     

    Hi,

    The statements is a little confusing. Do you run into this error while build with "MSBuild" or build in TFS build service? In either case, I suppose there're detail logs, can you post the error logs here?

    thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager