Skip to content

Commit 4742d63

Browse files
committed
Merge branch 'main' into dmkorolev/owin/environment-allocations
2 parents 09dd500 + 3fe0618 commit 4742d63

36 files changed

+594
-483
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ stages:
653653
displayName: Update submodules
654654
- script: ./restore.cmd
655655
displayName: Run restore.cmd
656+
- powershell: ./eng/build.ps1 -all -noBuildJava -noBuildNodeJS "-WarnAsError:false"
657+
displayName: Build (No NodeJS)
656658
- script: npm run build
657659
displayName: Build JS
658660
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug
@@ -665,6 +667,7 @@ stages:
665667
-NoBuild
666668
-NoBuildDeps
667669
-configuration Release
670+
-bl
668671
displayName: Run project template tests
669672

670673
artifacts:

.azure/pipelines/ci.yml

Lines changed: 14 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ parameters:
2727
default: false
2828
displayName: Skip tests?
2929
type: boolean
30-
# Choose whether to enable binlogs when running pipeline manually.
31-
# Binary logs are enabled by default in public builds and aren't designed to be disabled there.
32-
- name: produceBinlogs
33-
default: false
34-
displayName: Produce binlogs?
35-
type: boolean
3630

3731
variables:
3832
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
@@ -63,39 +57,23 @@ variables:
6357
# The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
6458
- name: _PublishArgs
6559
value: /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
66-
- ${{ if ne(parameters.produceBinlogs, 'true') }}:
67-
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
68-
- name: WindowsArm64LogArgs
69-
value: -ExcludeCIBinaryLog
70-
- name: Windows64LogArgs
71-
value: -ExcludeCIBinaryLog
72-
- name: Windows86LogArgs
73-
value: -ExcludeCIBinaryLog
74-
- name: WindowsSignLogArgs
75-
value: -ExcludeCIBinaryLog
76-
- name: WindowsInstallersLogArgs
77-
value: -ExcludeCIBinaryLog
78-
- name: WindowsArm64InstallersLogArgs
79-
value: -ExcludeCIBinaryLog
8060
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
8161
- name: _BuildArgs
8262
value: '/p:SkipTestBuild=true /p:PostBuildSign=$(PostBuildSign)'
8363
- name: _PublishArgs
8464
value: ''
85-
- ${{ if or(in(variables['Build.Reason'], 'PullRequest'), eq(parameters.produceBinlogs, 'true')) }}:
86-
# Write binary logs for all main Windows build steps except the x86 one in public and PR builds.
87-
- name: WindowsArm64LogArgs
88-
value: /bl:artifacts/log/Release/Build.arm64.binlog
89-
- name: Windows64LogArgs
90-
value: /bl:artifacts/log/Release/Build.x64.binlog
91-
- name: Windows86LogArgs
92-
value: -ExcludeCIBinaryLog
93-
- name: WindowsSignLogArgs
94-
value: /bl:artifacts/log/Release/Build.CodeSign.binlog
95-
- name: WindowsInstallersLogArgs
96-
value: /bl:artifacts/log/Release/Build.Installers.binlog
97-
- name: WindowsArm64InstallersLogArgs
98-
value: /bl:artifacts/log/Release/Build.Installers.Arm64.binlog
65+
- name: WindowsArm64LogArgs
66+
value: /bl:artifacts/log/Release/Build.arm64.binlog
67+
- name: Windows64LogArgs
68+
value: /bl:artifacts/log/Release/Build.x64.binlog
69+
- name: Windows86LogArgs
70+
value: -ExcludeCIBinaryLog
71+
- name: WindowsSignLogArgs
72+
value: /bl:artifacts/log/Release/Build.CodeSign.binlog
73+
- name: WindowsInstallersLogArgs
74+
value: /bl:artifacts/log/Release/Build.Installers.binlog
75+
- name: WindowsArm64InstallersLogArgs
76+
value: /bl:artifacts/log/Release/Build.Installers.Arm64.binlog
9977
- name: _InternalRuntimeDownloadArgs
10078
value: -RuntimeSourceFeed https://dotnetbuilds.blob.core.windows.net/internal
10179
-RuntimeSourceFeedKey $(dotnetbuilds-internal-container-read-token-base64)
@@ -719,6 +697,8 @@ extends:
719697
displayName: Update submodules
720698
- script: ./restore.cmd
721699
displayName: Run restore.cmd
700+
- script: ./eng/build.cmd -all -noBuildJava -noBuildNodeJS
701+
displayName: Build (No NodeJS)
722702
- script: npm run build
723703
displayName: Build JS
724704
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug

.globalconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,20 @@ dotnet_diagnostic.CA1310.severity = error
1212

1313
# TODO: remove this - https://github.com/dotnet/aspnetcore/issues/47912
1414
dotnet_diagnostic.EnableGenerateDocumentationFile.severity = none
15+
16+
# Referencing types that are defined in M.CA.Workspaces is not appropriate
17+
# for analyzers or source generators that might be invoked from a command
18+
# line build because editor-specific types in M.CA.Workspaces are not
19+
# available in the command line. By default, Roslyn enables RS1038
20+
# which does a strict check and throws if a reference to M.CA.Workspaces
21+
# is included in the assembly. Here, we opt for a more relaxed check that
22+
# validates if M.CA.Workspace type references are included in the specific
23+
# Roslyn components that might be loaded in command line builds. We do this
24+
# because we ship editor-specific components, like the routing completion
25+
# providers, in the shared framework and want to avoid the analyzers warning
26+
# on the M.CA.Workspaces reference required for their components even though
27+
# they are never loaded in command line builds. Note: the "relaxed" check that is
28+
# enabled here will actually examine the types loaded by each individually analyzer
29+
# to see if they are from a Workspaces assembly so it will take longer than the
30+
# greedier (and stricter) check for references overall.
31+
roslyn_correctness.assembly_reference_validation = relaxed

eng/AfterSolutionBuild.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project>
22

3+
<Import Project="Common.props" />
34
<Import Project="tools\RepoTasks\RepoTasks.tasks" />
45
<Import Project="SharedFramework.External.props" />
56
<Import Project="SharedFramework.Local.props" />
67

78
<!-- This is temporary until we can use FrameworkReference to build our own packages. -->
8-
<Target Name="RemoveSharedFrameworkOnlyRefsFromNuspec" AfterTargets="Pack"
9-
Condition=" '$(MSBuildRuntimeType)' == 'core' ">
9+
<Target Name="RemoveSharedFrameworkOnlyRefsFromNuspec" AfterTargets="Pack" Condition="'$(BuildManaged)' == 'true'">
1010
<ItemGroup>
1111
<_BuildOutput Include="$(ArtifactsShippingPackagesDir)*.nupkg"
1212
Exclude="$(ArtifactsShippingPackagesDir)*.symbols.nupkg" />

0 commit comments

Comments
 (0)