You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing a build with dotnet build, an error appears when I build a branch who's name that contains a /.
error NETSDK1018: Invalid NuGet version string: '0.0.294+domain/orders.d71f59f'.
Steps to Reproduce
usingSystem.Reflection;usingSomeNs;[assembly:AssemblyVersion(AssemblyInfo.Version)][assembly:AssemblyFileVersion(AssemblyInfo.SimpleVersion)][assembly:AssemblyInformationalVersion(AssemblyInfo.InformationalVersion)]namespaceSomeNs;/// <summary>/// A class that contains information about this assembly, such as the version number./// </summary>// ReSharper disable MemberCanBePrivate.GlobalinternalstaticclassAssemblyInfo{/// <summary>/// Simple release-like version number, like 4.0.1./// </summary>publicconststringSimpleVersion=ThisAssembly.Git.BaseVersion.Major+"."+ThisAssembly.Git.BaseVersion.Minor+"."+ThisAssembly.Git.BaseVersion.Patch;/// <summary>/// Full version, including commits since base version file, like 4.0.1.598./// </summary>publicconststringVersion=SimpleVersion+"."+ThisAssembly.Git.Commits;/// <summary>/// Full version, including commits since base version file and commit id, like 4.0.1.598-39cf84e./// </summary>publicconststringInformationalVersion=Version+"-"+ThisAssembly.Git.Commit;}
This works fine, unless you switch to a branch with slashes:
git switch -c branch/with/slash
dotnet build
Expected Behavior
Acts like version 2.3.0 or upgrade instructions what to change for 3.0.0.
Exception with Stack Trace
n/a
Version Info
Bug since version 3.0.0
Additional Info
n/a
The text was updated successfully, but these errors were encountered:
Do this only when setting a default Version since otherwise the build fails. But we don't want to change the determined GitBranch so it remains accurate.
Closes#244.
Do this only when setting a default Version since otherwise the build fails. But we don't want to change the determined GitBranch so it remains accurate.
Closes#244.
Describe the Bug
When doing a build with
dotnet build
, an error appears when I build a branch who's name that contains a/
.Steps to Reproduce
This works fine, unless you switch to a branch with slashes:
Expected Behavior
Acts like version 2.3.0 or upgrade instructions what to change for 3.0.0.
Exception with Stack Trace
n/a
Version Info
Bug since version 3.0.0
Additional Info
n/a
The text was updated successfully, but these errors were encountered: