2016-05-23 156 views
1

我有一個針對Windows UWP的C#應用​​程序。幾個月前,這一切都很好。當我今天打開它時,找不到這個參考:Microsoft.NETCore.UniversalWindowsPlatform。我也無法安裝此參考。這裏是我的項目的細節&我按照步驟:

我的VS細節:UWP Windows-10無法添加Microsoft.NETCore.UniversalWindowsPlatform到我的C#應用​​程序

MS VS Professional 2015 
    Version 14.0.25123.00 Update 2 
    Microsoft .NET Framework 
    Version 4.6.01038 


當我嘗試安裝此引用:Referencs(右鍵) - >管理的NuGet包,&然後通過選擇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.


我有已安裝Visual Studio 2015版本3.4.3.855的NuGet Package Manager。

根據這裏提供的建議Github MS UWP samples page我刪除了project.json從我的項目,但似乎沒有幫助我。不幸的是,我沒有看到project.lock.json文件在我的項目中

+0

你可以分享你當前的csproj和項目。 json內容? –

+0

Hi @HarikrishnaMenonA,謝謝你的迴應。我不知道如何在堆棧溢出時共享這些文件。請讓我知道任何替代方式來做到這一點。 –

回答

1

我有類似的例外複製解決方案文件夾後,其他機器。 在project.lock.json在現場「packageFolders」和「項目」裏演的警戒機的設置,我已經改變了他們,並解決我的問題

相關問題