Skip to content

Commit e7c9520

Browse files
authored
Merge pull request #1075 from dotnet/libtemplateUpdate
Merge latest Library.Template
2 parents 976fc10 + 778b6e4 commit e7c9520

13 files changed

+32
-42
lines changed

.config/dotnet-tools.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"isRoot": true,
44
"tools": {
55
"powershell": {
6-
"version": "7.4.2",
6+
"version": "7.4.4",
77
"commands": [
88
"pwsh"
99
]
1010
},
1111
"dotnet-coverage": {
12-
"version": "17.11.0",
12+
"version": "17.11.3",
1313
"commands": [
1414
"dotnet-coverage"
1515
]
1616
},
1717
"nbgv": {
18-
"version": "3.6.133",
18+
"version": "3.6.139",
1919
"commands": [
2020
"nbgv"
2121
]
2222
}
2323
}
24-
}
24+
}

.devcontainer/Dockerfile

+1-1
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.300-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

+4
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]
@@ -190,5 +191,8 @@ dotnet_diagnostic.DOC202.severity = warning
190191
# CA1062: Validate arguments of public methods
191192
dotnet_diagnostic.CA1062.severity = suggestion
192193

194+
# CA2016: Forward the CancellationToken parameter
195+
dotnet_diagnostic.CA2016.severity = warning
196+
193197
[*.sln]
194198
indent_style = tab

.gitignore

+3
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

Directory.Build.props

-20
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<BaseOutputPath Condition=" '$(BaseOutputPath)' == '' ">$(RepoRootPath)bin\$(MSBuildProjectName)\</BaseOutputPath>
88
<PackageOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\</PackageOutputPath>
99
<DocumentationRootFolder>$(MSBuildThisFileDirectory)..\wiki\api</DocumentationRootFolder>
10-
<LangVersion>12</LangVersion>
1110
<!--<Nullable>enable</Nullable>-->
1211
<ImplicitUsings>enable</ImplicitUsings>
1312
<AnalysisLevel>latest</AnalysisLevel>
@@ -56,23 +55,4 @@
5655
<PackageReleaseNotes Condition="'$(PackageProjectUrl)'!=''">$(PackageProjectUrl)/releases/tag/v$(Version)</PackageReleaseNotes>
5756
</PropertyGroup>
5857
</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>
7858
</Project>

Directory.Build.targets

+2-3
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

+5-8
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<PackageVersion Include="Microsoft.Build" Version="$(MSBuildPackageVersion)" />
2525
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" />
2626
<PackageVersion Include="Microsoft.DotNet.PlatformAbstractions" Version="3.1.6" />
27-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
27+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
2828
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.2.206-beta" />
2929
<PackageVersion Include="Nerdbank.GitVersioning.LKG" Version="3.4.173-alpha" />
3030
<PackageVersion Include="Newtonsoft.Json.Schema" Version="4.0.1" />
@@ -34,21 +34,18 @@
3434
<PackageVersion Include="System.Diagnostics.Tools" Version="4.3.0" />
3535
<PackageVersion Include="System.Memory" Version="4.5.5" />
3636
<PackageVersion Include="System.Runtime.Loader" Version="4.3.0" />
37-
<PackageVersion Include="System.Text.Json" Version="8.0.0" />
37+
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
3838
<PackageVersion Include="System.Threading.Tasks.Dataflow" Version="8.0.0" />
3939
<PackageVersion Include="Validation" Version="2.5.51" />
4040
<PackageVersion Include="Xunit.Combinatorial" Version="1.6.24" />
41-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" />
41+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
4242
<PackageVersion Include="Xunit.SkippableFact" Version="1.4.13" />
43-
<PackageVersion Include="xunit" Version="2.8.0" />
43+
<PackageVersion Include="xunit" Version="2.9.0" />
4444
</ItemGroup>
4545
<ItemGroup>
46-
<GlobalPackageReference Include="CSharpIsNullAnalyzer" Version="0.1.495" />
46+
<GlobalPackageReference Include="CSharpIsNullAnalyzer" Version="0.1.593" />
4747
<GlobalPackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" />
4848
<GlobalPackageReference Include="Nullable" Version="1.3.1" />
4949
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.556" />
5050
</ItemGroup>
51-
<ItemGroup>
52-
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
53-
</ItemGroup>
5451
</Project>

azure-pipelines.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ stages:
119119
clean: true
120120
submodules: true # keep the warnings quiet about the wiki not being enlisted
121121
- task: UseDotNet@2
122-
displayName: Install .NET 8.0.201 SDK
122+
displayName: Install .NET 8.0.300 SDK
123123
inputs:
124124
packageType: sdk
125-
version: 8.0.201
125+
version: 8.0.300
126126
- script: dotnet --info
127127
displayName: Show dotnet SDK info
128128
- bash: |

azure-pipelines/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- template: install-dependencies.yml
2424
- pwsh: |
2525
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
26-
& .\dotnet-install.ps1 -Architecture x86 -Version 8.0.201 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
26+
& .\dotnet-install.ps1 -Architecture x86 -Version 8.0.300 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
2727
displayName: ⚙ Install 32-bit .NET SDK and runtimes
2828
2929
- template: dotnet.yml

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.201",
3+
"version": "8.0.300",
44
"rollForward": "patch",
55
"allowPrerelease": false
66
}

src/AssemblyInfo.vb

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
' Copyright (c) .NET Foundation and Contributors. All rights reserved.
2+
' Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
Imports System.Runtime.InteropServices
5+
6+
<Assembly: DefaultDllImportSearchPaths(DllImportSearchPath.SafeDirectories)>

src/Directory.Build.targets

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<ItemGroup>
4-
<Compile Include="$(MSBuildThisFileDirectory)AssemblyInfo.cs" />
4+
<Compile Include="$(MSBuildThisFileDirectory)AssemblyInfo.cs" Condition=" '$(Language)'=='C#' " />
5+
<Compile Include="$(MSBuildThisFileDirectory)AssemblyInfo.vb" Condition=" '$(Language)'=='VB' " />
56
</ItemGroup>
67

78
<Import Project="$([MSBuild]::GetPathOfFileAbove($(MSBuildThisFile), $(MSBuildThisFileDirectory)..))" />

test/Nerdbank.GitVersioning.Tests/MSBuildExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal static void LoadMSBuild()
2525
if (IntPtr.Size == 4)
2626
{
2727
// 32-bit .NET runtime requires special code to find the x86 SDK (where MSBuild is).
28-
MSBuildLocator.RegisterMSBuildPath(@"C:\Program Files (x86)\dotnet\sdk\8.0.201");
28+
MSBuildLocator.RegisterMSBuildPath(@"C:\Program Files (x86)\dotnet\sdk\8.0.300");
2929
}
3030
else
3131
{

0 commit comments

Comments
 (0)