Asp.net 如何在azure管道中使用Visual Studio中的发布配置文件选项?
我有一个ASP.NET项目,我想使用Azure管道实现CI-CD,以部署到自定义服务器(IIS)。 目前,当使用Visual Studio(2019)手动发布web应用程序时,我使用以下选项发布配置文件:Asp.net 如何在azure管道中使用Visual Studio中的发布配置文件选项?,asp.net,visual-studio,azure-devops,msbuild,azure-pipelines,Asp.net,Visual Studio,Azure Devops,Msbuild,Azure Pipelines,我有一个ASP.NET项目,我想使用Azure管道实现CI-CD,以部署到自定义服务器(IIS)。 目前,当使用Visual Studio(2019)手动发布web应用程序时,我使用以下选项发布配置文件: <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <PublishProvider>FileSystem</PublishProvider&g
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<PublishProvider>FileSystem</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>True</ExcludeApp_Data>
<publishUrl>C:\Test</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
<PrecompileBeforePublish>True</PrecompileBeforePublish>
<EnableUpdateable>False</EnableUpdateable>
<DebugSymbols>False</DebugSymbols>
<WDPMergeOption>MergeEachIndividualFolder</WDPMergeOption>
<UseMerge>True</UseMerge>
</PropertyGroup>
2。上载FolderProfile.pubxml,并将参数传递给msbuild以从该文件读取
它所有的构建和发布都很好,但不会在发布中合并程序集,正如使用合并选项配置的那样,msbuild
似乎会忽略这些额外的合并参数
如何做到这一点,主要问题是在使用azure管道部署时如何使用mergeachindividialfolder
选项
我也搜索了很多,但似乎没有一个问题涵盖了解决方案
你试过
/p:DeployOnBuild=true/p:PublishProfile=xxxx
参数吗?@cececedong MSFT如果你说的是xxx
FolderProfile.pubxml的路径,是的,我试过xxxx
表示配置文件名:/p:DeployOnBuild=true/p:PublishProfile=FolderProfile
你的问题进展如何?这个论点有效吗?
/p:PackageAsSingleFile=true /p:PackageLocation="$(build.artifactstagingdirectory) /p:OutputPath=bin
/p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:PrecompileBeforePublish=true
/p:EnableUpdateable=false /p:DebugSymbols=true /p:UseMerge=true /p:DeleteAppCodeCompiledFiles=True
/p:DeleteExistingFiles=True /p:WDPMergeOption=MergeEachIndividualFolder /p:UseFixedNames=true\\"