Project has no runnable target frameworks defined
I've just upgraded a console app in Rider from Core 3.1 to 6.0 and when I try and run it, Rider says, "Project has no runnable target frameworks defined". What could this mean?
Here is my csproj:
12 Replies
Show your csproj
do you have .net 6 installed?
Yes, I have .net 6 installed. I've upgraded all other projects in the solution and they build fine, and the entry point project runs fine
Although it's a console application, the output assembly is a dll, and I can't find a setting that might cause that
show your csproj
There is my csproj. I've upgraded all the Nuget packages to their latest available versions
<OutputType>Exe</OutputType>
should go in the first PropertyGroup section
I've put it there with no difference. Here is my current run config:
tests should be run with <test framework of choice>
however you set that up in rider, i'm not sure
I was just thinking, maybe the tests in the dll are rather intended for the Azure build pipeline and not for me, but surely the developer should also be able to run them locally
I just tried Rider's "Run all tests in solution" and it finds no tests
Now that I look inside the project (duh, only now) I can't find any classes decorated by a fixture attribute, only this:
I've just wasted an hour or two trying to get a test project that contains no tests to run
you can run them with
dotnet test
, no?
niceI did learn something though - the Rider test runner looks in the dll for tests and not the exe
test projects are usually DLLs
they aren't intended to execute on their own