Not able to add reference to my project in the test project in visual studio

Viewed 31

I'm writing my first C# program in Visual Studio for mac, and now I want to do unit testing for the code.

I can't add a reference to my original project. When I open the references dialog box it's empty and I'm not able to browse. The test file is in it's own project, therefore not the same namespace.

I followed these steps: https://docs.microsoft.com/en-us/visualstudio/test/walkthrough-creating-and-running-unit-tests-for-managed-code?view=vs-2022

The guide is not for mac but seems to work similar.

0 Answers
Related