Skip to content

Commit 0327096

Browse files
committed
Trimming is isolated and can't use global TFM value
1 parent 55677f2 commit 0327096

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/AheadOfTime/Trimming/SelfContained_Trimming_Test/SelfContained_Trimming_Test.fsproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
5+
<TargetFrameworks>net8.0</TargetFrameworks>
66
<LangVersion>preview</LangVersion>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
</PropertyGroup>
@@ -16,8 +16,8 @@
1616
</PropertyGroup>
1717

1818
<PropertyGroup>
19-
<DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/$(FSharpNetCoreProductTargetFramework)/fsc.dll</DotnetFscCompilerPath>
20-
<Fsc_DotNET_DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/$(FSharpNetCoreProductTargetFramework)/fsc.dll</Fsc_DotNET_DotnetFscCompilerPath>
19+
<DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/net8.0/fsc.dll</DotnetFscCompilerPath>
20+
<Fsc_DotNET_DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/net8.0/fsc.dll</Fsc_DotNET_DotnetFscCompilerPath>
2121
<FSharpPreferNetFrameworkTools>False</FSharpPreferNetFrameworkTools>
2222
<FSharpPrefer64BitTools>True</FSharpPrefer64BitTools>
2323
</PropertyGroup>

tests/AheadOfTime/Trimming/StaticLinkedFSharpCore_Trimming_Test/StaticLinkedFSharpCore_Trimming_Test.fsproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>$(FSharpNetCoreProductTargetFramework)</TargetFrameworks>
5+
<TargetFrameworks>net8.0</TargetFrameworks>
66
<LangVersion>preview</LangVersion>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
@@ -18,8 +18,8 @@
1818
</PropertyGroup>
1919

2020
<PropertyGroup>
21-
<DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/$(FSharpNetCoreProductTargetFramework)/fsc.dll</DotnetFscCompilerPath>
22-
<Fsc_DotNET_DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/$(FSharpNetCoreProductTargetFramework)/fsc.dll</Fsc_DotNET_DotnetFscCompilerPath>
21+
<DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/net8.0/fsc.dll</DotnetFscCompilerPath>
22+
<Fsc_DotNET_DotnetFscCompilerPath>$(MSBuildThisFileDirectory)../../../../artifacts/bin/fsc/Release/net8.0/fsc.dll</Fsc_DotNET_DotnetFscCompilerPath>
2323
<FSharpPreferNetFrameworkTools>False</FSharpPreferNetFrameworkTools>
2424
<FSharpPrefer64BitTools>True</FSharpPrefer64BitTools>
2525
</PropertyGroup>

0 commit comments

Comments
 (0)