-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move to 8.0 This updates our TFMS to recognize that .NET 8 has shipped and .NET 6 is no longer supported. At the same time I am trying to update our code base to be more driven off of `$(NetCurrent)` and `$(NetPrevious)`. This is important for source build and VMR work as these properties are often overriden to drive the larger build efforts. Hard coded .NET Core based TFMs interfere with that and cause friction for those teams. * Apply suggestions from code review Co-authored-by: Jason Malinowski <jason@jason-m.com> * Clean up NETSDK1206 warnings * NETSDK1206 warnings * Include a check for duplicate TFMs * fix * more * more * more * more * more * Fix BuildBoss checks * More * more * more * more * more --------- Co-authored-by: Jason Malinowski <jason@jason-m.com>
- Loading branch information
1 parent
c05a561
commit 5fad265
Showing
122 changed files
with
287 additions
and
208 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
|
||
<!-- | ||
This props file manages the target framework properties for Roslyn. The strategy for these properties | ||
is convered in "docs/contributing/Target Framework Strategy.md". Please see that for documentation | ||
on what these values mean. | ||
Requirements: | ||
- NetVSShared must include both NetVS and NetVSCode | ||
- NetRoslynSourceBuild must include NetRoslynToolset | ||
- NetRoslynAll must include all .NET Core TFMS in any property below | ||
--> | ||
<PropertyGroup> | ||
<NetRoslyn>net8.0</NetRoslyn> | ||
<NetRoslynAll>net7.0;net8.0</NetRoslynAll> | ||
<NetVS>net8.0</NetVS> | ||
<NetVSCode>net7.0</NetVSCode> | ||
<NetVSShared>net7.0;net8.0</NetVSShared> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
There are effectively three modes that are needed for our source build TFMs and this is where | ||
we calculate them | ||
--> | ||
<Choose> | ||
<!-- | ||
1. CI source build leg: this needs to build the current and previous source build TFM. Both are | ||
necessary as the output of this leg is used in other CI source build legs. Those could be | ||
targeting NetCurrent or NetPrevious hence we must produce both. | ||
However the toolset package we produce must target NetPrevious. This package gets used as the | ||
bootstrap toolset in other repos doing (1). Those can be using a NetPrevious runtime hence | ||
the toolset must support that. | ||
--> | ||
<When Condition="'$(DotNetBuildFromSource)' == 'true' AND '$(DotNetBuildFromSourceFlavor)' != 'Product'"> | ||
<PropertyGroup> | ||
<NetRoslynToolset>$(NetPrevious)</NetRoslynToolset> | ||
<NetRoslynSourceBuild>$(NetCurrent);$(NetPrevious)</NetRoslynSourceBuild> | ||
<NetRoslynAll>$(NetCurrent);$(NetPrevious)</NetRoslynAll> | ||
</PropertyGroup> | ||
</When> | ||
|
||
<!-- | ||
2. Source build the product: this is the all up build of the product which needs only NetCurrent | ||
--> | ||
<When Condition="'$(DotNetBuildFromSource)' == 'true' AND '$(DotNetBuildFromSourceFlavor)' == 'Product'"> | ||
<PropertyGroup> | ||
<NetRoslynToolset>$(NetCurrent)</NetRoslynToolset> | ||
<NetRoslynSourceBuild>$(NetCurrent);$(NetPrevious)</NetRoslynSourceBuild> | ||
<NetRoslynAll>$(NetCurrent);$(NetPrevious)</NetRoslynAll> | ||
</PropertyGroup> | ||
</When> | ||
|
||
<!-- | ||
3. Everything else including normal CI, developer machines and official builds. This brings in enough | ||
TFM that source build will go smoothly but doesn't bring in all source build TFMs to avoid adding | ||
too many extra compiles to our builds | ||
--> | ||
<Otherwise> | ||
<PropertyGroup> | ||
<NetRoslynToolset>net8.0</NetRoslynToolset> | ||
<NetRoslynSourceBuild>net7.0;net8.0</NetRoslynSourceBuild> | ||
</PropertyGroup> | ||
</Otherwise> | ||
</Choose> | ||
</Project> |
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
Oops, something went wrong.