【发布时间】:2015-07-22 14:05:45
【问题描述】:
我下载了 Visual Studio Community 2015。我尝试创建一个共享项目,但出现错误:
来自 Microsoft.Windows.UI.Xaml.CSharp.targets 的内容
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(TargetPlatformVersion)'==''">
<TargetPlatformVersion>8.0</TargetPlatformVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'UAP'">
<RedirectionTarget>8.2</RedirectionTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(RedirectionTarget)' == ''">
<RedirectionTarget>$(TargetPlatformVersion)</RedirectionTarget>
</PropertyGroup>
<!-- Direct 8.0 projects to 8.1 targets to enable retargeting -->
<PropertyGroup Condition="'$(RedirectionTarget)' == '8.0'">
<RedirectionTarget>8.1</RedirectionTarget>
</PropertyGroup>
<Import Project="$(RedirectionTarget)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
</Project>
我没有名为 8.1 的文件夹
【问题讨论】:
-
什么样的项目(哪个项目模板)?它的目标是什么版本的 .NET?
-
@Richard Tamplate “共享项目”。净 4.5。
-
您是否安装了 8.1 Store 应用工具?
-
这适用于我在 Win7 上使用 vs2015 的预发行版,但停止使用完整版本。我想我在等到 Win10 出来再继续这个项目。
标签: c# visual-studio visual-studio-2015 shared-project