No .NET4.8 in Unit Testing .NET Framework dropdown.

 

When running unit tests through R#, I encountered the following error message. It has been confirmed that the framework and platform versions are set correctly. Can you offer some advice? 


RunSettingsProvider           | :143               | No file is set to use as .runsettings. Will create from the template.
UnitTestLaunch                | :117               | Remote: Test run detected DLL(s) which would use different framework and platform versions. Following DLL(s) do not match current settings, which are .NETFramework,Version=v4.5 framework and X86 platform.
Tests.dll would use Framework .NETFramework,Version=v4.8 and Platform X64.
Go to https://aka.ms/tp/vstest/multitargetingdoc?view=vs-2019 for more details on managing these settings.

Element <TestMethod1> was left Running after its run completion.

0
1 comment

Hello, Jason.

Could you please clarify whether your tests actually run despite producing the warning you have mentioned? Would it be possible for you to provide a sample solution so we could try reproducing this on our side? 

No .NET4.8 in Unit Testing .NET Framework dropdown.

This is a known issue, see RSRP-475165 Framework option doesn't show .Net Framework 4.8 although it is installed. Please use the Automatic option for this setting.

0

Please sign in to leave a comment.