Visual Studio's Rule Set Editor does not open
Asked Answered
A

1

5

I am trying to edit a custom ruleset file for FxCop. When I open a ruleset file I receive this message:

Width of the image strip must be a positive multiple of
ImageSize.Width
Parameter name: value

It looks like the file is already open, because when I try to edit as XML it asks me if I want to close it first. I cannot edit as XML, either.

Alis answered 11/6, 2015 at 12:7 Comment(4)
Can you open the file in an external editor (notepad, sublime text) and paste its contents in here? Have you tried reopening the project/solution it is in?Eleen
I can open the file in an external editor. Also, I have reinstalled Visual Studio (I am using Visual Studio Professional 2013 update 4). I have tried in another computer and I get the same error, *.ruleset files cannot be open in Visual Studio. Possible Visual Studio bug?Alis
None of the ruleset files can be opened, or just your particular one? Try making a new ruleset in a clean project. Just to make sure it is not because of VS itself. If it is not VS, then paste the contents of the ruleset in here.Eleen
Same error message happens when opening Code Analysis Settings page in solution properties.Landry
C
7

Came across this problem today. Tried repairing the Visual Studio installation without success. In the end, I found the problem in my laptop: I had previously set the display to scale at 110% a few months back, and the error message made this a likely issue - so I set it back to 100% and it worked! I am using Visual Studio 2017 on Windows 10.

Charming answered 21/12, 2018 at 18:58 Comment(2)
Wow - impressive that you were able to figure that out. Thank you. Opened it up as a VS issue here: developercommunity.visualstudio.com/content/problem/533391/…Sternpost
seems nobody was interested into fixing thisMadonna

© 2022 - 2024 — McMap. All rights reserved.