Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure pipeline #52

Open
alexandre-whitefox opened this issue Mar 20, 2022 · 0 comments
Open

Azure pipeline #52

alexandre-whitefox opened this issue Mar 20, 2022 · 0 comments

Comments

@alexandre-whitefox
Copy link

Hi, great work!

I'm using it on azure pipeline and there's something weird going on. The version of the publish.htm file is always set to the assembly version, not the application being published version. Maybe I'm doing something wrong. Below is part of the code of my pipeline:

`variables:
Solution: '**/*.sln'
BuildPlatform: 'Any CPU'
Version: '1.0.0.$(Build.BuildId)'

steps:

  • task: NuGetToolInstaller@1

  • task: NuGetCommand@2
    inputs:
    restoreSolution: '$(Solution)'

  • task: DownloadSecureFile@1
    inputs:
    secureFile: 'Certificado.pfx'
    displayName: 'Download Secure PFX File'

  • task: MSBuild@1
    inputs:
    solution: '$(Solution)'
    msbuildArchitecture: 'x64'
    configuration: 'Release'
    platform: '$(BuildPlatform)'
    msbuildArguments: '-p:target=publish -p:ApplicationVersion="1.0.0.$(Build.BuildId)" -p:AppxPackageSigningEnabled=false -p:OutputPath="$(build.ArtifactStagingDirectory)\Publish\"'

  • task: clickonce@1
    inputs:
    source: '$(build.ArtifactStagingDirectory)\Publish'
    entryPoint: '$(build.ArtifactStagingDirectory)\Publish\GerenciadorArquivos.exe'
    target: 'publish'
    version: $(Version)
    description: 'Gerenciador de arquivos do Planck para o Escolando'
    product: 'Gerenciador de Arquivos Planck'
    publisher: 'Escolando'
    launchMode: 'start'
    iconFile: '$(build.ArtifactStagingDirectory)\Publish\logo.ico'
    deploymentUrl: 'https://arquivosplanck.blob.core.windows.net/apps/GerenciadorArquivos'
    targetFramework: 'net472'
    signingMode: 'file'
    certificate: 'Certificado.pfx'
    certificatePassword: 'xxx`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant