-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/6.0] Introduce targeting properties (#12633)
* Introduce targeting properties (#12161) * Introduce targeting properties Targeting implementation of https://github.com/dotnet/arcade/pull/11903/files. Adds three properties to allow repos to defer some/all of their target framework maintenance to arcade. Arcade already had a file like this for its own purposes. I've removed that and hoisted arcade's targeting property into its Directory.Build.props. * Fixup the TFM * Remove import
- Loading branch information
Showing
6 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Microsoft.DotNet.Arcade.Sdk/tools/TargetFrameworkDefaults.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. --> | ||
<Project> | ||
<!-- Repositories using the arcade SDK can stay up to date with their target framework more easily using the properties in this file. | ||
- NetCurrent - The TFM of the major release of .NET that the Arcade SDK aligns with. | ||
- NetPrevious - The previously released version of .NET (e.g. this would be net7 if NetCurrent is net8) | ||
- NetMinimum - Lowest supported version of .NET the time of the release of NetCurrent. E.g. if NetCurrent is net8, then NetMinimum is net6 | ||
- NetFrameworkMinimum - Lowest supported version of .NET Framework the time of the release of NetCurrent. E.g. if NetCurrent is net8, then NetFrameworkMinimum is net462 | ||
Examples: | ||
<TargetFrameworks>$(NetCurrent)</TargetFrameworks> | ||
<TargetFrameworks>$(NetCurrent);net472</TargetFrameworks> | ||
<TargetFrameworks>$(NetCurrent);$(NetPrevious);$(NetFrameworkMinimum);net472</TargetFrameworks> | ||
--> | ||
<PropertyGroup> | ||
<NetCurrent>net6.0</NetCurrent> | ||
<NetPrevious>net5.0</NetPrevious> | ||
<NetMinimum>net3.1</NetMinimum> | ||
<NetFrameworkMinimum>net452</NetFrameworkMinimum> | ||
</PropertyGroup> | ||
</Project> |