Closed mwhelan closed 8 years ago
That's strange! Is there a dotnet-test-nunit.exe
but no nunit.framework.dll
in your output directory?
My folder structure is Debug\net46\win7-x64. That folder contains both dotnet-test-nunit.exe and nunit.framework.dll. Interestingly, Specify.Tests.dll (the project being tested) is in the net46 folder, while all the other dlls are in the win7-x64 folder.
Could you check that nunit.framework.dll
is v3.4.1?
Yes, it is.
Can I see your project.json
file?
Yes, it is here. You can run the Specify.Tests project. In particular it is the APIs\SemanticVersioningTests.cs. I don't know if the #if directives are somehow influential.
Got it, thanks!
It looks like I'm making the incorrect assumption that apps that target "netcoreapp1.0" must have an entry point / be EXE files when compiled for .NET. It appears they don't actually have to be a console application (this just happens to be the way they're set up in the .NET Core project templates).
Hopefully this is simply a question of how I search for the .NET Framework assembly. I need to find the one in bin\Debug\net46\win7-x64
not bin\Debug\net46
.
Have to admit, I'm quite hazy on the difference between console projects and class library ones. For example, if I created a class library, and then realised it should be a console app, can I edit the xproj or something? (apart from adding a main method, etc.). I don't think there is an option in the VS tooling in project properties.
Could you give this build a try: TestDriven.NET-4.0.3356_Extraterrestrial_Alpha.zip
Seems to be working. :smile:
Yup, sure does. Love your work @jcansdale !
My xproj test project targets netcoreapp1.0 and net46 (project.json defines them in that order). I have some tests that use a dependency that is only net46 so I am using #if directives to make it compile:
When I right click the file and choose Test with > .Net Framework, I get the following error: