Skip to content

Commit 9c34926

Browse files
committed
User Story 37654: Create Extensions base package
- Explicitly unsetting $PLATFORM and $CONFIGURATION since Extensions doesn't need them.
1 parent df673c2 commit 9c34926

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ indent_size = 2
163163
indent_size = 2
164164

165165
# Xml files
166-
[*.{xml,stylecop,resx,ruleset}]
166+
[*.{xml,stylecop,resx,ruleset,slnx}]
167167
indent_size = 2
168168

169169
# Xml config files

eng/pipelines/stages/ci-build-extensions-package-stage.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,26 @@ stages:
9595
-p:BuildNumber=$(Build.BuildNumber)
9696
-p:ExtensionsPackageVersion=${{parameters.packageVersion}}
9797
98+
# Explicitly unset the $PLATFORM environment variable that is set by the
99+
# 'ADO Build properties' Library in the ADO SqlClientDrivers public
100+
# project. This is defined with a non-standard dotnet platform of
101+
# 'AnyCPU', and will fail the builds if left defined. The Extensions
102+
# package does not require any specific dotnet Platform, and so its
103+
# solution file doesn't support any non-standard platforms.
104+
#
105+
# Note that Azure Pipelines will inject this variable as PLATFORM into
106+
# the environment of all tasks in this job.
107+
#
108+
# See: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch
109+
#
110+
- name: Platform
111+
value: ''
112+
113+
# Do the same for $CONFIGURATION since we explicitly set it using the
114+
# 'buildConfiguration' parameter.
115+
- name: Configuration
116+
value: ''
117+
98118
steps:
99119

100120
- task: UseDotNet@2

0 commit comments

Comments
 (0)