Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,8 @@ If the repo owner is unsure about NativeAOT support, you might offer to test the

In the event the user elects for NativeAOT targeting, make efforts to get tests to work under NativeAOT as well so the shipping code can confidently advertise its NativeAOT compatibility.
If aspects of the library or tests make successful builds, publish or test runs problematic, discuss this with the repo owner before making significant changes or giving up on NativeAOT support.

## Targeting .NET 10

.NET 8 and 9 are no longer supported by Microsoft.
All projects in the repo that target these runtimes should be updated to target .NET 10.
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## Testing

See the [testing skill](.agents/skills/testing/SKILL.md) for TUnit/Microsoft.Testing.Platform commands and `--treenode-filter` syntax.
The test project is `test/Nerdbank.DotNetRepoTools.Tests/Nerdbank.DotNetRepoTools.Tests.csproj`, targeting `net8.0`, `net9.0`, and `net10.0`.
The test project is `test/Nerdbank.DotNetRepoTools.Tests/Nerdbank.DotNetRepoTools.Tests.csproj`, targeting `net10.0`.

## Coding style

Expand Down
16 changes: 1 addition & 15 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<MicrosoftTestingPlatformVersion>2.5.2</MicrosoftTestingPlatformVersion>
<MicrosoftTestingPlatformVersion>2.5.3</MicrosoftTestingPlatformVersion>
<MicrosoftBuildVersion>18.6.3</MicrosoftBuildVersion>
<MicrosoftBuildVersionForNet8>17.10.46</MicrosoftBuildVersionForNet8>
<MicrosoftBuildVersionForNet9>17.14.28</MicrosoftBuildVersionForNet9>
<NuGetVersion>8.0.0</NuGetVersion>
<NuGetVersionForNet8>6.11.1</NuGetVersionForNet8>
<NuGetVersionForNet9>6.14.3</NuGetVersionForNet9>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Azure.Identity" Version="1.21.0" />
Expand All @@ -23,16 +19,6 @@
<PackageVersion Include="Spectre.Console" Version="0.57.2" />
<PackageVersion Include="System.CommandLine" Version="2.0.15" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageVersion Update="Microsoft.Build" Version="$(MicrosoftBuildVersionForNet8)" />
<PackageVersion Update="NuGet.Commands" Version="$(NuGetVersionForNet8)" />
<PackageVersion Update="NuGet.Frameworks" Version="$(NuGetVersionForNet8)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageVersion Update="Microsoft.Build" Version="$(MicrosoftBuildVersionForNet9)" />
<PackageVersion Update="NuGet.Commands" Version="$(NuGetVersionForNet9)" />
<PackageVersion Update="NuGet.Frameworks" Version="$(NuGetVersionForNet9)" />
</ItemGroup>
<ItemGroup Label="Library.Template">
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.12.0" />
<PackageVersion Include="Microsoft.Testing.Platform" Version="$(MicrosoftTestingPlatformVersion)" />
Expand Down
6 changes: 2 additions & 4 deletions src/Nerdbank.DotNetRepoTools/Nerdbank.DotNetRepoTools.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Multi-target so that the tool will run on the latest runtime on the user's machine.
This is important so that if the user only has an SDK installed that matches the latest runtime version,
we'll be able to find MSBuild via that SDK. -->
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<!-- .NET 10 is the oldest supported runtime. The tool runs on that runtime and locates MSBuild from the installed SDK. -->
<TargetFrameworks>net10.0</TargetFrameworks>
<OutputType>exe</OutputType>
<ToolCommandName>repo</ToolCommandName>
<PackAsTool>True</PackAsTool>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>net10.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace />
<NoWarn Condition="'$(TargetFramework)' != 'net10.0'">$(NoWarn);NU1901</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading