microsoft / github-actions-for-desktop-apps

This repo contains a sample WPF application to demonstrate how to create CI/CD pipelines using GitHub Actions.
MIT License
353 stars 109 forks source link

Letter of thank #23

Closed lindexi closed 4 years ago

lindexi commented 4 years ago

After three hours, with the help of your documentation, I successfully passed the CI build, see https://github.com/dotnet-campus/TranslationTool/actions

I just want to share you what my mistake.

  1. As #17 say, I should change the Upload build artifacts path
  2. I forget to add the start project. And how to solve it, see https://github.com/dotnet-campus/TranslationTool/commit/2caac9931c3a582830ebb8d22d5b0eb62522f832
  3. I forget to set the AppxBundlePlatforms in TranslationTool.Package.wapproj. And how to solve it, see https://github.com/dotnet-campus/TranslationTool/commit/107e6fd71ae6ef25500ba60a680031de626d4a9d
  4. I forgot to remove the SigningCertificate code because my pfx has no keys. See https://github.com/dotnet-campus/TranslationTool/commit/58e47f75af2a611aaaaf3d6f08cc668a733f92f7
  5. I forget to add the PublishProfiles files and which will cause the following errors to build. And how to solve it, see https://github.com/dotnet-campus/TranslationTool/commit/1650f7a9a12cc2a9df1595477f21a928507ea201
(ResolveAssemblyReferences target) ->   
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): error MSB3270: There was a mismatch between the processor architecture of the project being built "AMD64" and the processor architecture of the reference "D:\a\TranslationTool\TranslationTool\Code\TranslationTool.WPF\bin\x86\Debug\netcoreapp3.1\win-x86\TranslationTool.WPF.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\a\TranslationTool\TranslationTool\Code\TranslationTool.Package\TranslationTool.Package.wapproj]

Thank you

LanceMcCarthy commented 4 years ago

LOL! Welcome to the club... this is what my build history looks like when first setting up an Azure Pipeline or GitHub Action for the first time on any project, too :)