**I have created 3 Projects:
- FrontEndProject and it is a Blazor Project and this is the csProj:**
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
``` </PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.16" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.16" PrivateAssets="all" />
</Project>
**2) TraditionalProject (API Project):**
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</Project>
**3) AspireApplication:**
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
<UserSecretsId>4e304158-cb25-47d7-86fd-457416df5962</UserSecretsId>
<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.0.0-preview.6.24214.1" /> <PackageReference Include="Microsoft.Maui.Graphics" Version="8.0.3" />
</Project>
I am trying to update the workload using this command:
"dotnet workload update"
and I am getting this:
*Workload update failed: One or more errors occurred. (Version 8.0.21 of package microsoft.maui.graphics.win2d.winui.desktop.msi.x64 is not found in NuGet feeds [https://api.nuget.org/v3/index.json;C:\Program]() Files (x86)\Microsoft SDKs\NuGetPackages\".)*
I have tried these approaches:
1) dotnet nuget update source nuget.org. then: dotnet nuget locals all --clear
2) installing *microsoft.maui.graphics.win2d.winui.desktop.msi.x64* and I always get this no matter what version I try (I tried them all):
*Severity Code Description Project File Line Suppression State Details 1) Error Package 'Microsoft.Maui.Graphics.Win2D.WinUI.Desktop.Msi.x64 8.0.7' has a package type 'DotnetPlatform' that is not supported by project 'WeatherApp.Aspire.ServiceDefaults'. 2) Severity Code Description Project File Line Suppression State Details Error NU1213 The package Microsoft.Maui.Graphics.Win2D.WinUI.Desktop.Msi.x64 8.0.7 has a package type DotnetPlatform that is incompatible with this project. WeatherApp.Aspire.ServiceDefaults*
3)Adding this to the itemGroup:
<FrameworkReference Include="Microsoft.WindowsDesktop.App.Wpf" />
and none of these approaches worked.