Skip to content

Commit fe80bc7

Browse files
committed
Disable sourcelink on RHEL6 and Ubuntu 18
Due to dotnet/sourcelink#204
1 parent a6ee819 commit fe80bc7

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.vsts-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ phases:
6161
_RuntimeIdentifier: ''
6262
_BuildArchitecture: 'x64'
6363
_DropSuffix: ''
64+
_AdditionalBuildParameters: '-p:DisableSourceLink=true'
6465
Build_Fedora_27_Debug_x64:
6566
_BuildConfig: Debug
6667
_DockerParameter: '--docker fedora.27'
@@ -103,6 +104,7 @@ phases:
103104
_RuntimeIdentifier: '--runtime-id rhel.6-x64'
104105
_BuildArchitecture: 'x64'
105106
_DropSuffix: ''
107+
_AdditionalBuildParameters: '-p:DisableSourceLink=true'
106108
Build_Arm_Debug:
107109
_BuildConfig: Debug
108110
_DockerParameter: ''

Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
<IsShipping>true</IsShipping>
1515
<CoreSdkTargetFramework>netcoreapp3.0</CoreSdkTargetFramework>
1616
</PropertyGroup>
17+
18+
<PropertyGroup Condition="'$(DisableSourceLink)' == 'true'">
19+
<EnableSourceLink>false</EnableSourceLink>
20+
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
21+
<DeterministicSourcePaths>false</DeterministicSourcePaths>
22+
</PropertyGroup>
1723
</Project>

eng/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ phases:
2222
DockerParameter: $(_DockerParameter)
2323
LinuxPortable: $(_LinuxPortable)
2424
RuntimeId: $(_RuntimeIdentifier)
25+
AdditionalBuildParameters: $(_AdditionalBuildParameters)
2526

2627
steps:
2728
- ${{ if eq(parameters.agentOs, 'Windows_NT') }}:
2829
- script: build.cmd
2930
-test -pack -publish
3031
-Configuration $(BuildConfig)
3132
-Architecture $(BuildArchitecture)
33+
$(AdditionalBuildParameters)
3234
displayName: Build
3335
env:
3436
DOTNET_CLI_UI_LANGUAGE: $(_DOTNET_CLI_UI_LANGUAGE)
@@ -43,6 +45,7 @@ phases:
4345
--architecture $(BuildArchitecture)
4446
$(LinuxPortable)
4547
$(RuntimeId)
48+
$(AdditionalBuildParameters)
4649
displayName: Build
4750
env:
4851
DropSuffix: $(_DropSuffix)

0 commit comments

Comments
 (0)