Compile Sass files in IIS7 - css

I have encountered a problem in compiling Sass (.scss) files on IIS7. Is there any simple way to invoke the compilation? I have tried to add the MIME type but it wasn't working. Do I have to install something additional to IIS server?
I have also installed Mindscape instead of SassyStudio ad-on to Visual Studio and it did help because of dynamic .scss compilation. As you save .scss file, Mindscape generates .css file. But is there a posibility to run such compilation during deployment or on the IIS server?

Firstly Sass is a pre-processor, therefore must to be compiled to CSS to be used by the browser and IIS.
You have a few options:
Compile to css within Visual Studio and add the CSS to the project.
Have your build server/process compile to CSS before deploying to your environment. A common way to do this is with a Grunt or Gulp script.
Use BundleTransformer for Sass and create bundles with your .scss files. The transformer will output the bundle compiled to CSS.

Related

How to disable SCSS compilation files in .NET Framework projects

I am developing an angular JS application with webpack using TypeScript and SCSS files, so when I compile the solution I want to VS not create .js and css files.
Adding these lines in the csproj of the projects the .js files are not created after compiling:
<PropertyGroup>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
</PropertyGroup>
And now I want the same for the .css files.
I am using Visual studio Professional 2017.
The projects are developed using the version 4.5.2 of .NET Framework
Visual Studio does not do SCSS compilation by default. You've likely installed an extension which provides this functionality like the Web Compiler extension. Try disabling or removing the extension that is doing this to prevent the behavior.
Solution.
As Jimmy said, I have installed "BuildWebCompiler". After uninstall that nuget Packaged css files aren't generate when I compile the solution

asp.net core Angular Template how to add site.css

Just starting out with the new angular templates in VS Code. Im trying to accomplish what feels like should be the simplest of tasks which is just wanting to add a site level css file to the web project to apply some styles.
From all the google examples i've seen is referring to updating the Angular-cli.json file to attach the to the output but this file isn't available in the core angular template. Where abouts should the css file go and how to link it so it applies site wide?
If you create a .Net Core web project with Angular template, you should see ClientApp folder in the project. My machine has just installed the latest .Net Core 2.1 SDK and nodejs (v 8.11.3 LTS), and has the Visual Studio Community 15.7.3.
You can apply the site-wide styles to styles.css file, under ClientApp -> src.
If you have more site-wide style files, you can configure them in .angular-cli.json file.

TypeScript With Asp.net WebSite in VS2012

I have installed TypeScript plugin for VS2012 and could able to add a TypeScript file(.ts) to Asp.Net Web Application project and after making some modification to csproj it is generating .js(Javascript) file on build and is running perfectly.Now what i need is, to add A TypeScript file to Asp.Net Website Project,since the template is not available i added a .js file and renamed to .ts file and wrote TypeScript code there,but on build it is not generating corresponding .js file.So now the question is ,how to use TypeScript with Asp.Net Website in VS2012
You're going to need to install the Visual Studio 2012 plugin, as detailed here. It appears different versions of VS require their own plugins.

Xamarin Studio generate CSS from SASS or LESS files

I'm building a OWIN based Web-Application with Xamarin Studio on MacOS X.
How can I configure Xamarin Studio to build the CSS files from the LESS sources?
I have been looking for a solution to this myself. What I do now is I setup Grunt to do the compilation of the SASS files and run it in a command prompt.

How do I compile an ASP.NET website into a single DLL file?

I have finally finished my web site. I published it, and I was surprised at the results. Although the App_Code compiled into a single DLL file, every page's code behind compiled into its own DLL file. How do I make it so that it is one DLL file?
Also, is it possible to compile everything (SubSonic, AJAX, etc.) into that same single DLL file?
You might prefer to use the web application project style for that.
You can use ILMerge to merge assemblies into one.
The way we do it is by adding a deployment project to our site:
http://msdn.microsoft.com/en-us/asp.net/aa336619.aspx
To accomplish this you will have to covert your project into a Web Application Project (Supported in Visual Studio 2005 SP1 and Visual Studio 2008).
The process of converting is not that hard, but you will need to move everything out of the app_code folder, as WAP (Web Application Projects) projects do not have code inside app_code.
Once you do this, everything inside your project is compiled into a single DLL file, any external assemblies are still contained in their own DLL files though, but there are options around that as well.
We use build scripts for our websites and run the aspnet_merge.exe from the command line. Here's the MSDN page: http://msdn.microsoft.com/en-us/library/bb397866.aspx

Resources