Repository navigation
Use eng/common/dotnet.sh for VMR license scan instead of manual SDK install - #8063
Conversation
…nstall Follow-up to #8012. That change worked around an SDK-resolution regression by installing the global.json-matched SDK via eng/common/tools.sh and invoking it through $(DotNetPath)/dotnet. Per review feedback, eng/common/dotnet.sh already acquires the correct SDK and invokes it, so use it directly and drop the manual install step. Related to dotnet/source-build#5623 Co-authored-by: Copilot <[email protected]> Copilot-Session: e7257ff7-f19d-4b7c-ba41-cdac231893fb
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Not merging this until I can try to rerun the license scan off this branch to confirm it doesn't regress anything |
|
Validation: I pushed this branch to the dnceng/internal
|
|
✅ Validation passed. The license-scan run off this branch completed Succeeded:
Switching to |
Follow-up to #8012.
#8012 fixed the VMR license scan
exit 155failure (the shared source-build test container ships a newer .NET 10 SDK than this branch'sglobal.jsonpins, so the container's systemdotnetcouldn't run the tests) by installing the global.json-matched SDK viaeng/common/tools.shand invoking it through$(DotNetPath)/dotnet.Per @ViktorHofer's review feedback (#8012 (comment)),
eng/common/dotnet.shalready acquires the correct SDK (it sourcestools.sh, runsInitializeDotNetCli true, then invokes the acquireddotnet), so this replaces the manual install step with a direct./eng/common/dotnet.sh testinvocation. TheRun Testsstep already runs withworkingDirectory: $(Build.SourcesDirectory), so the relative path resolves.Related to dotnet/source-build#5623