From fe80bc7ba35b2b569b05741882dea7e16592abeb Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Fri, 9 Nov 2018 14:15:41 -0800 Subject: [PATCH] Disable sourcelink on RHEL6 and Ubuntu 18 Due to https://github.com/dotnet/sourcelink/issues/204 --- .vsts-ci.yml | 2 ++ Directory.Build.props | 6 ++++++ eng/build.yml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 42d101026..98439befc 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -61,6 +61,7 @@ phases: _RuntimeIdentifier: '' _BuildArchitecture: 'x64' _DropSuffix: '' + _AdditionalBuildParameters: '-p:DisableSourceLink=true' Build_Fedora_27_Debug_x64: _BuildConfig: Debug _DockerParameter: '--docker fedora.27' @@ -103,6 +104,7 @@ phases: _RuntimeIdentifier: '--runtime-id rhel.6-x64' _BuildArchitecture: 'x64' _DropSuffix: '' + _AdditionalBuildParameters: '-p:DisableSourceLink=true' Build_Arm_Debug: _BuildConfig: Debug _DockerParameter: '' diff --git a/Directory.Build.props b/Directory.Build.props index 4a5f96a54..e6824a2ba 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -14,4 +14,10 @@ true netcoreapp3.0 + + + false + false + false + diff --git a/eng/build.yml b/eng/build.yml index bb7cea9e8..b22f1a80c 100644 --- a/eng/build.yml +++ b/eng/build.yml @@ -22,6 +22,7 @@ phases: DockerParameter: $(_DockerParameter) LinuxPortable: $(_LinuxPortable) RuntimeId: $(_RuntimeIdentifier) + AdditionalBuildParameters: $(_AdditionalBuildParameters) steps: - ${{ if eq(parameters.agentOs, 'Windows_NT') }}: @@ -29,6 +30,7 @@ phases: -test -pack -publish -Configuration $(BuildConfig) -Architecture $(BuildArchitecture) + $(AdditionalBuildParameters) displayName: Build env: DOTNET_CLI_UI_LANGUAGE: $(_DOTNET_CLI_UI_LANGUAGE) @@ -43,6 +45,7 @@ phases: --architecture $(BuildArchitecture) $(LinuxPortable) $(RuntimeId) + $(AdditionalBuildParameters) displayName: Build env: DropSuffix: $(_DropSuffix)