C#.NET Core Console Application with Xunit not detecting the console project as a project reference.
I have created a C#.NET Core Console Application. And added new Xunit project under the same solution. Then added a project reference to the console application project under Xunit project, and then I can write unit tests for the console application. I can see that the reference has been added successfully as below:
<ItemGroup>
<ProjectReference Include="..\ConsoleApp1\ConsoleApp1.csproj" />
</ItemGroup>
But when I was trying to use console application's classes after importing the namespace to the unit test project, it doesn't detect as expected.
Both projects have the same .NET core version 8.
Can someone help me with this please?
<ItemGroup>
<ProjectReference Include="..\ConsoleApp1\ConsoleApp1.csproj" />
</ItemGroup>
But when I was trying to use console application's classes after importing the namespace to the unit test project, it doesn't detect as expected.
Both projects have the same .NET core version 8.
Can someone help me with this please?


