Hi,
I am trying to do FS publishing for my .CSPROJ project and issue the following command:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" DemoWeb.csproj /m /v:m /t:Clean,Build,Publish /T:"DemoWeb:Rebuild" /p:WebPublishMethod=FileSystem /p:DeployTarget=MsDeployPublish
/p:Configuration=Debug /p:DeployOnBuild=true /p:PublishProfile='FolderProfile1'
but instead of a working web app I get the following errors:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\Web\Microsoft.Web.Publishing.targets(4070,5): error : Web Deploy publish/package validating error: Missing or Invalid property value for $(MsDeployServiceUrl)
[C:\prj\DemoWeb.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\Web\Microsoft.Web.Publishing.targets(4077,5): error : Target GenerateGlobalPublishSetting Failed [C:\prj\DemoWeb.csproj]
The folder prj contains DemoWeb\Properties\PublishProfiles\FolderProfile1.pubxml
with the following content:
<?xml version="1.0" encoding="utf-8"?><!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
--><Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><PropertyGroup><WebPublishMethod>FileSystem</WebPublishMethod><PublishProvider>FileSystem</PublishProvider><LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration><LastUsedPlatform>Any CPU</LastUsedPlatform><SiteUrlToLaunchAfterPublish /><LaunchSiteAfterPublish>True</LaunchSiteAfterPublish><ExcludeApp_Data>False</ExcludeApp_Data><publishUrl>C:\build</publishUrl><DeleteExistingFiles>True</DeleteExistingFiles><PrecompileBeforePublish>True</PrecompileBeforePublish><EnableUpdateable>True</EnableUpdateable><DebugSymbols>False</DebugSymbols><WDPMergeOption>DonotMerge</WDPMergeOption></PropertyGroup></Project>
At the same time in VS2019 Community publishing for the same profile runs with flying colors. What should I do to publish my project from cmd line?