Friday, June 30, 2017

Publish website without roslyn

 Roslyn (compiler) is .NET Compiler Platform, is a set of open-source compilers and code analysis APIs for C# and Visual Basic (VB.NET) languages from Microsoft.


When create a new web project, two nuget packages automatically added to the project. Remove them, then roslyn exe will removed from bin.  Package names are: 

"Microsoft.CodeDom.Providers.DotNetCompilerPlatform" and 
"Microsoft.Net.Compilers".


If you are offline, then goto packages.config and remove it.

issues: if still roslyn folder exists then go to manage Nuget package for solution and remove above 2 packages.


---------------------------------------------Don't remove below:---------

Required components for the Bundling and Minification system.

  • Microsoft.AspNet.Web.Optimization
  • WebGrease
  • Antlr

No comments:

Post a Comment

Encrypt/Decrypt the App.Config

Program.cs using System; using System.Diagnostics; using System.IO; namespace EncryptAppConfig {     internal class Program     {         pr...