-
Notifications
You must be signed in to change notification settings - Fork 9
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
Tool runs on .net framework projects #5
Comments
I think this documentation is incorrect, as I have it installed on .NET Framework projects with no problem. @davkean, those references can work anywhere in VS2017, right? |
I'm using it on a .NET Framework-based Web Project, and it's totally fine. You appear to be missing a reference to System.Web.Http. You might need to re-add the Assembly Reference to System.Web.Http from the "Add Reference" dialog. (I don't believe there is a NuGet package for that one.) |
Robert, I got a test scenario to work, but there may be an issue or two for you to fix. Try this:
I tried the scenario again. This time I left one package that needed to be updated before I ran your upgrader. The references in solution explorer at this point are not package references (they aren't the little blue icon). Update the remaining Nuget package and they all change. Builds ok. |
Can you please tell me the options you selected for creating a new MVC app? .NET Framework or Core? Which version? Also, I would assume "allow format selection" is what is blocking you... if you uncheck that, I would assume it would use PackageReference and not give you a choice as those packages are restored. But that could be a VS bug. Finally, you shouldn't need to close and restart VS in order for my tool to work. It should prompt you to reload the solution, at which point you should rebuild and be fine. Thanks! |
Using VS 2017 15.4.0 |
Tried unchecking 'allow format selection'. No difference. |
I'm on the 14.5 preview and I could not reproduce. My defaults were already set to PackageReference. I would say this. Why download package updates before upgrading? Create the new project, upgrade the PackageReferences, THEN build. Even if VS has a bug with the PackageReferences with the first load, you're off package.config right away, the packages aren't downloaded yet, and they'll install when you build the first time. Then update after that. I'm not sure if I can do anything about this, because I'm not sure it's a problem in my upgrader. I will keep an eye on reports though. |
Installed product versions
Description
This page https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files
says
Yet I can run it on any project type.
The text was updated successfully, but these errors were encountered: