I’ve been trying to publish my app for windows, but it keeps me giving the same error:
The specified RuntimeIdentifier 'win10-x64' is not recognized. See https://aka.ms/netsdk1083 for more information.
Here is a step-by-step of what I’m doing:
Publish > Sideloading (automatic updates not checked) > Skip package signing > Publising profile MSIX-win10-x64.pubxml
Now, I know from this comment that win10-x64 is no longer available and that I should use win-x64 instead. This article says that I can solve the problem by simply editing the <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
in the .csproj file to make it say win-x64 (“The RuntimeIdentifier ‘win-x64’ is invalid.”).
Since I didn’t have that tag in the file, I added it but it didn’t work.
Finally, I copy-pasted this property group and it didn’t give me any errors.
<PropertyGroup Condition="'$(IsPublishing)' == 'true' And '$(TargetFramework)' == 'net8.0-windows10.0.19041.0'">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
The publishing still doesn’t work and doesn’t recognize win10-x64.
tommat208 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.