I have a .net maui app running in .net 9. It used to work fine and all of sudden numerous weird compilation error occured and to try to save me from a headache I figured it would be simpler to start with a fresh installation of VS as at has proven to be a good solution in the past.
I also deleted the nuget.config file, which did fix some of the errors. Problem is I am getting:
Error NETSDK1005 Assets file ‘D:MyAppobjproject.assets.json’
doesn’t have a target for ‘net9.0-windows10.0.19041.0’. Ensure that
restore has run and that you have included
‘net9.0-windows10.0.19041.0’ in the TargetFrameworks for your
project. IntervalTimerApp C:Program
Filesdotnetsdk9.0.100-preview.2.24157.14SdksMicrosoft.NET.SdktargetsMicrosoft.PackageDependencyResolution.targets 266
I get this error for all the platforms targeted by the MAUI app, that is android, windows, ios, mcalyst.
My csproj includes:
net9.0-android;net9.0-ios;net9.0-maccatalyst
Installed Workload Id Manifest Version Installation Source
dotnet workload list output is:
———————————————————————————————————————————- android 34.99.0-preview.2.189/9.0.100-preview.2
SDK 9.0.100-preview.2, VS 17.10.34814.14, VS 17.9.34902.65 ios
17.2.9244-net9-p2/9.0.100-preview.2 SDK 9.0.100-preview.2, VS 17.10.34814.14, VS 17.9.34902.65 maui 9.0.0-preview.2.10293/9.0.100-preview.2 SDK 9.0.100-preview.2maui-android 9.0.0-preview.2.10293/9.0.100-preview.2
SDK 9.0.100-preview.2maui-windows 9.0.0-preview.2.10293/9.0.100-preview.2
VS 17.10.34814.14, VS 17.9.34902.65maccatalyst 17.2.9244-net9-p2/9.0.100-preview.2
VS 17.10.34814.14, VS 17.9.34902.65
Any help with this would be greatly appreciated I simply can not work anymore and I have no clue what to do nor did find anything relevant and recent about this issue.