sdk: Updating from 7.0.100 to 7.0.101 crashes msbuild on mac
Describe the bug
We were using 7.0.100-rtm.22519.39 to build maui, but when we updated to 7.0.101-servicing.22571.1 the mac builds crashed.
To Reproduce
- Use your mac
- Clone the PR: https://github.com/dotnet/maui/pull/12152
- Restore dotnet tools:
dotnet tool restore - Install a local dotnet
dotnet cake --target=dotnet - Use the local dotnet and build the msbuild tasks:
bin/dotnet/dotnet build Microsoft.Maui.BuildTasks.slnf /target:Build /property:configuration=Debug /maxcpucount:1 /binarylogger:Microsoft.Maui.BuildTasks-mac-Debug-Build-dotnet.binlog - Use the local dotnet and build the solution:
bin/dotnet/dotnet build Microsoft.Maui-mac.slnf /target:Build /property:configuration=Debug /maxcpucount:1 /binarylogger:Microsoft.Maui-mac-Debug-Build-dotnet.binlog
I have also branches and devops builds:
- green net7.0 branch: https://github.com/dotnet/maui/tree/6d49f7e45b9d601e36e95c8c7a434186c91bf750
- green net7.0 CI: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=7101841&view=results
- red PR: https://github.com/dotnet/maui/pull/12152
- rec CI: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=7101843&view=results
There are other failures in the CI that are because I was trying to get a smaller repro without all the windows builds, but this always happens on mac in the “Build .NET MAUI” stage.
Exceptions (if any)
Further technical details
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 41 (41 by maintainers)
@mattleibow if I disable the Android and Tizen as you have suggested, then step 5 passes, but step 6 fails with errors like
/Users/janvorli/git/maui/src/Workload/Shared/FrameworkList.targets(24,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/janvorli/git/maui/src/Compatibility/Core/src/bin/Debug/net7.0-android/ref/Microsoft.Maui.Controls.Compatibility.dll'. [/Users/janvorli/git/maui/src/Workload/Microsoft.Maui.Controls.Ref/Microsoft.Maui.Controls.Ref.csproj]So it seems it still tries to do something with Android.Anyways, it seems that it is not worth the hassle trying to patch stuff and wasting your time, I’ll bring my mac mini to my office tomorrow so that I can connect it to the monitor and install the VS.
Any updates on this issue? I see https://github.com/dotnet/runtime/pull/79894 was merged, does that help us?