Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4170

MAUI Blazor Hybrid Specified RuntimeIdentifier is not recognized on Class Library Projects

$
0
0

Whenever I use the following steps to publish my MAUI Blazor Hybrid project, I get an error.

Steps to reproduce:

  1. Build -> Publish
  2. Sideloading as distribution method

Sideloading

  1. Signing method: self signed:certificate

  2. Release configuration:

release config

  1. Target runtime: win10-x64

runtime

  1. 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?


Viewing all articles
Browse latest Browse all 4170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>