Skip to content

Commit 1d50f65

Browse files
committed
Merge remote-tracking branch 'origin/microbuild' into optprof_fixes
2 parents 990c095 + 194b295 commit 1d50f65

Some content is hidden

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

49 files changed

+696
-231
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"isRoot": true,
44
"tools": {
55
"powershell": {
6-
"version": "7.4.1",
6+
"version": "7.4.5",
77
"commands": [
88
"pwsh"
99
]
1010
},
1111
"dotnet-coverage": {
12-
"version": "17.10.3",
12+
"version": "17.12.5",
1313
"commands": [
1414
"dotnet-coverage"
1515
]
1616
},
1717
"nbgv": {
18-
"version": "3.6.133",
18+
"version": "3.6.143",
1919
"commands": [
2020
"nbgv"
2121
]

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Refer to https://hub.docker.com/_/microsoft-dotnet-sdk for available versions
2-
FROM mcr.microsoft.com/dotnet/sdk:8.0.201-jammy
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0.400-jammy
33

44
# Installing mono makes `dotnet test` work without errors even for net472.
55
# But installing it takes a long time, so it's excluded by default.

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ indent_size = 2
2626
# Xml config files
2727
[*.{ruleset,config,nuspec,resx,vsixmanifest,vsct,runsettings}]
2828
indent_size = 2
29+
indent_style = space
2930

3031
# JSON files
3132
[*.json]
@@ -184,5 +185,8 @@ dotnet_diagnostic.DOC202.severity = warning
184185
# CA1062: Validate arguments of public methods
185186
dotnet_diagnostic.CA1062.severity = warning
186187

188+
# CA2016: Forward the CancellationToken parameter
189+
dotnet_diagnostic.CA2016.severity = warning
190+
187191
[*.sln]
188192
indent_style = tab

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os:
25-
- ubuntu-20.04
25+
- ubuntu-22.04
2626
- macos-latest
2727
- windows-latest
2828

2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
3333
- name: ⚙ Install prerequisites
@@ -57,53 +57,53 @@ jobs:
5757
if: always()
5858
- name: 📢 Upload project.assets.json files
5959
if: always()
60-
uses: actions/upload-artifact@v1
60+
uses: actions/upload-artifact@v4
6161
with:
6262
name: projectAssetsJson-${{ runner.os }}
6363
path: ${{ runner.temp }}/_artifacts/projectAssetsJson
6464
continue-on-error: true
6565
- name: 📢 Upload variables
66-
uses: actions/upload-artifact@v1
66+
uses: actions/upload-artifact@v4
6767
with:
6868
name: variables-${{ runner.os }}
6969
path: ${{ runner.temp }}/_artifacts/Variables
7070
continue-on-error: true
7171
- name: 📢 Upload build_logs
7272
if: always()
73-
uses: actions/upload-artifact@v1
73+
uses: actions/upload-artifact@v4
7474
with:
7575
name: build_logs-${{ runner.os }}
7676
path: ${{ runner.temp }}/_artifacts/build_logs
7777
continue-on-error: true
7878
- name: 📢 Upload test_logs
7979
if: always()
80-
uses: actions/upload-artifact@v1
80+
uses: actions/upload-artifact@v4
8181
with:
8282
name: test_logs-${{ runner.os }}
8383
path: ${{ runner.temp }}/_artifacts/test_logs
8484
continue-on-error: true
8585
- name: 📢 Upload testResults
8686
if: always()
87-
uses: actions/upload-artifact@v1
87+
uses: actions/upload-artifact@v4
8888
with:
8989
name: testResults-${{ runner.os }}
9090
path: ${{ runner.temp }}/_artifacts/testResults
9191
continue-on-error: true
9292
- name: 📢 Upload coverageResults
9393
if: always()
94-
uses: actions/upload-artifact@v1
94+
uses: actions/upload-artifact@v4
9595
with:
9696
name: coverageResults-${{ runner.os }}
9797
path: ${{ runner.temp }}/_artifacts/coverageResults
9898
continue-on-error: true
9999
- name: 📢 Upload symbols
100-
uses: actions/upload-artifact@v1
100+
uses: actions/upload-artifact@v4
101101
with:
102102
name: symbols-${{ runner.os }}
103103
path: ${{ runner.temp }}/_artifacts/symbols
104104
continue-on-error: true
105105
- name: 📢 Upload deployables
106-
uses: actions/upload-artifact@v1
106+
uses: actions/upload-artifact@v4
107107
with:
108108
name: deployables-${{ runner.os }}
109109
path: ${{ runner.temp }}/_artifacts/deployables
@@ -113,4 +113,4 @@ jobs:
113113
shell: pwsh
114114
timeout-minutes: 3
115115
continue-on-error: true
116-
if: always()
116+
if: env.codecov_token != ''

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,3 +352,6 @@ MigrationBackup/
352352

353353
# mac-created file to track user view preferences for a directory
354354
.DS_Store
355+
356+
# Analysis results
357+
*.sarif

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
// Needs to be explicitly configured: https://github.com/Microsoft/azure-pipelines-vscode#document-formatting
2020
"[azure-pipelines]": {
2121
"editor.defaultFormatter": "esbenp.prettier-vscode",
22-
"editor.formatOnSave": false // enable this when the conform
22+
"editor.formatOnSave": false // enable this when they conform
2323
},
2424
}

Apply-Template.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ robocopy /mir $PSScriptRoot/.github $Path/.github
3737
robocopy /mir $PSScriptRoot/.vscode $Path/.vscode
3838
robocopy /mir $PSScriptRoot/tools $Path/tools
3939
robocopy $PSScriptRoot $Path Directory.Build.* Directory.Packages.props global.json init.* azure-pipelines.yml .gitignore .gitattributes .editorconfig
40-
robocopy $PSScriptRoot/src $Path/src Directory.Build.* .editorconfig AssemblyInfo.cs
40+
robocopy $PSScriptRoot/src $Path/src Directory.Build.* .editorconfig AssemblyInfo.cs AssemblyInfo.vb
4141
robocopy $PSScriptRoot/test $Path/test Directory.Build.* .editorconfig
4242
Remove-Item $Path/azure-pipelines/expand-template.yml

Directory.Build.props

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<BaseIntermediateOutputPath>$(RepoRootPath)obj\$([MSBuild]::MakeRelative($(RepoRootPath), $(MSBuildProjectDirectory)))\</BaseIntermediateOutputPath>
77
<BaseOutputPath Condition=" '$(BaseOutputPath)' == '' ">$(RepoRootPath)bin\$(MSBuildProjectName)\</BaseOutputPath>
88
<PackageOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\NuGet\</PackageOutputPath>
9-
<LangVersion>12</LangVersion>
9+
<VSIXOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\Vsix\$(Platform)\</VSIXOutputPath>
1010
<Nullable>enable</Nullable>
1111
<ImplicitUsings>enable</ImplicitUsings>
1212
<AnalysisLevel>latest</AnalysisLevel>
@@ -56,23 +56,4 @@
5656
<PackageReleaseNotes Condition="'$(PackageProjectUrl)'!=''">$(PackageProjectUrl)/releases/tag/v$(Version)</PackageReleaseNotes>
5757
</PropertyGroup>
5858
</Target>
59-
60-
<PropertyGroup Condition="'$(IsWpfTempProject)' == ''">
61-
<IsWpfTempProject>false</IsWpfTempProject>
62-
<IsWpfTempProject Condition="$(MSBuildProjectName.EndsWith('_wpftmp'))">true</IsWpfTempProject>
63-
</PropertyGroup>
64-
65-
<!--
66-
Inspired by https://github.com/dotnet/arcade/blob/cbfa29d4e859622ada3d226f90f103f659665d31/src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.props#L14-L31
67-
68-
Disable Source Link and Xliff in WPF temp projects to avoid generating non-deterministic file names to obj dir.
69-
The project name is non-deterministic and is included in the Source Link json file name and xlf directory names.
70-
It's also not necessary to generate these assets.
71-
-->
72-
<PropertyGroup Condition="'$(IsWpfTempProject)' == 'true'">
73-
<EnableSourceLink>false</EnableSourceLink>
74-
<EmbedUntrackedSources>false</EmbedUntrackedSources>
75-
<DeterministicSourcePaths>false</DeterministicSourcePaths>
76-
<EnableXlfLocalization>false</EnableXlfLocalization>
77-
</PropertyGroup>
7859
</Project>

Directory.Build.targets

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<!-- Workaround https://github.com/dotnet/wpf/issues/1718 -->
5-
<EmbedUntrackedSources Condition=" '$(UseWPF)' == 'true' ">false</EmbedUntrackedSources>
4+
<LangVersion Condition="'$(Language)'=='C#'">12</LangVersion>
5+
<LangVersion Condition="'$(Language)'=='VB'">16.9</LangVersion>
66
</PropertyGroup>
7-
87
<ItemGroup>
98
<!-- Avoid compile error about missing namespace when combining ImplicitUsings with .NET Framework target frameworks. -->
109
<Using Remove="System.Net.Http" Condition="'$(TargetFrameworkIdentifier)'=='.NETFramework'" />

Directory.Packages.props

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,20 @@
55
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
66
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
77

8-
<MicroBuildVersion>2.0.149</MicroBuildVersion>
8+
<MicroBuildVersion>2.0.165</MicroBuildVersion>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
11+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
1212
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
13-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.7" />
14-
<PackageVersion Include="xunit" Version="2.7.0" />
13+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
14+
<PackageVersion Include="xunit" Version="2.9.2" />
1515
</ItemGroup>
1616
<ItemGroup>
17-
<GlobalPackageReference Include="CSharpIsNullAnalyzer" Version="0.1.495" />
17+
<GlobalPackageReference Include="CSharpIsNullAnalyzer" Version="0.1.593" />
1818
<GlobalPackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" />
1919
<GlobalPackageReference Include="Microsoft.VisualStudio.Internal.MicroBuild.VisualStudio" Version="$(MicroBuildVersion)" />
20-
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
20+
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.143" />
2121
<GlobalPackageReference Include="Nullable" Version="1.3.1" />
2222
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.556" />
2323
</ItemGroup>
24-
<ItemGroup>
25-
<!-- <GlobalPackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="8.0.0" /> -->
26-
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
27-
</ItemGroup>
2824
</Project>

0 commit comments

Comments
 (0)