Given two C # projects in the same base directory, how do I use different packages.config for each
I have two projects (* .csproj) in the same directory (I am porting and it seems like a good workflow), however the problem is that there can only be 1 in the folder packages.config
. I tested the project in a different folder and linked the files I needed, however when there are folder hierarchies it is a bit confusing Is there a way to use the file differently? or a better way to handle this configuration?
thank
source to share
You can name the file packages.config after each project, and Visual Studio will use a separate one for each project, even if they are in the same directory.
So, if you have Foo and Bar projects, you can rename the existing package.config files to:
- packages.Foo.config
- packages.Bar.config
If you have room in your project name, this must be replaced with an underscore. Therefore, a project called "Foo Bar" will need a package.config file:
- packages.Foo_Bar.config
source to share