-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET Framework 4.6.2 test project using new .NET Standard 2.0 csproj format problem #383
Comments
Can you upload a repro project? |
Here you go sir: NUnitBugDemonstration.zip NUnit 3.8.1. The original post mistakenly said 3.8.1 for the test adapter. |
My apologies. I just discovered your release notes and tried adding
and this makes my package references look like this:
Using this successfully discovered and ran all my tests. I propose that the exception messages shown in this case should point to the solution (your release notes.) |
Could we make the Microsoft.NET.Test.Sdk package a NuGet dependency of the TestAdapter package? |
That could be an elegant way to deal with this but the author may have objections to hard-coding "loosely required" dependencies like that. |
I have been considering doing so myself. It is a hard requirement for any tests using the new |
@rprouse @ChrisMaddock |
Unfortunately, I don't think there's a way to detect 'uses new csproj'. I could be wrong however! |
Also considering older VS versions, perhaps it is not a good idea to attempt adding that dependency. It could be wiser to add it to the NUnitTemplate project instead. |
I'm closing this, as there doesn't seem to be anything we can do to help the users here, except ensuring the templates and documentation are up to date. For any new readers having this trouble, see comment above by @vullnetyy Sept 7th. on the missing .Net Test sdk. |
I have a .NET Framework 4.6.2 test project where myproject.csproj file is in the new csproj format. Resharper successfully discovers and runs all the tests. The NUnit3TestAdapter however, does not. Here are the errors I see in the Tests output of VS2017:
NUnit 3.8.1 and NUnit3TestAdapter 3.8.0 installed as a Visual Studio 2017 Extension
Visual Studio Enterprise 2017 version 15.3.3
.NET Framework 4.6.2
The text was updated successfully, but these errors were encountered: