Paket.VisualStudio
Paket.VisualStudio copied to clipboard
Support "Convert from nuget"
http://fsprojects.github.io/Paket/paket-convert-from-nuget.html
how could we integrate this into the plugin. At this point we don't have paket.dependencies yet.
// @theimowski
Could probably start with invoking the static member https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/PublicAPI.fs#L59
and see what explodes?
Yep I know about that part. I'm more interested in discussing the UX for that when I open a VS solution that uses nuget. Where/how would we start that process?
I see, how about these areas:
yep that sounds good. @hmemcpy now how can we create such a menu? ;-)
In general, all menu creation in VS is a matter of adding an entry in the .vsct file, and then finding the correct "parent" magic string to insert it to (using CommandPlacement
).
There used to be some utilities to dump all commands ids in VS, but I don't know if it works (it was VSCT PowerToy, I think)
Anyway, all those magic strings are listed in vsshlids.h
...
Wait, that's the long, and unneceserrily complicated explaination :)
To put the menu under Tools, all you need to do is to set its command placement into IDM_VS_MENU_TOOLS
Here is the full list: https://msdn.microsoft.com/en-us/library/cc826118(v=vs.140).aspx
I tried to folow https://msdn.microsoft.com/en-us/library/bb165473(v=vs.140).aspx and https://msdn.microsoft.com/en-us/library/bb165739(v=vs.140).aspx but I don't get it to compile.
Where exactly do you want to place this item?
TOOLS/ Paket Dependency Manager/Convert from NuGet !?
So you want to add a top-level menu under Tools? That shouldn't be a problem... hold on
How about right-clicking on "packages.config" file --> convert to "paket.references" ? (which is what the command is actually doing, no?)