上海社会科学院使用与ASP.NET [英] Using SASS with ASP.NET

查看:157
本文介绍了上海社会科学院使用与ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找到从Ruby的方式来使用 SASS (句法真棒样式表) HAML包在ASP.NET环境。理想情况下,我想上海社会科学院的文件汇编成CSS是构建过程的无缝组成部分。

I'm looking into ways to use SASS (Syntactically Awesome StyleSheets) from the Ruby HAML package in an ASP.NET environment. Ideally, I would like compilation of SASS files into CSS to be a seamless part of the build process.

什么是这个集成的最佳方法是什么?另外,是否有其他的CSS生成工具是更适合.NET环境?

What are the best ways to this integration? Alternatively, are there other CSS-generation tools that are better suited for a .NET environment?

推荐答案

有关在Visual Studio中更好的工作经验,你可以安装网站基本的最后一个版本这是开始支持萨斯(SCSS语法)。
另外,您可以安装野蛮女友工作室或的Web工作台

For a better working experience in Visual Studio, you could install the last version of Web Essential which is starting to support Sass (SCSS syntax).
Alternatively you could install Sassy Studio or Web Workbench.

然后编译您.sass /在你的ASP.NET项目.scss文件,有一些不同的工具:通过网络基本,< A HREF =htt​​p://www.mindscapehq.com/products/web-workbench>网络工作台, SassC Sass.Net 北斗 SassAndCoffee ...

Then to compile your .sass/.scss files in your ASP.NET project, there is some different tools: via Web Essential, Web Workbench, SassC, Sass.Net, Compass, SassAndCoffee...

网络基本 一个全功能的插件的Visual Studio,这真的给了所有前端更好的体验东西。最新版本开始支持萨斯(SCSS语法)。在内部它使用Libsass编译SCSS到CSS。

Web Essential a fully featured plugin for Visual Studio, which really give a better experience for all Front-End stuffs. The latest version is starting to support Sass (SCSS syntax). Internally it use the Libsass to compile the SCSS to CSS.

网络工作台 是Visual Studio中添加语法高亮,intellisence另一个插件和编辑文件SCSS其他一些有用的东西。它也可以编译code为正常或缩小的CSS。在内部它使用了Ruby编译萨斯的包装版本。

Web Workbench is another plugin for Visual Studio that add syntax highlighting, intellisence and some other useful stuff for editing SCSS files. It can also compile your code into normal or minified CSS. Internally it used a wrapped version of the Ruby Sass compiler.

<一个href=\"http://visualstudiogallery.msdn.microsoft.com/85fa99a6-e4c6-4a1c-9f00-e6a8129b6f4d\">Sassy工作室 :另一个插件为Visual Studio。少特色,但要轻得多。

Sassy Studio: another plugin for Visual Studio. Less featured but much lighter.

Libsass库 是C ++的萨斯CSS precompiler港(仍在开发中)。最初的版本是用Ruby编写的,但是这个版本是为效率和可移植性。这个库力求做到轻,操作简单,易于构建和各种平台和语言结合起来。

The Libsass library is C++ port of the Sass CSS precompiler (still in development). The original version was written in Ruby, but this version is meant for efficiency and portability. This library strives to be light, simple, and easy to build and integrate with a variety of platforms and languages.

有几种包装围绕Libsass库:

There are several wrappers around the Libsass library:


  • SassC :一个命令行编译器(在Windows上,你需要编译SassC源与MsysGit得到sassc.exe)。

  • NSass :一个.NET包装

  • 节点萨斯 :对Node.js的使用Libsass


北斗 是萨斯一个框架,增添了不少有用的工具(比如图片组合),并也可以编译SCSS /萨斯。但是,你需要在你需要编译你的风格每个开发环境安装Ruby。

Compass is a framework for Sass that add a lot of useful helpers (like image spriting) and can also compile your SCSS/Sass. But you need to install Ruby on each development environment where you need to compile your styles.

SassAndCoffee 是,增加了SCSS /萨斯编译和微小的支持包,通过一些DLL和CONFIGS。它通过Web工作台编译器的优点是它是自包含到Visual Studio解决方案:你不需要在每一个开发环境中安装一个插件。备注:SassAndCoffee不经常更新,因为它利用了IronRuby包官方的Ruby编译器,你可以得到一些性能问题。您可以通过的NuGet包安装最新版本。

这篇关于上海社会科学院使用与ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆