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
I would like to make GitVersion create gitversion.json file in different location that the default one $([MSBuild]::EnsureTrailingSlash($(BaseIntermediateOutputPath)))gitversion.json.
One of the simplest ways of doing this is by defining value for this property in Directory.Build.props file.
The problem is that GitVersion.MsBuild.props does not allow default value.
Detailed Description
A value for GitVersionOutputFile property in GitVersion.MsBuild.props should be set only if the property does not have a value assigned already.
Context
I would like to use gitversion.json file in FrontEnd project which due to some external requirements expects source file to be located in particular location. I would like to change the default location.
I would like to make GitVersion create
gitversion.json
file in different location that the default one$([MSBuild]::EnsureTrailingSlash($(BaseIntermediateOutputPath)))gitversion.json
.One of the simplest ways of doing this is by defining value for this property in Directory.Build.props file.
The problem is that GitVersion.MsBuild.props does not allow default value.
Detailed Description
A value for GitVersionOutputFile property in GitVersion.MsBuild.props should be set only if the property does not have a value assigned already.
Context
I would like to use gitversion.json file in FrontEnd project which due to some external requirements expects source file to be located in particular location. I would like to change the default location.
Possible Implementation
<GitVersionOutputFile Condition="'$(GitVersionOutputFile)' == ''">$([MSBuild]::EnsureTrailingSlash($(BaseIntermediateOutputPath)))gitversion.json</GitVersionOutputFile>
Condition
attribute defined as above should be sufficient. I can prepare a PR if the requested improvement is acceptable by maintainers 😊The text was updated successfully, but these errors were encountered: