Re: help with error message: "exited with code 1"

3 messages Options
Embed this post
Permalink
kingpoop

Re: help with error message: "exited with code 1"

Reply Threaded More More options
Print post
Permalink
When i try to compile the NLog project i get the following error.
Can anyone tell me why?
Thanks,
Mark

Error 3 The command ""C:\Projects\subversion\NLog\src\NLog\..\..\tools\UpdateBuildNumber.exe" "C:\Projects\subversion\NLog\src\NLog\..\..\NLog.version" "C:\Projects\subversion\NLog\src\NLog\AssemblyBuildInfo.cs" "C:\Projects\subversion\NLog\src\NLog\..\..\build\NLog.buildversion"" exited with code 1. NLog.vs2005
Jaroslaw Kowalski

Re: help with error message: "exited with code 1"

Reply Threaded More More options
Print post
Permalink
This can be related to the fact that you're using subversion client which NLog doesn't know about.

NLog tries to detect build number by looking at SVN files. To prevent it from doing so, just modify NLog.version file by replacing asterisk with current SVN revision.

Let me know if this fixes your issue.
CMercs

Re: help with error message: "exited with code 1"

Reply Threaded More More options
Print post
Permalink
I am getting the same error below...  Notice that I don't have Subversion.

Error 1 The command ""C:\Projects\3rd Party Code\NLog-20060915\src\NLog\..\..\tools\UpdateBuildNumber.exe" "C:\Projects\3rd Party Code\NLog-20060915\src\NLog\..\..\NLog.version" "C:\Projects\3rd Party Code\NLog-20060915\src\NLog\AssemblyBuildInfo.cs" "C:\Projects\3rd Party Code\NLog-20060915\src\NLog\..\..\build\NLog.buildversion"" exited with code 1. NLog.vs2005

If i look in Project Properties under Build Events I see the following;

"$(ProjectDir)..\..\tools\UpdateBuildNumber.exe" "$(ProjectDir)..\..\NLog.version" "$(ProjectDir)AssemblyBuildInfo.cs" "$(ProjectDir)..\..\build\NLog.buildversion"

I never had this problem before.  I've been using NLog for a while.  I tried redownloading everything and overwriting what I had but that didn't change anything.

I thought that the dot-dot's (..) might not be working and it's trying to interpret them literally rather than moving up the tree.   I changed ProjectDir to SolutionDir and all that did was get me;



I'm using SourceSafe (which puts the vss files in the folder), I have no SubVersion files.  I'm using VS 2005 Professional Edition.