JL.
JL.

Reputation: 81352

VS2010 Code Analysis, any way to automatically fix certain warnings?

I must say I really like the new code analysis with VS 2010, I have a lot of areas in my code where I am not using CultureInfo.InvariantCultureand code analysis is warming me about this.

I am pretty sure I want to use CultureInfo.InvariantCulturewhere ever code analysis has detected it is missing on Convert.ToString operations.

Is there anyway to get VS to automatically fix warnings of this type?

Upvotes: 5

Views: 941

Answers (2)

sergeb
sergeb

Reputation: 2500

You cannot do this in VS Code Analysis but CodeIt.Right performs similar analysis (only on source code) and includes auto corrections with every rule. Give it a try!

Upvotes: 2

Julien Hoarau
Julien Hoarau

Reputation: 50000

I don't think you can do that with Visual Studio but Resharper 5 has a Structural Search and Replace functionnality that could work for that.

Upvotes: 1

Related Questions