简体   繁体   English

nuget-找不到Microsoft.Windows.UI.Xaml.CSharp.targets

[英]nuget - Microsoft.Windows.UI.Xaml.CSharp.targets was not found

I have a UWP library project, compiled to target Creators Update, and I am trying to publish it to nuget. 我有一个UWP库项目,已编译为以“创作者更新”为目标,并且正在尝试将其发布到nuget。

Using the command nuget package with nuget pack .csproj and I am getting this error: 将命令nuget软件包与nuget pack .csproj一起使用时,出现此错误:

nuget : The imported project "C:\\Program Files (x86)\\MSBuild\\Microsoft\\WindowsXaml\\v15.0\\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. nuget:找不到导入的项目“ C:\\ Program Files(x86)\\ MSBuild \\ Microsoft \\ WindowsXaml \\ v15.0 \\ Microsoft.Windows.UI.Xaml.CSharp.targets”。 Confirm that the path in the declaration is correct, and that the file exists on disk. 确认声明中的路径正确,并且文件在磁盘上。

I navigated to that directory and all I have is v14.0 and v12.0. 我导航到该目录,然后只有v14.0和v12.0。

I have Windows 10 Creators Update and the latest Visual Studio 2017. What do I need to install those build files? 我拥有Windows 10 Creators Update和最新的Visual Studio2017。安装那些生成文件需要什么?

Try this 尝试这个

nuget pack foo.csproj -MSBuildVersion 14 nuget包foo.csproj -MSBuildVersion 14

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM