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.

Cannot start clean .Net Maui project in Visual Studio for Mac

See original GitHub issue

Description

After creating a new fresh project of .Net MAUI, I receive the following error:

Getting restore information for project X
The operation failed due to an internal error: Could not load file or assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

Steps to Reproduce

  1. Create a new MAUI Project.
  2. Wait until the packages try to restore.
  3. Expect the error

Link to public reproduction project repository

Version with bug

7.0 (current)

Last version that worked well

6.0.312

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

iOS, Windows and Android

Did you find any workaround?

None

Relevant log output

Installed Workload Id      Manifest Version       Installation Source
---------------------------------------------------------------------
wasm-tools                 7.0.2/7.0.100          SDK 7.0.100        
macos                      13.1.1024/7.0.100      SDK 7.0.100        
maui-maccatalyst           7.0.59/7.0.100         SDK 7.0.100        
maui-ios                   7.0.59/7.0.100         SDK 7.0.100        
maui-android               7.0.59/7.0.100         SDK 7.0.100        
maui-mobile                7.0.59/7.0.100         SDK 7.0.100        
maui                       7.0.59/7.0.100         SDK 7.0.100        
tvos                       16.1.1521/7.0.100      SDK 7.0.100        
maui-desktop               7.0.59/7.0.100         SDK 7.0.100        
wasm-tools-net6            7.0.2/7.0.100          SDK 7.0.100

Visual Studio Community 2022 for Mac
Version 17.4.4 (build 12)

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Xyncgascommented, Feb 14, 2023

What if you reinstall .NET 7 SDK, reinstall visual studio, create a new project then restart your computer

0reactions
marcpopMSFTcommented, Jun 26, 2023

closing old issues. We can reactivate if more information is provided.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot start clean .Net Maui project in Visual Studio for Mac
Description After creating a new fresh project of .Net MAUI, I receive the following error: Getting restore information for project X The ...
Read more >
Troubleshoot known issues - .NET MAUI
NET MAUI through the Visual Studio installer, Visual Studio can enter a state where it can't locate the .NET MAUI workloads. You'll receive ......
Read more >
MAUI on Mac - Visual Studio 2022 17.4.2 : r/dotnetMAUI
I verified that this is not specific to my project by creating a new MAUI project on the Mac using the template and...
Read more >
[.NET MAUI] error MSB4044: The "CompileAppManifest ...
After updating to VS 2022 version 17.5.2 I started getting below compilation error when I create new MAUI app project:.
Read more >
Can't add images to new .NET MAUI project on Mac ...
I just started a brand new template .NET MAUI project on my Mac and I am able to build and run the startup...
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