I have created an NUnit Test Project in my Visual Studio Solution. I have gotten the project to compile fine and I am able to detect and run the tests in the Test Explorer, but for some reason, the project itself is ignored by git:
Typically when this happens with a file, I just right click > Source Control > Add Ignored File to Source Control... But doing that in this case does not work. I just get the following message in the output window:
File not found in any active repository: C:\Users\[myUsername]\.nuget\packages\nunit3testadapter\3.13.0\build\netcoreapp1.0\NUnit3.TestAdapter.pdb
This file does exist, but it would not make sense for me to add it to source control since it is at a location specific to my local user. I have tried moving the nuget package to the same directory where other nuget packages are located and working fine, adding a reference manually, but that doesn't fix it either.
The Nuget Package Manager shows both the NUnit as well as the NUnit3TestAdapter packages have installed their latest versions to the project successfully:
You can also see the tests being detected and running fine in the test explorer as I mentioned before.
How can I add this project to git?