-
Notifications
You must be signed in to change notification settings - Fork 819
generate references for f# interactive #3299
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
Comments
Source code is here, for reference (no pun intended): https://github.com/fsprojects/VisualFSharpPowerTools/blob/03c613acd3aa67cb5e3a339d3dcf1c7c783f30c2/src/FSharp.Editing.VisualStudio/Reference/FsiReferenceCommand.fs
The Paket capability is quite nice. I definitely recommend it as a workaround. |
@forki quite a lot for me to come up to speed on, and obviously you and others have put a lot of thought into this. I support the concept of developing tools and techniques that work across IDEs, FSI, and other tools chains. Restricting the conversation to just VS for now, I want to be able to:
Making it work the same way across tools chains is a bonus. |
I personally won't add a button to VF#. I think it should be done by someone who is really interested in using it. Otherwise it will always lack the the love that such a feature needs. That said my question would be what does "and get to work quickly with all the references required" mean for you? What references would it need to add? The nuget dependencies of the fsproj where you right click? If you use paket then this file is already there. At least if you have the "generate load script" flag set in your dependencies file (see https://fsprojects.github.io/Paket/dependencies-file.html#Generate-load-scripts). Also if #2483 gets merged things will become even easier. Then you don't need to remember the load scripts at all. Then you just do
And every thing in FsLab would be available in the script. Package resolution, restore, loading would all be done in the background. That is actually a feature I'd personally use A LOT, so I'm motivated to work on it. |
I like
As a vs user, working in a Scripts folder of a project should mean I want every reference the project has, as well as references into the public APIs of the project. With FSPT I could do that with one line
I'll start using
but (I assume) that does not gen load statements for the project files, which was a handy feature of the FSPT set-up of gening the references load file, and the project load file which also loaded the references load. I use Ionide, but I wouldn't say I'm a power user of it. So I have no comment on the set up there. I still prefer VS for serious development. |
Yes it does not load the project. That is true. |
Duplicate of #2705 |
Please provide a succinct description of the issue.
Feature request, "generate references for f# interactive" FS Power Tools previously did
Provide the steps required to reproduce the problem
right click project, context menu item not available
Expected behavior
Right-click project in solution explorer, select context menu item, 4 fsi directive files create in Scripts folder under project
load-references-debug.fsx
load-project-debug.fsx
load-references-release.fsx
load-project-release.fsx
Actual behavior
n/a
Known workarounds
Similar functionality available in Paket, but I have not tried it
Related information
VS 2017
The text was updated successfully, but these errors were encountered: