UWP Windows-10 无法将 Microsoft.NETCore.UniversalWindowsPlatform 添加到我的 C# 应用程序
UWP Windows-10 Cannot add Microsoft.NETCore.UniversalWindowsPlatform to my C# app
我有一个面向 windows UWP 的 C# 应用程序。几个月前一切正常。今天打开的时候,找不到这个引用:Microsoft.NETCore.UniversalWindowsPlatform。我也无法安装此参考。这是我的项目详细信息和我遵循的步骤:
我的 VS 详细信息:
MS VS Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038
当我尝试安装此引用时:Referencs(右键单击)->Manage NuGet Packages,然后选择 Microsoft.NETCore.UniversalWindowsPlatform,我得到这个错误:
Could not install package 'Microsoft.NETCore.Platforms 1.0.0'. You are trying to install this package into a project that targets '.NETCore,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
我安装了 NuGet Package Manager for Visual Studio 2015 Version 3.4.3.855。
根据此处提供的建议 Github MS UWP samples page 我从我的项目中删除了 project.json,但这似乎对我没有帮助。不幸的是,我在我的项目中没有看到 project.lock.json 文件
将解决方案文件夹复制到其他机器后,我遇到了类似的异常。
在 project.lock.json 字段“packageFolders”和“project”中,我的预置设置机器,我已更改它们并解决了我的问题
我有一个面向 windows UWP 的 C# 应用程序。几个月前一切正常。今天打开的时候,找不到这个引用:Microsoft.NETCore.UniversalWindowsPlatform。我也无法安装此参考。这是我的项目详细信息和我遵循的步骤:
我的 VS 详细信息:
MS VS Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038
当我尝试安装此引用时:Referencs(右键单击)->Manage NuGet Packages,然后选择 Microsoft.NETCore.UniversalWindowsPlatform,我得到这个错误:
Could not install package 'Microsoft.NETCore.Platforms 1.0.0'. You are trying to install this package into a project that targets '.NETCore,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
我安装了 NuGet Package Manager for Visual Studio 2015 Version 3.4.3.855。
根据此处提供的建议 Github MS UWP samples page 我从我的项目中删除了 project.json,但这似乎对我没有帮助。不幸的是,我在我的项目中没有看到 project.lock.json 文件
将解决方案文件夹复制到其他机器后,我遇到了类似的异常。 在 project.lock.json 字段“packageFolders”和“project”中,我的预置设置机器,我已更改它们并解决了我的问题