简体   繁体   中英

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.

Using the command nuget package with nuget pack .csproj and I am getting this error:

nuget : The imported project "C:\\Program Files (x86)\\MSBuild\\Microsoft\\WindowsXaml\\v15.0\\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. 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.

I have Windows 10 Creators Update and the latest Visual Studio 2017. What do I need to install those build files?

Try this

nuget pack foo.csproj -MSBuildVersion 14

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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