Your project file doesn't list 'win10-arm64-aot' as a "RuntimeIdentifier". You should add 'win10-arm64-aot' to the "RuntimeIdentifiers" property in your project file and then re-run NuGet restore

 

原UWP项目想新增ARM64的编译打包,如果出现上面的错误,只需要用记事本打开.csproj文件,找到

<RuntimeIdentifiers/>

节点,在里面加入 win10-arm64-aot 用分号分隔,然后关闭Visual Studio,重新打开即可。

完整如下:

<RuntimeIdentifiers>win10-arm;win10-arm-aot;win10-arm64-aot;win10-x86;win10-x86-aot;win10-x64;win10-x64-aot</RuntimeIdentifiers>