简体   繁体   English

Visual Studio 2012和Web Essentials 2012在构建时崩溃

[英]Visual Studio 2012 and Web Essentials 2012 crashes on builds

I've installed Web Essentials 2.5.1 and typescript 0.8.3; 我已经安装了Web Essentials 2.5.1和typescript 0.8.3; however, now Visual Studio 2012 Ultimate immediately crashes upon builds. 但是,现在Visual Studio 2012 Ultimate会立即崩溃。 The crashes stop if I uninstall Web Essentials. 如果我卸载Web Essentials,崩溃就会停止。 Does anyone have any suggestions to remedy the crashes? 有没有人有任何建议来纠正崩溃? Thanks. 谢谢。

It could be the error we just encountered when pulling in Wordpress/PHP project. 这可能是我们在拉入Wordpress / PHP项目时遇到的错误。 If BOTH the .css and .less files are Include in project , the build will crash. 如果.css.less文件包含在项目中 ,则构建将崩溃。 If this happens 如果发生这种情况

  1. Right-click the .css file and Exclude from project 右键单击.css文件并从项目中排除
  2. Delete the .css file from Explorer 从资源管理器中删除.css文件
  3. Save the project 保存项目
  4. Double click the .less file to open in an editor 双击.less文件以在编辑器中打开
  5. Change something and save the .less file. 更改内容并保存 .less文件。
  6. Save the project 保存项目

At this point the .css file and .min.css files will be generated and added to the project as dependent files like they would have been in a normal project. 此时,将生成.css文件和.min.css文件,并将其作为依赖文件添加到项目中,就像它们在普通项目中一样。

If you're looking at the project's .csproj file, it goes from looking like this: 如果您正在查看项目的.csproj文件,它看起来像这样:

<ItemGroup>
    <Content Include="test.less" />
    <Content Include="test.css" />
</ItemGroup>

to this: 对此:

<ItemGroup>
    <Content Include="test.less" />
    <Content Include="test.css">
        <DependentUpon>test.less</DependentUpon>
    </Content>
    <Content Include="test.min.css">
        <DependentUpon>test.less</DependentUpon>
    </Content>
</ItemGroup>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM