.Net project analysed as a test project. but project is not a test project

We had the same problem, and had to manually set a flag in the .csproj file.