1

I've been trying to get into .NET MAUI development but I've been having an uphill battle getting the workloads installed and working.

I've received several different errors, which I've resolved up to the point I'm at now. I don't know where to go from here with what I have for an error below. Scouring the Internet is drying up on leads.

The error I have at the moment happens anytime I try to open a project or reload the project (after it fails the first time).

The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found. C:\Program Files\dotnet\sdk\7.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props

I have done the following to try and resolve this (and also to resolve other errors I was receiving originally).

  • Reinstalled the MAUI Workload using VS Installer
  • Reinstalled VS entirely
  • Reboots interspersed throughout the reinstall process for both the Workload and VS itself
  • Reinstalled VS entirely and scanned Registry for straggler installs of .NET SDK components
  • Set System Variable MSBuildSDKsPath to C:\Program Files\dotnet\sdk\7.0.302\Sdks
  • Set System Variable MSBuildEnableWorkloadResolver to true
  • Tried installing the MAUI Workload on a completely different system running Windows 10 (the first system was Win11) and experienced similar if not the same issues.

While some of the above pieces solved other issues I was having (specifically the MSBuildSDKsPath solved the most issues thus far), I don't know where to go from here.

Some resources I've already tried, if it helps

brad95411
  • 141
  • 1
  • 1
  • 12
  • Have you tried restoring your VS? – FreakyAli May 29 '23 at 18:23
  • I would need some clarification here. Restoring of any kind seems unlikely to help if I've reinstalled the software with a number of different levels of cleanup scrutiny. – brad95411 May 29 '23 at 22:45
  • I do not see the benefit of performing a repair when, again, I've reinstalled the software multiple times, on different systems, all still presenting the same problem once the reinstallation is complete. – brad95411 May 30 '23 at 02:02
  • You can report this problem in the Visual studio directly. Please see this document about [Report a problem with the Visual Studio product or installer](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022). – Jessie Zhang -MSFT May 30 '23 at 06:12
  • I have reported the problem through VS directly. It's essentially a verbatim copy of what is here. If I get an answer I'll put it here. – brad95411 May 30 '23 at 16:10

0 Answers0