שתף באמצעות


Your project file doesn't list 'win10-x86-aot' as a "RuntimeIdentifier".

Question

Monday, February 10, 2020 7:28 PM

Hi

It's an uwp project under visual studio 2019 till yet it works fine now and i don't know why (I didn't make any changes) 

i get this error 

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

Why this happened? what shall i do  ?

Thanks

All replies (5)

Monday, February 10, 2020 11:07 PM ✅Answered

Well it's time to report the issue to Microsoft as suggested in my last reply.

Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

NuGet BaseConnectionLibrary for database connections.

StackOverFlow


Monday, February 10, 2020 7:40 PM

You could try making sure this is in the project file by unloading the project then edit the project file.

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

Save the project file, reload the project, select restore NuGet packages and try again.

Note, this is a really good reason to implement some form of source control e.g. Azure DevOps or GitHub repository.

Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

NuGet BaseConnectionLibrary for database connections.

StackOverFlow


Monday, February 10, 2020 8:16 PM

Hi

The problem is not especially this project i now open a new blank uwp  project and  debug it without writing any code and get the same error 

 ? and where is the project file 


Monday, February 10, 2020 9:27 PM

Here is an example project file under Microsoft's UWP repo.

I would suggest reporting this to Microsoft via the Visual Studio feedback button and perhaps you did already as someone reported this today already.

Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

NuGet BaseConnectionLibrary for database connections.

StackOverFlow


Monday, February 10, 2020 9:37 PM

I proceeded as you suggest but i get a new error

Error MSB4036 The "GetFrameworkSdkPackages" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin" directory. timerpack C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets 304