-
Notifications
You must be signed in to change notification settings - Fork 363
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
Add relative working directory to NerdbankGitVersioning attribute #1200
base: develop
Are you sure you want to change the base?
Add relative working directory to NerdbankGitVersioning attribute #1200
Conversation
Adds support for mono repos by allowing usage of different configuration files in subdirectories.
c2ffc94
to
0c13515
Compare
@matkoch I don't think I'm responsible for all those Quodana errors during PR build :-| |
public override object GetValue(MemberInfo member, object instance) | ||
{ | ||
var version = NerdbankGitVersioningTasks.NerdbankGitVersioningGetVersion(s => s | ||
.DisableProcessLogOutput() | ||
.SetFormat(NerdbankGitVersioningFormat.json)) | ||
.SetFormat(NerdbankGitVersioningFormat.json) | ||
.When(WorkingDirectoryRelativePath != null, x => x.SetProcessWorkingDirectory(Build.RootDirectory / WorkingDirectoryRelativePath))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
is not needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My intention is to fallback to default working directory determination of ProcessTasks.StartProcess
when not providing a relative configuration file directory via the attribute
0686f32
to
d6aab06
Compare
0231425
to
d806295
Compare
7066bbe
to
985de83
Compare
0719711
to
6fe1e3b
Compare
6d02194
to
4bfee84
Compare
1ac5d51
to
85998da
Compare
e652c9a
to
6ed9e4d
Compare
Adds support for mono repos by allowing usage of different configuration files in subdirectories.
See https://github.com/dotnet/Nerdbank.GitVersioning/blob/main/doc/pathFilters.md for documentation about multiple NBGV configuration files in same repository.
Usage:
I confirm that the pull-request: