question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating from 7.0.100 to 7.0.101 crashes msbuild on mac

See original GitHub issue

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

  1. Use your mac
  2. Clone the PR: https://github.com/dotnet/maui/pull/12152
  3. Restore dotnet tools:
    dotnet tool restore
  4. Install a local dotnet dotnet cake --target=dotnet
  5. 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
  6. 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:

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:open
  • Created 9 months ago
  • Reactions:2
  • Comments:41 (41 by maintainers)

github_iconTop GitHub Comments

1reaction
janvorlicommented, Jan 11, 2023

@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.

1reaction
rmarinhocommented, Jan 3, 2023

Any updates on this issue? I see https://github.com/dotnet/runtime/pull/79894 was merged, does that help us?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found