File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set DOTNET_NOLOGO=true
9
9
10
10
@ REM Sets the output of GetMSBuildPath.ps1 to the MSBuildPath environment variable.
11
11
@ REM https://stackoverflow.com/a/3417728/294804
12
- FOR /F " usebackq delims=" %%v IN (`powershell -NonInteractive -NoLogo -NoProfile -ExecutionPolicy Unrestricted -File " %~dp0 eng\scripts\GetMSBuildPath.ps1" `) DO set " MSBuildPath = %%~v "
12
+ FOR /F " usebackq delims=" %%v IN (`powershell -NonInteractive -NoLogo -NoProfile -ExecutionPolicy Unrestricted -File " %~dp0 eng\scripts\GetMSBuildPath.ps1" %VisualStudioMinimumVersion% `) DO set " MSBuildPath = %%~v "
13
13
14
14
if not defined MSBuildPath (
15
15
echo Visual Studio must be installed to allow building via MSBuild.
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ variables:
36
36
# Opt out of automatically injecting Codesign Validation into the pipeline.
37
37
# See: https://aka.ms/gdn-injection
38
38
runCodesignValidationInjection : false
39
+ # Set the minimum visual studio version. This overrides the version in version.json for the build toolset.
40
+ MinVisualStudioVersion : ' 17.0'
39
41
40
42
# ##################################################################################################################################################################
41
43
# STAGES
@@ -49,7 +51,9 @@ stages:
49
51
parameters :
50
52
BuildConfiguration : Debug
51
53
ArtifactName : ' $(Build.BuildNumber)-Debug'
54
+ VisualStudioMinimumVersion : $(MinVisualStudioVersion)
52
55
- template : templates/build-pull-request.yml
53
56
parameters :
54
57
BuildConfiguration : Release
55
58
ArtifactName : ' $(Build.BuildNumber)'
59
+ VisualStudioMinimumVersion : $(MinVisualStudioVersion)
Original file line number Diff line number Diff line change 7
7
variables :
8
8
BuildConfiguration : ${{ parameters.BuildConfiguration }}
9
9
ArtifactName : ${{ parameters.ArtifactName }}
10
+ VisualStudioMinimumVersion : ${{ parameters.VisualStudioMinimumVersion }}
10
11
steps :
11
12
12
13
# ##################################################################################################################################################################
43
44
- task : NuGetAuthenticate@1
44
45
displayName : Authenticate NuGet
45
46
47
+ # Sets the VisualStudioMinimumVersion variable for the job.
48
+ # https://docs.microsoft.com/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=powershell#set-variable-properties
49
+ - powershell : Write-Host "##vso[task.setvariable variable=VisualStudioMinimumVersion;isoutput=true]$(VisualStudioMinimumVersion)"
50
+ displayName : Set VisualStudioMinimumVersion Variable
51
+ # Name is required to reference the variables created within this build step in other stages.
52
+ name : SetVisualStudioMinimumVersionVariable
53
+
46
54
# Runs the full build of the projects in the repository. See Build.proj for details.
47
55
- script : $(Build.SourcesDirectory)/build.cmd /v:normal /p:Configuration=$(BuildConfiguration) /p:CIBuild=true
48
56
displayName : Build All Projects
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json" ,
3
- "version" : " 17.14 " ,
3
+ "version" : " 18.1 " ,
4
4
"cloudBuild" : {
5
5
"setAllVariables" : true
6
6
}
You can’t perform that action at this time.
0 commit comments