Skip to content
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

Roslyn Source Generators not compatible with F# #12

Open
pjmagee opened this issue Jun 5, 2024 · 4 comments
Open

Roslyn Source Generators not compatible with F# #12

pjmagee opened this issue Jun 5, 2024 · 4 comments

Comments

@pjmagee
Copy link
Contributor

pjmagee commented Jun 5, 2024

dotnet SDK != C#

  • dagger init -sdk csharp - make csharp template, and pull nuget package Dagger.SDK.dll
  • dagger init -sdk powershell

If we keep all the code as a self contained package, I believe user code can iun theory, be called by even Powershell?

@pjmagee
Copy link
Contributor Author

pjmagee commented Jun 5, 2024

This relates to the other issue with renaming the SDK.
An F# solution might be possible, but it would need to use a csharp project and reference it.

@wingyplus
Copy link
Owner

It might possible to do that. I have a draft in #13 (comment) but need to make C# version works to make it clear on how to do next.

@pjmagee
Copy link
Contributor Author

pjmagee commented Jun 5, 2024

It might possible to do that. I have a draft in #13 (comment) but need to make C# version works to make it clear on how to do next.

Yeah, after some additional understanding, F# project can reference C# project (which is used to BUILD + Generate C# code from Roslyn generator) and after this, an F# developer could then use it...

But i am wondering what is experience like for F# entry point with concept of Dagger functions etc... Interesting subject

@wingyplus
Copy link
Owner

C# might use Source Generator to generate entrypoint, I guess. But for F#, https://github.com/MoiraeSoftware/myriad might be interesting to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants