Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Documentation missing for .Net Framework 4.6+ in runsettings #163

Open
aligneddev opened this issue Nov 15, 2018 · 3 comments
Open

Documentation missing for .Net Framework 4.6+ in runsettings #163

aligneddev opened this issue Nov 15, 2018 · 3 comments

Comments

@aligneddev
Copy link

The docs show how to use 35, 40, 45, but don't mention anything greater. I spent some time (hoping to get it right and create a PR), but haven't gotten it right yet.

I want to run in 4.7.2, how do I do it? I'll add it with a PR once I know.
From the current docs.

<!-- Framework35 | [Framework40] | Framework45 -->
<TargetFrameworkVersion>.NET Framework, Version=v4.6</TargetFrameworkVersion>

Both of these links should be updated.
https://github.com/Microsoft/vstest-docs/blob/master/docs/configure.md
(has <TargetFrameworkVersion>.NET Framework, Version=v4.6</TargetFrameworkVersion> as an example, but in VS I get "
[11/15/2018 2:39:26 PM Error] Failed to configure settings for runsettings plugin 'VSTest Run Configuration' as it threw following exception:
'An error occurred while loading the settings. Error: Invalid settings 'RunConfiguration'. Invalid value '.NET Framework, Version=v4.6.2' specified for 'TargetFrameworkVersion'..'"

https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2017

https://github.com/MicrosoftDocs/visualstudio-docs/issues/1305 for .Net Core should also be clearly mentioned.

@kirsan31
Copy link

VS 2019 - How to run tests other then on .NETFramework,Version=v4.5???
Even Framework35 and Framework40 are ignored (no error) but anyway tests uses 4.5...

@forgotten-warrior
Copy link

Get the same issue when trying to configure Test project using
Failed to configure settings for runsettings plugin 'VSTest Run Configuration' as it threw following exception:
'An error occurred while loading the settings. Error: Invalid setting 'RunConfiguration'. Invalid value '.NETFramework,Version=v4.5' specified for 'TargetFrameworkVersion'..'

@ab412
Copy link

ab412 commented Nov 15, 2019

Commenting out the line completely solved the issue for me. Looks like there is no need to specify the attribute <TargetFrameworkVersion></TargetFrameworkVersion> anymore. I'm using version 4.8 by the way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants