March 2, 2021

How to fix "No plugin found which can import settings file with extension '.settings' " error

  March 2, 2021

 If we are migrating from one version of Visual studio to another we may come across this issue.

Where our code will not recognize the run settings file even though we selected in from Test > Configure Run Settings > Select solution wide run setting file

The build will be succeeded, but an error "Unexpected error detected. Check the tests Output Pane for details" will be shown.

Now to see the error we need to open the Output pane, View>Output

And select the Test option from Output pane dropdown.


Now you can see the error as below

System.InvalidOperationException: No plugin found which can import settings file with extension '.settings'. Either select a new settings file or install an extension which understands this settings file extension.





In order to fix this, you just need to rename the .settings file as .runsettings.

The proper way to avoid code errors will be

  1. Open the .settings file
  2. Copy the content
  3. Delete the .settings file
  4. Create a new item with extension as .runsettings (It may not be shown in the list)
  5. Open the .runsettings file in XML mode
  6. Paste the copied content
  7. Select this file from Test > Configure Run Settings > Select solution wide run setting file

logoblog

Thanks for reading How to fix "No plugin found which can import settings file with extension '.settings' " error

Previous
« Prev Post

No comments:

Post a Comment

Fixing javascript error: Cannot read properties of null (reading 'querySelector') issue when using CSS identifier in selenium

 JavaScript is another way to interact with web elements when normal selenium methods fail to act. But one issue with javascript is, it does...