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

Provide migration tool to move from packages.config project to packagereference #5488

Closed
rrelyea opened this issue Jun 26, 2017 · 11 comments
Closed

Comments

@rrelyea
Copy link
Contributor

rrelyea commented Jun 26, 2017

Some users would prefer to use VS2017's support for PackageReference, instead of the default Packages.config.

We've provided a way, in tools/options/nuget -- to choose what to use in a new project.
However, many people would like to migrate existing projects as well.

This issue is tracking our future work item to make that migration easier.

Note -- not all packages are compatible with PackageReference, so migration may not work for some projects/packages. See #4942

@gmajian
Copy link

gmajian commented Aug 25, 2017

There is a GitHubGist for "Converts packages.config into PackageReference at *.csproj project file"
https://gist.github.com/a4099181/074a6c3dd524ea0d343382137492399c

@Kassoul
Copy link

Kassoul commented Aug 25, 2017

An another good tool on Github that use https://github.com/hvanbakel/CsprojToVs2017

@tomkuijsten
Copy link

@gmajian that script is very limited, eg doesn't work for packages where it's version number are different then the containing assembly version numbers.

@tomkuijsten
Copy link

@Kassoul this tool has the same problem as the script, a lot of references aren't removed.

@tomkuijsten
Copy link

@rrelyea do you want to convert to the new csproj format as well?

@jainaashish
Copy link
Contributor

We've made some progress here but needs to continue with it.

@jainaashish
Copy link
Contributor

We've the initial code ready but needs to work with PM to finalize the spec.

@rohit21agrawal
Copy link
Contributor

@tomkuijsten no, our tool (which is work in progress) isn't currently intending to convert to the new csproj format.

@tomkuijsten
Copy link

Thanks for the clear statement!

@rohit21agrawal
Copy link
Contributor

The migrator tool (on a per project basis) will be available in 15.7 Preview3

@mdell-seradex
Copy link

When will migration support C++ and/or ASP.NET Projects?

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

No branches or pull requests

8 participants