Unit tests for .NET 3.5 projects no longer work in VS 2017 (v15.9.8). A fix for this was proposed and implemented in #1896 but it was only pushed into the VS 2019 release, not for 2017. According to some previous discussion on the issue, .NET 3.5 tests were working during some earlier version in 15.x.x which leads me to believe that this should still be supported. This lack of a fix in the 2017 releases is blocking my development, so I'm hoping that this can get escalated to support VS 2017 releases as well in a timely fashion.
Tests will run successfully.
Tests fail to run and output the following error message:
Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Framework35 is not supported. For projects targeting .Net Framework 3.5, please use Framework40 to run tests in CLR 4.0 "compatibility mode".
Windows 10 64-bit
Visual Studio 2017 Enterprise v15.9.8
@jbrown16 I am trying to push it for 15.9.9, will update once it is in. Thanks for your patience.
I am sorry, it could not make it to 15.9.9, rooting for 15.9.10
@singhsarab, Do you happen to know the timeframe of the 15.9.9 and 15.9.10 releases? Also, is this due to the lack of necessity for the fix or just the timing of when you can get the change in? Thanks for your help on this.
15.9.9 should be out soon in a day or two, while expect 15.9.10 to be released early next month.
Since we have already released the packages with the fix. I can try to unblock you.
@singhsarab I am pleased to report that my first test run is working successfully! Thank you so much for helping me take care of this. I'll let you know if I have anymore issues and I'll also watch for the 15.9.10 release.
This is now officially supported in 15.9.10.
Thanks :)
Awesome! Thank you so much, @singhsarab!