ITNOA
我在 GitHub 中有一个项目,这里有 UWP 项目。
我想用这个 main.yml 配置为这个项目设置 GitHub Actions
当 GitHub Actions 想要使用以下命令构建我的解决方案时
- name: Library build
run: |
cd src
nuget restore
msbuild PCLAppConfig.sln /verbosity:normal /t:Rebuild /p:Configuration=Release
我在 UWP 构建中看到失败错误并出现以下错误
2020-03-23T13:07:20.1871936Z "D:\a\PCLAppConfig\PCLAppConfig\src\PCLAppConfig.sln" (Rebuild target) (1) ->
2020-03-23T13:07:20.1872322Z "D:\a\PCLAppConfig\PCLAppConfig\src\DemoApp\DemoApp.UWP\DemoApp.UWP.csproj" (Rebuild target) (10) ->
2020-03-23T13:07:20.1872524Z (_GenerateCurrentProjectAppxManifest target) ->
2020-03-23T13:07:20.1872807Z C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(2650,5): warning APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [D:\a\PCLAppConfig\PCLAppConfig\src\DemoApp\DemoApp.UWP\DemoApp.UWP.csproj]
2020-03-23T13:07:20.1873172Z
2020-03-23T13:07:20.1873447Z
2020-03-23T13:07:20.1873657Z "D:\a\PCLAppConfig\PCLAppConfig\src\PCLAppConfig.sln" (Rebuild target) (1) ->
2020-03-23T13:07:20.1873802Z "D:\a\PCLAppConfig\PCLAppConfig\src\DemoApp\DemoApp.UWP\DemoApp.UWP.csproj" (Rebuild target) (10) ->
2020-03-23T13:07:20.1873935Z (_GenerateAppxPackageFile target) ->
2020-03-23T13:07:20.1874153Z C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(3402,5): error APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [D:\a\PCLAppConfig\PCLAppConfig\src\DemoApp\DemoApp.UWP\DemoApp.UWP.csproj]
2020-03-23T13:07:20.1874919Z
2020-03-23T13:07:20.1875022Z 4 Warning(s)
2020-03-23T13:07:20.1875125Z 1 Error(s)
2020-03-23T13:07:20.1875697Z
2020-03-23T13:07:20.1875988Z Time Elapsed 00:03:28.50
2020-03-23T13:07:20.6575030Z ##[error]Process completed with exit code 1.
注意如果我msbuild PCLAppConfig.sln /verbosity:normal /t:Rebuild /p:Configuration=Release
在本地计算机上运行,构建成功并且没有任何错误,我可以在本地运行 UWP 应用程序。
我的问题是我的问题是什么?我该如何解决这个问题?
谢谢