【发布时间】:2020-09-14 23:37:19
【问题描述】:
我在 ASP.NET Webforms 网站上有一个旧版应用程序。到目前为止,该解决方案在 Azure Pipeline 中构建良好,但它忽略了 msbuild 任务的属性,实际上,这是我的 VSBuild 任务的 yaml 文件:
- task: VSBuild@1
displayName: Build PowerDetails Web Forms
inputs:
solution: '$(solution)'
msbuildArgs: '/p:PrecompileBeforePublish=true /p:EnableUpdateable=true /p:DebugSymbols=true /p:WDPMergeOption=DonotMerge /p:DeleteExistingFiles=true /p:DeployOnBuild=true /p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:PackageLocation="$(Build.ArtifactStagingDirectory)"'
maximumCpuCount: true
vsVersion: 'latest'
然后这是为我的 articraft/bin 文件夹中的每个 aspx 文件生成 .compiled 文件。
我不想在我的 bin 文件夹中获取 .compiled 文件,我只想在 bin 文件夹中获取项目的 dll。
任务似乎忽略了属性“/p:PrecompileBeforePublish=true /p:EnableUpdateable=true”。
【问题讨论】:
标签: asp.net azure-devops