Skip to content

Commit 89cd903

Browse files
Use NetCurrent
1 parent 177d2c4 commit 89cd903

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

search-cache-pipeline.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ extends:
137137
-SkipNonVersionedFiles
138138
displayName: Install latest daily .NET version
139139
140-
- bash: >
141-
$(Build.SourcesDirectory)/.dotnet/dotnet run --framework net11.0 --no-build
142-
--project $(Build.SourcesDirectory)/tools/Microsoft.TemplateSearch.TemplateDiscovery/Microsoft.TemplateSearch.TemplateDiscovery.csproj
143-
-- --basePath $(System.DefaultWorkingDirectory)/NugetDownloadDirectory --allowPreviewPacks -v --test --diff $(EnableDiffMode)
140+
- bash: |
141+
projectPath=$(Build.SourcesDirectory)/tools/Microsoft.TemplateSearch.TemplateDiscovery/Microsoft.TemplateSearch.TemplateDiscovery.csproj
142+
netCurrent=$($(Build.SourcesDirectory)/.dotnet/dotnet msbuild $projectPath -getProperty:NetCurrent)
143+
echo "Resolved NetCurrent: $netCurrent"
144+
$(Build.SourcesDirectory)/.dotnet/dotnet run --no-build \
145+
--framework $netCurrent \
146+
--project $projectPath \
147+
-- --basePath $(System.DefaultWorkingDirectory)/NugetDownloadDirectory --allowPreviewPacks -v --test --diff $(EnableDiffMode)
144148
displayName: Run Cache Updater
145149
146150
- task: CopyFiles@2

0 commit comments

Comments
 (0)