Post-build events with VS.NET troubles

Hmm. It would seem that Visual Studio .NET 2003 doesn't like running post-build events for projects loaded from a UNC path. How terribly unfortunate. The error it gives is:

Performing Post-Build Event...
'\\unc\path\here'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
'PostBuildEvent.bat' is not recognized as an internal or external command,
operable program or batch file.

 

4 Comments

  • can you place the .bat file on a local folder, and have do whatever you need across the UNC's?

  • I don't think so. The IDE is calling a PostBuildEvent.bat file that it generates, and I don't see a way to control where that file gets created. The only option would be to put it in the Windows directory (where it defaults to) or build onto a local folder, neither of which is viable.

  • This problem apparently has a workaround and that is to map the UNC share to a drive and using that to load the project instead of UNC path.



    Post build event will succeed in this case.



    Thank you for reporting this issue, I am from C# IDE QA and I am happy to tell you that we are working to fix this in our future product release.



    Thanks,

    Suma[MS]

  • Suma,



    Wow, customer service does house calls. :) Thanks, I also figured out that workaround. Glad to hear it'll be fixed in the future.

Comments have been disabled for this content.