Recently, my Visual Studio 2008(with Resharper 4.5) has started to reformat asp tags into lowercase.
Example:
<asp:Repeater runat="server" id="rp">
becomes
<asp:repeater runat="server" id="rp">
and I can’t find a way to make it not do this. I use Ctrl-k Ctrl-d to reformat.
I’ve tried resetting the Visual Studio settings, turning off Resharper. Nothing seems to bite.
I did delete a huge Reflected something folder in my Documents and Settings folder last week, could this be the reason?
I had the same (or very similar) issue.
I also deleted some (but not all) files in the folder
The reason I did this is because I’m subject to a frankly daft limit on the size of my (Windows XP) roaming profile 🙁
After I did this VS intellisense and document auto-formatting started behaving as if it didn’t know what the <asp: tags were and treated all the html as plain html (formatted tag names and attributes in lowercase).
I found this blog post by Tim Vasil which pointed me to the solution.
Here’s what I did to fix this:
Deleted all files in C:\Documents
and Settings[username]\Application
Data\Microsoft\VisualStudio\9.0\ReflectedSchemas
Deleted all files in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files
(Note: VS eventually regenerates the various files in it’s own time…)