-
Notifications
You must be signed in to change notification settings - Fork 654
[Bug] -output file -outputfile gitversion.json exited with code 1. #2993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you please try the command line instead? If it too fails, it may be easier to figure out why. |
Yeah, looks like GitVersion itself is working fine. If there's something wrong with |
Perhaps it's related to this case : the slash seems to be the wrong way before gitversion.exe \net48/gitversion.exe so perhaps the error is due to not being able to find GitVersion.exe in the GitAction |
I have replicated the case with a very simple test project It is the default "Hello World" .csproj in visual studio which uses the default MSBuild git action from GitHub and uses the GitVersion.MSBuild NuGet Package. You can see exactly what has been done and replicate the error with a push to main or PR to GitVersion branch |
@ucapbba, for GitVersion to execute successfully, it needs the full repository history. By default, - uses: actions/checkout@v2
with:
fetch-depth: 0 |
Testing proposed fix
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. |
This issue was closed because it has been stalled for 30 days with no activity. Thank you for your contributions |
Uh oh!
There was an error while loading. Please reload this page.
Description of issue
I have added GitVersion.MsBuild.5.8.1to my GUI.csproj (contained in a Visual Studio 2017 solution with many projects). My .yml contains the line run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
which is run after push. Having added GitVersion I see (full paths reduced):
Analysis
The line where error occurs in GitVersion.MsBuild.target is
Exec Command="$(GitVersionFileExe) "$(MSBuildProjectDirectory)" $(GitVersion_ToolArgments)"
I add my gitversion.json which appeared in my project folder after local build (I also tried adding to source control but I guess not required) , and my msbuild.yml and GUI.csproj used here:
gitversion - Copy.json.txt
msbuild - Copy.yml.txt
GUI - Copy.csproj.txt
Context
This is the first time I have used GitVersion. I installed using NuGet package and removed AssemblyInfo.cs from the .csproj. The repository is private, if useful I can add a user to assist.
I have been following here to try to understand the issue
https://gitversion.net/docs/usage/msbuild
Your Environment
VS 2017 / Net 4.8 / Windows 10 / GitVersion.MsBuild.5.8.1
Thankyou
The text was updated successfully, but these errors were encountered: