-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow .NET Standard ad-hoc methods to be executed using .NET Framework #98
Comments
Is this included in the latest 4.1.3526 alpha? And, does that alpha work in VS2017? I can't seem to get it to work... |
I'm afraid this isn't ready yet. Unfortunately there are issues with the various test runners (NUnit / xUnit) when executing in this mode. I had it working with "Ad hoc" tests, but it is a bit of a hack (but still useful). I'll keep you posted. (Oops, sorry I closed and reopened the issue! 😊) |
This is getting closer to working for .NET Standard 2.0 projects: The user would need to set the <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup> There would potentially be problems with binding redirects, but it looks like this might be going away: There are issues, but I think being able to run ad-hoc tests in many .NET Standard 2.0 projects would be useful! |
I've created a tracking issue for .NET Standard support that will be linked to when users attempt to use this functionality #117. Please comment if you have any questions or tips to share. Here's a local build of a VSIX that includes this functionality: TestDriven.VSPackage.zip |
Hi Jamie, I installed the VSIX then created a new .NET Standard library project. Added the
But attempting to run the |
Thanks for trying it! This is what is supposed to happen the first time you attempt to run: And after you add the As a sanity check, here is the solution I created: Did you uninstall any previous version of TestDriven.Net you had installed. This shouldn't matter, but there might be a problem I hadn't anticipated. I'm guessing you created a .NET Standard 2.0 project? |
Your solution worked as expected on my machine. Here's my solution which looks the same |
Upgraded VS to 15.7.3 now creating a new |
The I'm confused about what might have been different on your previous configuration. 😕 Were you targeting |
Sorry, that |
It's possible that it was the reloading of Visual Studio that resolved it. I've noticed project files can sometimes be funny like that after an update. Hopefully it will be more consistent in never versions of Visual Studio. 🤞 Thanks again for trying this. Please report back if you bump into any issues/snags. Although not perfect, I'm hoping this feature will be useful with many projects. I'm looking forward to using it myself. |
See .NET platforms support table here:
https://docs.microsoft.com/en-us/dotnet/standard/library
The text was updated successfully, but these errors were encountered: