Repository navigation
Convert from nuget command - #105
Conversation
|
Will test tomorrow. Pretty excited about this. |
|
LOL |
|
Please review my changes. And I think we should add a parameter which disables the install process. |
|
I'm ok with the changes - I wasn't really sure about the ~>, and filtering projects. |
|
@theimowski Wow, cool work! |
|
Looks really cool: lefthandedgoat/canopy#166 |
|
Are we gonna save the World soon? :) |
|
I encourage everyone to silently test as much projects as possible.
|
|
Everything works great for a tree with Webapi and tests. In order of how much I believe they are actionable and/or would impress me, some small things:
If anyone wants me to log or expand on any of the ideas, should. Otherwise I'll continue to sit here quietly being ignored :) |
|
Thanks for testing. I changed it to generate the new syntax. Regarding the wording: I'm happy with convert since it doesn't blame nuget as outdated. I don't think we need a whatif mode - git diff and git reset give exactly that. Anyone interested in taking the delete stuff? |
|
@forki I accept the ... but what about it bailing if there's a (I managed to overwrite stuff with an up arrow being the reason I re-ask) I'll admit it's sooo neat that it's kind of irrelevant as retyping takes 2 seconds but it's not an ideal first experience if you're not fully awake and/or someone insists you just do it to be trying out a tool with a great, well-justified Just Works reputation and then end up with data loss. |
|
Let's just assume the thingy is a "convert from nuget". Not a "convert from
|
|
I'll take care of deletion of empty .nuget dir. @bartelink - you mentioned that the solution folder also didn't get removed? If so, could you please share a repro? Will also add optional --no-install parameter as discused earlier. |
|
@forki All for minimal but surely warning that you're about to overwrite a significant file like |
|
Yes a message would really be important. Or we could simply let it fail if
|
|
@forki Cool. Yes, I meant a message if file(s) already exist that then stops. Possibly with a --force option in case one is bumping into and interactively fixing inconsistencies in the course of doing the convert (though admittedly that's speculative (and defeatist!)) |
|
@theimowski can you please add this too? |
|
Sure, so if paket.dependencies exists then warn, and stop program? And a --force flag to ignore if paket.dependencies exists? |
|
Right. And the same for the references files.
|
|
@theimowski can you please take a look at https://github.com/Particular/NServiceBus/blob/release-5.0.0/src/nuget.config I think if the file exists we need to extract the source feeds. Can you try to do this? |
|
Will do |
|
And are we doing this: e74a907 ? |
|
Nope, the command deals only with packages.config on solution level |
|
would be "nice-to-have" 2014-09-18 12:05 GMT+02:00 Tomasz Heimowski [email protected]:
|
|
Regarding nuget.config: can we ignore |
|
Yep I think that's ok |

the convert-from-nuget command finds all packages.config files and based on them generates dependencies.file + converts packages.config to paket.references.
If the packages.config is solution-level, then it will be removed, and its deps will be written to dependencies.file
I also added some primitive logic to alter solution file, in order to remove solution-level packages.config.
dependencies.file for the moment will not be added to the solution.
I copied the pattern to find project files (_._proj).