0

I have a web application project containing several .css files and one of them opens without syntax highlighting and line-breaks.

enter image description here

When opened with "CSS source editor with encoding" it is displayed correctly (also when double clicked in the Windows Explorer or opene from the Source control history).

enter image description here

I also opened the file with the "Binary Editor" but I can't see anything wrong.

enter image description here

The problem is reproduced in VS2010 and VS2012 on three computers (Win7).

What I have attempted so far: force save file as UNICODE, exclude it from project and include again.

When included in another project the file opens correctly.

IvanH
  • 5,039
  • 14
  • 60
  • 81

1 Answers1

0

When I was doing the final review before posting I found a solution. The file tag in .vbproj looks like this

<Content Include="filename">
   <SubType>Designer</SubType>
</Content>

The child tag is added by Visual Studio from an unknown reason: SO: <Subtype>Designer</Subtype> Added then removed by Visual Studio on load/unload

Community
  • 1
  • 1
IvanH
  • 5,039
  • 14
  • 60
  • 81