Severity Code Description Project File Line Suppression State
Error MSB4018 The “ResolvePackageDependencies” task failed unexpectedly.
System.ArgumentException: Invalid framework version ‘10.0.14393/win10-x64’.
at NuGet.Frameworks.NuGetFramework.ParseFrameworkNameParts(IFrameworkNameProvider mappings, String[] parts, String& framework, Version& version, String& profile)
at NuGet.Frameworks.NuGetFramework.ParseFrameworkName(String frameworkName, IFrameworkNameProvider mappings)
at NuGet.Frameworks.NuGetFramework.Parse(String folderName, IFrameworkNameProvider mappings)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.b__48_5(String tg)
at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Linq.Enumerable.Contains[TSource](IEnumerable1 source, TSource value, IEqualityComparer1 comparer) at System.Linq.Enumerable.WhereListIterator1.MoveNext()
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.g__GetPackageDiagnosticLevel|48_0(LockFileLibrary package)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.GetPackageAndFileDefinitions()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() WindowsStore C:\Program Files\dotnet\sdk\6.0.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 195
Can anyone help please?
BTW I’m a bit confused as to what version of Visual Studio is required. The doc as above mentions 2019. Github says 2022. I use Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.2.5.
Spot on, the Mission planner project compiles now without that error.
There is another compilation problem though referring to
Could not find file ‘D:\Projects_PhD\ArduPilot\GitHub\MissionPlanner\ExtLibs\GDAL\bin\Debug\net461\GDAL.NET.dll’. MissionPlanner D:\Projects_PhD\ArduPilot\GitHub\MissionPlanner\test\FirmwareSelection.xaml
This is unrelated to the WindowsStore project. This is happening when I try to rebuild the whole solution. However, running Mission Planner in VS starts fine. I am not sure though whether there will be a problem at some point during runtime with that dll missing GDAL.NET.dll .
After that you will be able to run/debug the Mission Planner. What did the trick is building the projects in the correct sequence as above and the fact that I did not use Rebuild at any stage!
If you try to use Rebuild at any project or the solution itself, it will throw the error about the missing dll. Odd but there you go…