Disable sourcelink on RHEL6 and Ubuntu 18

Due to https://github.com/dotnet/sourcelink/issues/204
This commit is contained in:
Daniel Plaisted 2018-11-09 14:15:41 -08:00
parent a6ee8199a9
commit fe80bc7ba3
3 changed files with 11 additions and 0 deletions

View file

@ -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: ''

View file

@ -14,4 +14,10 @@
<IsShipping>true</IsShipping>
<CoreSdkTargetFramework>netcoreapp3.0</CoreSdkTargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(DisableSourceLink)' == 'true'">
<EnableSourceLink>false</EnableSourceLink>
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
<DeterministicSourcePaths>false</DeterministicSourcePaths>
</PropertyGroup>
</Project>

View file

@ -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)