Replies: 2 comments
-
The SDK linked also experiments with broader MSBuild integration. For those who are not familiar with Fable, today you invoke it as a dotnet CLI tool (https://www.nuget.org/packages/Fable). It scrapes your The custom SDK will serve the purpose of integrating this process into |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, Could someone from the NuGet team tell us if it is possible to create TFM for Fable like done for Tizen, Android, iOS, tvOS ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello NuGet team, we're currently exploring the possibility of a custom MSBuild SDK for Fable, the very popular F# transpiler (usually targeting Javascript, but more recently supports others). There are many Fable compatible packages already out there (see here), and I think they would benefit greatly from having Fable-related TFMs. One such benefit would be a NuGet-blessed way to communicate Fable support rather than the adhoc system hijacking package tags currently used (see https://fable.io/docs/your-fable-project/author-a-fable-library.html). Another benefit would be a more unified package graph taking advantage of multitargeting, as most Fable packages end up distributing two parallel copies (one for .NET, one for Fable) for various reasons I won't get into here.
For example, take the Elmish project. Today, it distributes two package: Elmish, and Fable.Elmish. They are logically the exact same thing, just that one is the .NET version and the other is the Fable version. If we had Fable TFMs, it could be distributed as one single
Elmish
package with two target frameworks:netstandard2.0
andfable4.0
.Take another example, Fable.React (Fable bindings for the Javascript React library). It could have one TFM of
fable4.0-javascript
.For context, please refer to our existing discussion at fable-compiler/Fable#3549. Specifically, this comment explores some potential TFM strategies, and we would love feedback on which way fits better. There's also a proof-of-concept SDK here: https://github.com/jwosty/Fable.MSBuild.Sdk.
So, is this something NuGet would even consider? If so, what would you need from us to make this happen? Does a design need to be submitted somewhere? Perhaps some compatibility rules need to be spelled out?
I want to be clear - we're still in the research phase; this isn't us formally asking for this feature yet.
@MangelMaxime @baronfel @nojaf
Beta Was this translation helpful? Give feedback.
All reactions