I have a solution (ConsoleApp6) with program.cs and Dog.cs in Visual Studio In program.cs I am instantiating Dog.cs. I've been a .net programmer for years, but am on day one of switching to .NET 6 in program.cs "Dog" is not recognized (like it would have been in old .net) unless I qualify it with MyNameSpaceHere.Dog, even though it is the same exact namespace as program.cs.
ConsoleApp6.Dog dog = new ConsoleApp6.Dog(); //works
Dog dog = new Dog(); //does not
Error message says:Type or Namespace "Dog" could not be found. Even when I follow the fix and let VS create a new class Dog, it then doesn't recognize that. Clearly I'm making some newbie error here???
Program.csdoes not by default. - julealgon