|
21 | 21 | <BUILDING_USING_DOTNET>true</BUILDING_USING_DOTNET> |
22 | 22 | </PropertyGroup> |
23 | 23 |
|
| 24 | + <!-- To support source-build for the "next" version of .NET without forcing this repo to use it, |
| 25 | + we can utilize arcade's $(NetCurrent) property, and set it ourselves in the arcade-less scenarios. |
| 26 | + For FCS solution, we set it to one for current dev cycle. |
| 27 | + When used with arcade, and inserting/building for net8 branches, it will set it to net8.0, |
| 28 | + for net9 branches to net9.0 and so on --> |
| 29 | + <Choose> |
| 30 | + <!-- Once we move to OOP in VS, and major dependants of FCS will move to netcore (not netstandard), |
| 31 | + we should also support $(NetPrevious) for all releases. |
| 32 | + This will likely include FCS and FSharp.Core as well ash shipped products. |
| 33 | + Right now, it only covers producs we ship (FSC and FSI), not NuGet packages. --> |
| 34 | + <When |
| 35 | + Condition="'$(DotNetBuildFromSource)' == 'true' AND '$(DotNetBuildFromSourceFlavor)' == 'Product'"> |
| 36 | + <PropertyGroup> |
| 37 | + <FSharpNetCoreProductTargetFramework>$(NetCurrent)</FSharpNetCoreProductTargetFramework> |
| 38 | + </PropertyGroup> |
| 39 | + </When> |
| 40 | + <Otherwise> |
| 41 | + <PropertyGroup> |
| 42 | + <FSharpNetCoreProductTargetFramework>net8.0</FSharpNetCoreProductTargetFramework> |
| 43 | + </PropertyGroup> |
| 44 | + </Otherwise> |
| 45 | + </Choose> |
| 46 | + |
24 | 47 | <Import Project="$(RepoRoot)/Directory.Build.props.user" Condition="Exists('$(RepoRoot)/Directory.Build.props.user')" /> |
25 | 48 |
|
26 | 49 | <PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'"> |
|
44 | 67 | <!-- If there is a README.md next to a project file, include it (for easier access in the IDE) --> |
45 | 68 | <None Include="README.md" Condition="Exists('README.md')" /> |
46 | 69 | </ItemGroup> |
47 | | - |
48 | | - <!-- To support source-build for the "next" version of .NET without forcing this repo to use it, |
49 | | - we can utilize arcade's $(NetCurrent) property, and set it ourselves in the arcade-less scenarios. |
50 | | - For FCS solution, we set it to one for current dev cycle. |
51 | | - When used with arcade, and inserting/building for net8 branches, it will set it to net8.0, |
52 | | - for net9 branches to net9.0 and so on --> |
53 | | - <Choose> |
54 | | - <!-- Once we move to OOP in VS, and major dependants of FCS will move to netcore (not netstandard), we should also support $(NetPrevious) for all releases. |
55 | | - This will likely include FCS and FSharp.Core as well ash shipped products. |
56 | | - Right now, it only covers producs we ship (FSC and FSI), not NuGet packages. --> |
57 | | - <When Condition="'$(DotNetBuildFromSource)' == 'true' AND '$(DotNetBuildFromSourceFlavor)' == 'Product'"> |
58 | | - <PropertyGroup> |
59 | | - <FSharpNetCoreProductTargetFramework>$(NetCurrent)</FSharpNetCoreProductTargetFramework> |
60 | | - </PropertyGroup> |
61 | | - </When> |
62 | | - <Otherwise> |
63 | | - <PropertyGroup> |
64 | | - <FSharpNetCoreProductTargetFramework>net8.0</FSharpNetCoreProductTargetFramework> |
65 | | - </PropertyGroup> |
66 | | - </Otherwise> |
67 | | - </Choose> |
68 | 70 |
|
69 | 71 | </Project> |
0 commit comments