Skip to content

Commit 080e9d0

Browse files
authored
Merge branch 'main' into merge/release/9.0-to-main
2 parents 65ef831 + 850b6ce commit 080e9d0

File tree

344 files changed

+2684
-1345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+2684
-1345
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,38 @@ stages:
640640
publishOnError: true
641641
includeForks: true
642642

643+
# Local development validation
644+
- template: jobs/default-build.yml
645+
parameters:
646+
jobName: Local_Windows
647+
jobDisplayName: 'Test: Windows local development validation'
648+
agentOs: Windows
649+
timeoutInMinutes: 240
650+
steps:
651+
- script: git submodule update --init
652+
displayName: Update submodules
653+
- script: ./restore.cmd
654+
displayName: Run restore.cmd
655+
- script: npm run build
656+
displayName: Build JS
657+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug
658+
displayName: Build (Debug)
659+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Release
660+
displayName: Build (Release)
661+
- script: ./src/ProjectTemplates/build.cmd
662+
-test
663+
-NoRestore
664+
-NoBuild
665+
-NoBuildDeps
666+
-configuration Release
667+
displayName: Run project template tests
668+
669+
artifacts:
670+
- name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt)
671+
path: artifacts/log/
672+
publishOnError: true
673+
includeForks: true
674+
643675
# Source build
644676
- template: /eng/common/templates/job/source-build.yml
645677
parameters:

.azure/pipelines/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,39 @@ extends:
701701
publishOnError: true
702702
includeForks: true
703703

704+
# Local development validation
705+
- ${{ if in(variables['Build.Reason'], 'PullRequest', 'Manual') }}:
706+
- template: .azure/pipelines/jobs/default-build.yml@self
707+
parameters:
708+
jobName: Local_Windows
709+
jobDisplayName: 'Test: Windows local development validation'
710+
agentOs: Windows
711+
timeoutInMinutes: 240
712+
steps:
713+
- script: git submodule update --init
714+
displayName: Update submodules
715+
- script: ./restore.cmd
716+
displayName: Run restore.cmd
717+
- script: npm run build
718+
displayName: Build JS
719+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug
720+
displayName: Build (Debug)
721+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Release
722+
displayName: Build (Release)
723+
- script: ./src/ProjectTemplates/build.cmd
724+
-test
725+
-NoRestore
726+
-NoBuild
727+
-NoBuildDeps
728+
-configuration Release
729+
displayName: Run project template tests
730+
731+
artifacts:
732+
- name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt)
733+
path: artifacts/log/
734+
publishOnError: true
735+
includeForks: true
736+
704737
# Source build
705738
- template: /eng/common/templates-official/job/source-build.yml@self
706739
parameters:

.github/policies/resourceManagement.yml

Lines changed: 0 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -293,130 +293,6 @@ configuration:
293293
- addLabel:
294294
label: 'Attention: Shared Code Modified'
295295
description: '[Shared Code PRs] Flag PRs that affect shared code src/Shared/Runtime'
296-
- if:
297-
- payloadType: Pull_Request
298-
then:
299-
- if:
300-
- includesModifiedFiles:
301-
files:
302-
- src/Components/
303-
- src/ProjectTemplates/BlazorWasm.ProjectTemplates/
304-
then:
305-
- addLabel:
306-
label: area-blazor
307-
- if:
308-
- includesModifiedFiles:
309-
files:
310-
- src/Tools/
311-
then:
312-
- addLabel:
313-
label: area-commandlinetools
314-
- if:
315-
- includesModifiedFiles:
316-
files:
317-
- src/DataProtection/
318-
then:
319-
- addLabel:
320-
label: area-dataprotection
321-
- if:
322-
- includesModifiedFiles:
323-
files:
324-
- src/Identity/
325-
then:
326-
- addLabel:
327-
label: area-identity
328-
- if:
329-
- includesModifiedFiles:
330-
files:
331-
- global.json
332-
- .azure
333-
- .config
334-
- .github
335-
- eng
336-
- src/Framework/
337-
- src/Installers/
338-
then:
339-
- addLabel:
340-
label: area-infrastructure
341-
- if:
342-
- includesModifiedFiles:
343-
files:
344-
- src/ProjectTemplates/
345-
- src/Razor/
346-
- src/Mvc/Mvc.Localization/
347-
- src/Mvc/Mvc.DataAnnotations/
348-
- src/Mvc/Mvc.Razor.RuntimeCompilation/
349-
- src/Mvc/Mvc.Razor/
350-
- src/Mvc/Mvc.RazorPages/
351-
- src/Mvc/Mvc.TagHelpers/
352-
- src/Mvc/Mvc.ViewFeatures/
353-
then:
354-
- addLabel:
355-
label: area-mvc
356-
- if:
357-
- includesModifiedFiles:
358-
files:
359-
- src/Security/
360-
- src/Azure/AzureAD/
361-
then:
362-
- addLabel:
363-
label: area-security
364-
- if:
365-
- includesModifiedFiles:
366-
files:
367-
- src/Servers/
368-
- src/Http/
369-
- src/Azure/AzureAppServicesIntegration/
370-
- src/Azure/AzureAppServices.HostingStartup/
371-
- src/Middleware/
372-
- src/HttpClientFactory/
373-
- src/SiteExtensions/
374-
then:
375-
- addLabel:
376-
label: area-networking
377-
- if:
378-
- includesModifiedFiles:
379-
files:
380-
- src/SignalR/
381-
then:
382-
- addLabel:
383-
label: area-signalr
384-
- if:
385-
- includesModifiedFiles:
386-
files:
387-
- src/Grpc/
388-
then:
389-
- addLabel:
390-
label: area-grpc
391-
- if:
392-
- includesModifiedFiles:
393-
files:
394-
- src/Mvc/Mvc.Abstractions/
395-
- src/Mvc/Mvc.Analyzers/
396-
- src/Mvc/Mvc.Api.Analyzers/
397-
- src/Mvc/Mvc.ApiExplorer/
398-
- src/Mvc/Mvc.Core/
399-
- src/Mvc/Mvc.Cors/
400-
- src/Mvc/Mvc.Formatters.Json/
401-
- src/Mvc/Mvc.Formatters.Xml/
402-
- src/Mvc/Mvc.NewtonsoftJson/
403-
- src/Mvc/Mvc.Testing.Tasks/src/
404-
- src/Mvc/Mvc.Testing/
405-
- src/Mvc/Mvc/
406-
- src/OpenApi/
407-
- src/Mvc/perf/
408-
then:
409-
- addLabel:
410-
label: area-mvc
411-
- if:
412-
- includesModifiedFiles:
413-
files:
414-
- src/DefaultBuilder/
415-
- src/Hosting/
416-
then:
417-
- addLabel:
418-
label: area-hosting
419-
description: '[PR Labelling] Apply `area-` labels to PRs'
420296
- if:
421297
- payloadType: Pull_Request
422298
- labelAdded:

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@
130130
<!-- xUnit1004 = warns about skipped tests. Make this a non-fatal build warning. -->
131131
<WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1004</WarningsNotAsErrors>
132132

133+
<!-- don't warn about calling ConfigureAwait in test methods. we already commonly get off the xunit threads because they cause issues. -->
134+
<NoWarn>$(NoWarn);xUnit1030</NoWarn>
135+
133136
<!-- don't warn about unnecessary trim warning suppressions. can be removed with preview 6. -->
134137
<NoWarn>$(NoWarn);IL2121</NoWarn>
135138

NuGet.config

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
<clear />
55
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
66
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
7+
<add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
8+
<add key="dotnet10-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport/nuget/v3/index.json" />
79
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
810
<add key="dotnet9-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" />
911
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
10-
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
1112
<add key="dotnet8-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" />
1213
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
13-
<!-- Used for the SiteExtension bits that are included in the 8.0 build -->
14-
<add key="dotnet31-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json" />
15-
<add key="dotnet5-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json" />
14+
<!-- Used for the SiteExtension bits -->
1615
<add key="dotnet6-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6-transport/nuget/v3/index.json" />
17-
<add key="dotnet7-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7-transport/nuget/v3/index.json" />
1816
<!-- Used for the Rich Navigation indexing task -->
1917
<add key="richnav" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-buildservices/nuget/v3/index.json" />
2018
</packageSources>

eng/Npm.Workspace.nodeproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<Message Text="Building NPM packages..." Importance="high" />
3838

39-
<Exec Condition="'$(ContinuousIntegrationBuild)' == 'true'"
39+
<Exec
4040
Command="node $(MSBuildThisFileDirectory)scripts/npm/pack-workspace.mjs --update-versions $(RepoRoot)package.json $(PackageVersion) $(PackageOutputPath) $(IntermediateOutputPath)"
4141
EnvironmentVariables="$(_NpmAdditionalEnvironmentVariables)" />
4242

@@ -58,6 +58,8 @@
5858
</PropertyGroup>
5959
<Message Text="Packing NPM packages..." Importance="high" />
6060
<MakeDir Directories="$(PackageOutputPath)" Condition="!Exists('$(PackageOutputPath)')" />
61+
<MakeDir Directories="$(IntermediateOutputPath)" Condition="!Exists('$(IntermediateOutputPath)')" />
62+
6163
<Exec
6264
Command="node $(MSBuildThisFileDirectory)scripts/npm/pack-workspace.mjs --create-packages $(RepoRoot)package.json $(PackageVersion) $(PackageOutputPath) $(IntermediateOutputPath)"
6365
EnvironmentVariables="$(_NpmAdditionalEnvironmentVariables)" />

eng/SourceBuildPrebuiltBaseline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
<!-- These are coming in via runtime but the source-build infra isn't able to automatically pick up the right intermediate. -->
3636
<UsagePattern IdentityGlob="Microsoft.NET.ILLink.Tasks/*9.0.*" />
37-
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Crossgen2.linux-x64/*9.0.*" />
37+
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Crossgen2.linux-x64/*10.0.*" />
3838

3939
<!-- Transivite dependency of Microsoft.CodeAnalysis.ExternalAccess.AspNetCore -> Microsoft.CodeAnalysis.Features.
4040
In product build the dependency is bumped to latest, which also bumps the version of DiaSymReader -->

0 commit comments

Comments
 (0)