Is it possible to switch back to packages.config scheme of things? I moved to PackageReference scheme when I created the project, but for some reasons need to move to old way of things now.
I have tried Package Manager Console commands like restore with Update and Reinstall options. They do not generate packages.config anymore. I also switched Tools > Options > NuGet Package Manager to packages.config. No good.
If used, packages. config must be located in a project root. It's automatically created when the first NuGet operation is run, but can also be created manually before running any commands such as nuget restore .
packages. config: The targetframework attribute of a dependency specifies the variant of a package to install.
You'll need to:
packages.config file to the project (that is, xml as in the example but without individual <package> elements)csproj file in a text editor.PackageReference elements out of the project file.<RestoreProjectStyle> is not set in the project file.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With