Updating from 7.0.100 to 7.0.101 crashes msbuild on mac
See original GitHub issueDescribe 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
Issue Analytics
- State:
- Created 9 months ago
- Reactions:2
- Comments:41 (41 by maintainers)
Top Results From Across the Web
Visual Studio for Mac doesn't have the .NET 7 or MAUI ...
I have the Visual Studio for Mac 17.6 (build 1575). It doesn't have either MAUI or .NET apps for Android and iOS. I...
Read more >MAUI application on VS for Mac fails to launch on iOS ...
The application then immediately crashes. I tried several suggested solutions, such as: "Erase all content and settings..." on Simulator; Clear ...
Read more >Solution to Visual Studio 2022 messing up ...
NET 6 going RTM. However I noticed that Visual Studio 2022 RTM install messed up Visual Studio 2019. Our .NET 5 and .NET...
Read more >Incompatible versions of Mono MSBuild and .NET Core ...
NET Core SDK are incompatible on Linux and macOS. If you use such combinations, it will be impossible to build your project in...
Read more >Visual Studio 2022 for Mac crashes on my Mac : r/dotnet
It's not clear from your post whether VS for Mac is crashing, or the console app you've built with it is crashing.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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?