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.

4

1 回答 1

0

当我在发布之前进行最终审查时,我找到了解决方案。.vbproj 中的文件标签如下所示

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

子标签由 Visual Studio 添加,原因不明: SO: <Subtype>Designer</Subtype> 添加然后由 Visual Studio 在加载/卸载时删除

于 2013-11-12T08:21:03.463 回答