-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop producing executable fsc
and fsi
during source-build
#12282
Comments
@KevinRansom what are your thoughts about |
After removing the apphost from It looks like those apphosts might be unused (using the DLL instead), so I'll try removing them too: fsharp/src/buildtools/buildtools.targets Line 23 in bb7c799
|
Hi, I was looking to consume fsc to use F# to construct types/cmdlets for Powershell on the fly similar to Add-Type. Is there an alternate when using the SDK now? Is there an invocation combination by add-typing the fsc.dll that works? A C# example would be sufficient |
This issue doesn't (won't) change anything about the SDK content, it's just a build infrastructure change to make building .NET from source work better by avoiding building a binary that doesn't seem to make it into the SDK anyway. The 6.0 SDK contains |
This was completed in #12286 |
fsc
andfsi
targetnet5.0
and have output type Exe, so when building with/for a 6.0 SDK, they downloadMicrosoft.NETCore.App.Host.linux-x64/5.0.9
as a prebuilt dependency in order to generate the framework-dependent executable (FDE):fsharp/src/fsharp/fsc/fsc.fsproj
Lines 5 to 15 in bb7c799
In a Microsoft-built SDK, the FDEs don't seem to be shipped, just the framework dependent assemblies:
<UseAppHost>false</UseAppHost>
to these projects during source-builds, to remove the FDE and the prebuilt?@brettfo
In the past, source-build would have upgraded F# to
net6.0
to get around this prebuilt, but this is no longer the preferred way to go about this. (We'd rather keep TFM parity with the Microsoft build.)csi
here: Remove apphost fromcsi
for source-build to avoid prebuilt dependency on a 3.1 apphost pack roslyn#57233. (csc
already has no FDE.)The text was updated successfully, but these errors were encountered: