IssueRaiser

Add support for referencing .NET projects in F# interactive

**Is your feature request related to a problem? Please describe.** It would be nice to have similar functionality like in other languages, where it is possible to reference a project inside an interactive session. Languages that support such functionality are for example: Haskell, Elixir, Python, Clojure **Describe the solution you'd like** I would like to start an interactive session and reference the project like I would reference an assembly file today. An example could be (F# projects only): #r "fsproj: MyProject.fsproj" or (across languages): #r "project: MyProject.fsproj" #r "project: MyProject.csproj > Those two proposals need to be tackled very differently. For a F# only solution it is enough to reference all library references and the F# source files. In order to work across .NET languages it is needed to compile the project first and then reference the libraries and the generated assembly. @Krzysztof-Cieslak has already created a prototype where he got working a F# only solution: https://github.com/Krzysztof-Cieslak/DependencyManager.FsProj So the first question to answer is: * [ ] Should the solution work for fsproj and csproj files from the beginning? * [ ] Should we define a cross project syntax and start with an F# only solution? * [ ] Is it a F# fsproj only thing? **Describe alternatives you've considered** * Reference every library reference and every project source file by hand. * Use `#r: "nuget: Dependency"` for every dependent li

Posted by toburger on Mar 21, 2020, 8:59 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

support (E-commerce)

Add support for referencing .NET projects in F# interactive

toburgerMar 21, 2020, 8:59 AM

**Is your feature request related to a problem? Please describe.** It would be nice to have similar functionality like in other languages, where it is possible to reference a project inside an interactive session. Languages that support such functionality are for example: Haskell, Elixir, Python, Clojure **Describe the solution you'd like** I would like to start an interactive session and reference the project like I would reference an assembly file today. An example could be (F# projects only): #r "fsproj: MyProject.fsproj" or (across languages): #r "project: MyProject.fsproj" #r "project: MyProject.csproj > Those two proposals need to be tackled very differently. For a F# only solution it is enough to reference all library references and the F# source files. In order to work across .NET languages it is needed to compile the project first and then reference the libraries and the generated assembly. @Krzysztof-Cieslak has already created a prototype where he got working a F# only solution: https://github.com/Krzysztof-Cieslak/DependencyManager.FsProj So the first question to answer is: * [ ] Should the solution work for fsproj and csproj files from the beginning? * [ ] Should we define a cross project syntax and start with an F# only solution? * [ ] Is it a F# fsproj only thing? **Describe alternatives you've considered** * Reference every library reference and every project source file by hand. * Use `#r: "nuget: Dependency"` for every dependent li

Comments (0)

No comments yet. Start the discussion.

Comment on this issue