Skip to content

Commit 26855b5

Browse files
authored
Adding default ProduceReferenceAssembly value for F# (#13085)
* Adding default ProduceReferenceAssembly value for f# * Disabling f# test on full framework
1 parent 041605d commit 26855b5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FSharp.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ Copyright (c) .NET Foundation. All rights reserved.
2828
</PropertyGroup>
2929
<Import Condition=" '$(UseBundledFSharpTargets)' == 'true' and Exists('$(FSharpPropsShim)') " Project="$(FSharpPropsShim)" />
3030

31+
<PropertyGroup>
32+
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
33+
</PropertyGroup>
34+
3135
</Project>

src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,21 @@ public void It_builds_a_simple_desktop_app()
5757
"System.ValueTuple.dll",
5858
});
5959
}
60+
61+
// https://github.com/dotnet/sdk/issues/12560
62+
[CoreMSBuildAndWindowsOnlyFact]
63+
public void It_builds_a_simple_net50_app()
64+
{
65+
var testAsset = _testAssetsManager
66+
.CopyTestAsset("HelloWorldFS")
67+
.WithSource()
68+
.WithTargetFramework("net5.0");
69+
70+
var buildCommand = new BuildCommand(testAsset);
71+
buildCommand
72+
.Execute()
73+
.Should()
74+
.Pass();
75+
}
6076
}
6177
}

0 commit comments

Comments
 (0)