Whenever I use the following steps to publish my MAUI Blazor Hybrid project, I get an error.
Steps to reproduce:
- Build -> Publish
- Sideloading as distribution method
- Target runtime: win10-x64
- I hit Create
Error:
Whatever I try I get an error The specified RuntimeIdentifier 'win10-x64' is not recognized. See https://aka.ms/netsdk1083 for more information.
. Whenever I select runtime win10-x86, I get the same error but other runtime identifier.
Microsoft link in error:
The link to Microsoft website shows I need to use win-x64 as runtime identifier, but I do not have that one as option in my dropdown. I searched on Google and StackOverflow, also without any luck.
I also tried:
dotnet workload update
dotnet workload install maui
- I searched the Microsoft website for updates on Visual Studio, SDK's or .net runtimes. I tried to install/update some, but also without any luck. Maybe I installed the wrong SDK?
Anyone who knows how to solve this issue?
Update 30-04:
I found out that this error only shows when I add project reference to my Blazor MAUI project refering to my Class Library project. How to define this runtime identifier to my Class Library project?