我有一个 UWP 库项目,针对 Creators Update 进行了编译,我正在尝试将其发布到 nuget。
将命令 nuget package 与 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. Confirm that the path in the declaration is correct, and that the file exists on disk.
我导航到那个目录,我只有 v14.0 和 v12.0。
我有 Windows 10 Creators Update 和最新的 Visual Studio 2017。我需要什么来安装这些构建文件?
最佳答案
试试这个
nuget pack foo.csproj -MSBuildVersion 14
关于c# - nuget - 找不到 Microsoft.Windows.UI.Xaml.CSharp.targets,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43348845/