views:

26

answers:

1

Any way to convert the encoding of all the files within a VS solution (*.sln) directly inside Visual Studio? (I am using 2008).

Any Add-in for this effect?

A: 

You can easily write a VS macro to achieve that. You'd have to iterate over all projects, then for each project iterate over all project configurations (assuming the change should apply to all), and for each configuration modify VCProjectConfigurationProperties.CharacterSet to your desired encoding.

(The link is from the VS2010 documentation, but should apply to previous VS versions too).

Ofek Shilon
Thanks for your answer. My projects configuration files are set to the desired encoding, but still there are some files within each project that have different encodings.. Ill try to look if I can iterate over all the files and convert to the desired encoding.
mefepe