我尝试使用MSBuild 2015工具在构建服务器上构建UWP库。我已经安装了Windows 10 SDK和其它需要的工具,但我没有的Visual Studio 2015年当我尝试建立与此命令:在构建服务器上构建UWP应用程序/库
msbuild mySolution.sln /t:Rebuild/p:Configuration=Release;Platform=x86;AppxBundlePlatforms=x86;AppxBundle=Always
或尝试这方面的例子: compilebuild-the-uwp-project-from-command-line,仍然没有工作,我得到了错误:
...
error CS0518: Predefined type 'System.Boolean' is not defined or imported
error CS0518: Predefined type 'System.Void' is not defined or imported
error CS0518: Predefined type 'System.Object' is not defined or imported
error CS0518: Predefined type 'System.Int32' is not defined or imported
error CS0518: Predefined type 'System.Void' is not defined or imported
error CS0518: Predefined type 'System.Boolean' is not defined or imported
error CS0518: Predefined type 'System.Boolean' is not defined or imported
...
当我安装VS时,一切正常,但我不想安装VS构建服务器上。
是否可以在没有Visual Studio的情况下构建UWP库/应用程序?
我认为你首先需要做一次nuget恢复。认为.net核心软件包丢失 –
,这也是很好的文档https://docs.microsoft.com/en-us/windows/uwp/packaging/auto-build-package-uwp-apps –
我试过用nuget restore ,但它没有奏效。 – paulExe