-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[msbuild] Pass /p:RestoreConfigFile to 'dotnet build' in addition to 'dotnet restore'. #20008
[msbuild] Pass /p:RestoreConfigFile to 'dotnet build' in addition to 'dotnet restore'. #20008
Conversation
…'dotnet restore'. Because apparently some packages are restored during the build, and not during restore. Sample log: ``` FindAotCompiler Assembly = d:\AzDO\_work\3\s\xamarin-macios\tests\dotnet\Windows\bin\dotnet\packs\Microsoft.iOS.Sdk\17.2.9127-ci.pr.gh19944\\tools\msbuild\iOS\Xamarin.iOS.Tasks.dll Parameters RuntimeIdentifier = ios-arm64 SessionId = 78de2a6cda9c8daebf9e6faac5b3b7dd8c8a555b6dafc35bd89e85458a078e87 TargetFrameworkMoniker = .NETCoreApp,Version=v9.0,Profile=ios [... xma log output ...] Tool /Users/builder/Library/Caches/Xamarin/XMA/SDKs/dotnet/dotnet execution started with arguments: restore /p:RestoreConfigFile=/Users/builder/Library/Caches/Xamarin/XMA/SDKs/dotnet/NuGet.config /bl:/var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.binlog /var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.csproj Tool /Users/builder/Library/Caches/Xamarin/XMA/SDKs/dotnet/dotnet execution finished (exit code = 0). Checking the state of installed workloads... [... workload install log output ...] Determining projects to restore... Restored /var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.csproj (in 2.12 sec). Tool /Users/builder/Library/Caches/Xamarin/XMA/SDKs/dotnet/dotnet execution started with arguments: build /p:OutputFilePath=/var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/Output.txt /p:RuntimeIdentifier=ios-arm64 /t:ComputeAotCompilerPath /bl:/var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.binlog /var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.csproj Tool /Users/builder/Library/Caches/Xamarin/XMA/SDKs/dotnet/dotnet execution finished (exit code = 1). MSBuild version 17.10.0-preview-24076-01+e7a44d757 for .NET Determining projects to restore... /var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.csproj : error NU1102: Unable to find package Microsoft.NET.ILLink.Tasks with version (>= 9.0.0-preview.2.24076.4) /var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.csproj : error NU1102: - Found 15 version(s) in nuget.org [ Nearest version: 8.0.100-1.23067.1 ] Failed to restore /var/folders/cv/nscnn1lx1x5793d6mqhnh6480000gn/T/tmp50e7b53.tmp/ComputeAotCompilerPath.csproj (in 608 ms). Build FAILED. ```
💻 [PR Build] Tests on macOS M1 - Mac Ventura (13.0) passed 💻✅ All tests on macOS M1 - Mac Ventura (13.0) passed. Pipeline on Agent |
💻 [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻✅ All tests on macOS M1 - Mac Big Sur (11.5) passed. Pipeline on Agent |
📚 [PR Build] Artifacts 📚Packages generatedView packagesPipeline on Agent |
💻 [CI Build] Windows Integration Tests passed 💻✅ All Windows Integration Tests passed. Pipeline on Agent |
✅ API diff for current PR / commitLegacy Xamarin (No breaking changes)
NET (empty diffs)
✅ API diff vs stableLegacy Xamarin (No breaking changes).NET (No breaking changes)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🚀 [CI Build] Test results 🚀Test results✅ All tests passed on VSTS: simulator tests. 🎉 All 170 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
Because apparently some packages are restored during the build, and not during restore.
Sample log: