如何将Windows应用商店应用项目从.NET 4.5升级到.NET 4.5.1

时间:2014-02-14 14:50:14

标签: c# xaml windows-store-apps windows-8.1 azure-devops

我有Windows Store App项目(XAML),针对.NET Framework 4.5。现在我引用一个库(Prism)并在Visual Studio Team Services(以前的Visual Studio Online / Team Foundation Service,TFS Build)上构建它时,我收到以下警告:

  

C:\的Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets   (1605):主要参考“Microsoft.Practices.Prism.StoreApps”   无法解决,因为它建立在反对   “.NETCore,Version = v4.5.1”框架。这是一个比版本更高的版本   目前的目标框架是“.NETCore,Version = v4.5”。

我的问题:如何将我的项目升级到.NETCore 4.5.1版?

我可以在创建新项目时选择版本,但无法找到现有项目的位置。它曾经位于项目的属性窗口(应用程序选项卡)中,但似乎不适用于Win Store应用程序。

1 个答案:

答案 0 :(得分:0)

要为8.1(.NETCore v4.5.1)构建Windows应用商店应用,必须为Visual Studio 2013选择正确的模板:TfvcTemplate.12.xaml而不是默认模板。 (见https://www.visualstudio.com/get-started/build-your-apps-vs上的第8点)

enter image description here