title: Deploy click-once application with Azure Devops?
body: <p>I have an error when deploying my click-once project with Azure DevOps Pipeline. I don't see where is my error. </p>
  
  <p>First, I can build and publish my click-once application manually from Visual Studio. I have no issue.
  When I use Azure DevOps Pipeline to build and publish my click-once application I get an error:</p>
  
  <blockquote>
    <p>[error]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(780,5):
    Error : The OutputPath property is not set for project
    '******.vbproj'.  Please check to make sure that you have specified a
    valid combination of Configuration and Platform for this project. 
    Configuration='release'  Platform='any cpu'.  You may be seeing this
    message because you are trying to build a project without a solution
    file, and have specified a non-default Configuration or Platform that
    doesn't exist for this project.</p>
  </blockquote>
  
  <p>The OutputPath property is not set for project. Well, I don't know. Let me give you my project file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /&gt;
    &lt;PropertyGroup&gt;
      &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Debug&lt;/Configuration&gt;
      &lt;Platform Condition=" '$(Platform)' == '' "&gt;AnyCPU&lt;/Platform&gt;
      &lt;ProjectGuid&gt;{****}&lt;/ProjectGuid&gt;
      &lt;OutputType&gt;WinExe&lt;/OutputType&gt;
      &lt;AppDesignerFolder&gt;Properties&lt;/AppDesignerFolder&gt;
      &lt;RootNamespace&gt;****.*****4&lt;/RootNamespace&gt;
      &lt;AssemblyName&gt;****.*****4&lt;/AssemblyName&gt;
      &lt;TargetFrameworkVersion&gt;v4.7.2&lt;/TargetFrameworkVersion&gt;
      &lt;FileAlignment&gt;512&lt;/FileAlignment&gt;
      &lt;ProjectTypeGuids&gt;{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;/ProjectTypeGuids&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
      &lt;AutoGenerateBindingRedirects&gt;true&lt;/AutoGenerateBindingRedirects&gt;
      &lt;IsWebBootstrapper&gt;true&lt;/IsWebBootstrapper&gt;
      &lt;NuGetPackageImportStamp&gt;
      &lt;/NuGetPackageImportStamp&gt;
      &lt;TargetFrameworkProfile /&gt;
      &lt;PublishFilePath&gt;$(PublishDir)install*****4.html&lt;/PublishFilePath&gt;
      &lt;PublishUrl&gt;\\server15\c%24\inetpub\wwwroot\*****4Install %28Staging%29\&lt;/PublishUrl&gt;
      &lt;Install&gt;true&lt;/Install&gt;
      &lt;InstallFrom&gt;Web&lt;/InstallFrom&gt;
      &lt;UpdateEnabled&gt;true&lt;/UpdateEnabled&gt;
      &lt;UpdateMode&gt;Foreground&lt;/UpdateMode&gt;
      &lt;UpdateInterval&gt;7&lt;/UpdateInterval&gt;
      &lt;UpdateIntervalUnits&gt;Days&lt;/UpdateIntervalUnits&gt;
      &lt;UpdatePeriodically&gt;false&lt;/UpdatePeriodically&gt;
      &lt;UpdateRequired&gt;true&lt;/UpdateRequired&gt;
      &lt;MapFileExtensions&gt;true&lt;/MapFileExtensions&gt;
      &lt;InstallUrl&gt;http://*****4install-staging.newsprintgroup.com/&lt;/InstallUrl&gt;
      &lt;ProductName&gt;***** Application&lt;/ProductName&gt;
      &lt;PublisherName&gt;NewsPrint Group&lt;/PublisherName&gt;
      &lt;MinimumRequiredVersion&gt;4.15.0.0&lt;/MinimumRequiredVersion&gt;
      &lt;CreateWebPageOnPublish&gt;true&lt;/CreateWebPageOnPublish&gt;
      &lt;WebPage&gt;install*****4.html&lt;/WebPage&gt;
      &lt;ApplicationRevision&gt;1&lt;/ApplicationRevision&gt;
      &lt;ApplicationVersion&gt;4.15.9.1&lt;/ApplicationVersion&gt;
      &lt;UseApplicationTrust&gt;false&lt;/UseApplicationTrust&gt;
      &lt;CreateDesktopShortcut&gt;true&lt;/CreateDesktopShortcut&gt;
      &lt;PublishWizardCompleted&gt;true&lt;/PublishWizardCompleted&gt;
      &lt;BootstrapperEnabled&gt;true&lt;/BootstrapperEnabled&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "&gt;
      &lt;PlatformTarget&gt;AnyCPU&lt;/PlatformTarget&gt;
      &lt;DebugSymbols&gt;true&lt;/DebugSymbols&gt;
      &lt;DebugType&gt;full&lt;/DebugType&gt;
      &lt;Optimize&gt;false&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\Debug\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;DEBUG;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "&gt;
      &lt;PlatformTarget&gt;AnyCPU&lt;/PlatformTarget&gt;
      &lt;DebugType&gt;pdbonly&lt;/DebugType&gt;
      &lt;Optimize&gt;true&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\Release\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup&gt;
      &lt;ManifestCertificateThumbprint&gt;57DF31CB3510678332744572F14AD9BAAC60178E&lt;/ManifestCertificateThumbprint&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup&gt;
      &lt;ManifestKeyFile&gt;****.*****4_1_TemporaryKey.pfx&lt;/ManifestKeyFile&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup&gt;
      &lt;GenerateManifests&gt;true&lt;/GenerateManifests&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup&gt;
      &lt;SignManifests&gt;false&lt;/SignManifests&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      (...)
    &lt;/ItemGroup&gt;
    &lt;Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /&gt;
    &lt;Import Project="$(SlowCheetahTargets)" Condition="Exists('$(SlowCheetahTargets)')" Label="SlowCheetah" /&gt;
    &lt;Import Project="..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" /&gt;
    &lt;Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"&gt;
      &lt;PropertyGroup&gt;
        &lt;ErrorText&gt;This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.&lt;/ErrorText&gt;
      &lt;/PropertyGroup&gt;
      &lt;Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets'))" /&gt;
      &lt;Error Condition="!Exists('..\packages\SlowCheetah.2.5.48\build\SlowCheetah.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SlowCheetah.2.5.48\build\SlowCheetah.targets'))" /&gt;
    &lt;/Target&gt;
    &lt;Import Project="..\packages\SlowCheetah.2.5.48\build\SlowCheetah.targets" Condition="Exists('..\packages\SlowCheetah.2.5.48\build\SlowCheetah.targets')" /&gt;
    &lt;!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
         Other similar extension points exist, see Microsoft.Common.targets.
    &lt;Target Name="BeforeBuild"&gt;
    &lt;/Target&gt;
    &lt;Target Name="AfterBuild"&gt;
    &lt;/Target&gt;
    --&gt;
  &lt;/Project&gt;
  </code></pre>