File tree 2 files changed +22
-3
lines changed
azure-pipelines-templates
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,26 @@ steps:
68
68
eq(variables['DownloadMDP'], true),
69
69
ne(variables['MDP_BUILDID'], '')
70
70
)
71
- displayName : Set MDP path
71
+ displayName : Copy MDP to build tool
72
72
inputs :
73
73
targetType : ' inline'
74
74
script : |
75
- Write-Host "##vso[task.setvariable variable=NF_MDP_MSBUILDTASK_PATH]$(Pipeline.Workspace)\mdp"
75
+ # Find which VS version is installed
76
+ $VsWherePath = "${env:PROGRAMFILES(X86)}\Microsoft Visual Studio\Installer\vswhere.exe"
77
+
78
+ Write-Output "VsWherePath is: $VsWherePath"
79
+
80
+ $VsInstance = $(&$VSWherePath -latest -property displayName)
81
+
82
+ Write-Output "Latest VS is: $VsInstance"
83
+
84
+ # copy MDP file to msbuild location
85
+ $VsPath = $(&$VsWherePath -latest -property installationPath)
86
+
87
+ Write-Debug "Copy MDP DLL to msbuild location"
88
+
89
+ $msbuildPath = $VsPath + "\MSBuild"
90
+
91
+ $extensionPath = $msbuildPath + "\nanoFramework\v1.0"
92
+
93
+ Copy-Item -Path "${env:Pipeline_Workspace}\mdp" -Destination $msbuildPath -Recurse
Original file line number Diff line number Diff line change @@ -1288,7 +1288,6 @@ jobs:
1288
1288
persistCredentials : true
1289
1289
1290
1290
- template : azure-pipelines-templates/check-mscorlib-to-test.yml
1291
- - template : azure-pipelines-templates/check-mdp-for-build.yml
1292
1291
1293
1292
# Download nanoclr from build artifacts
1294
1293
- task : DownloadBuildArtifacts@1
@@ -1305,6 +1304,8 @@ jobs:
1305
1304
inputs :
1306
1305
GitHubToken : $(GitHubToken)
1307
1306
1307
+ - template : azure-pipelines-templates/check-mdp-for-build.yml
1308
+
1308
1309
- template : azure-pipelines-templates/install-nuget.yml@templates
1309
1310
1310
1311
- task : Cache@2
You can’t perform that action at this time.
0 commit comments