Skip to content

Commit

Permalink
dist update
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Feb 8, 2025
1 parent b3ad99f commit 1fed562
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions dist/tools/libs/gitversion.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class GitVersionSettingsProvider extends SettingsProvider {
const overrideConfig = this.buildAgent.getListInput("overrideConfig");
const updateAssemblyInfo = this.buildAgent.getBooleanInput("updateAssemblyInfo");
const updateAssemblyInfoFilename = this.buildAgent.getInput("updateAssemblyInfoFilename");
const updateProjectFiles = this.buildAgent.getBooleanInput("updateProjectFiles");
return {
targetPath,
disableCache,
Expand All @@ -25,7 +26,8 @@ class GitVersionSettingsProvider extends SettingsProvider {
configFilePath,
overrideConfig,
updateAssemblyInfo,
updateAssemblyInfoFilename
updateAssemblyInfoFilename,
updateProjectFiles
};
}
getCommandSettings() {
Expand Down Expand Up @@ -107,7 +109,8 @@ class GitVersionTool extends DotnetTool {
configFilePath,
overrideConfig,
updateAssemblyInfo,
updateAssemblyInfoFilename
updateAssemblyInfoFilename,
updateProjectFiles
//
} = options;
if (disableCache) {
Expand Down Expand Up @@ -141,6 +144,9 @@ class GitVersionTool extends DotnetTool {
}
}
}
if (updateProjectFiles) {
args.push("/updateprojectfiles");
}
return args;
}
getCommandArguments(workDir, options) {
Expand Down
Loading

0 comments on commit 1fed562

Please sign in to comment.