Why are there so many implementations of Object Pooling in Roslyn?

I’m the lead for the Roslyn performance v-team. All object pools are designed to reduce the allocation rate and, therefore, the frequency of garbage collections. This comes at the expense of adding long-lived (gen 2) objects. This helps compiler throughput slightly but the major effect is on Visual Studio responsiveness when using the VB or … Read more

What’s the difference between .NET CoreCLR, CoreRT, Roslyn and LLILC

Roslyn is a compiler platform that enables you to build static and dynamic analysis tools and custom language extensions and transformations for the C# and VB programming languages.It also enables you to embed these languages within other languages or applications. Roslyn includes the C# and VB compilers and other tools. These compilers emit Common Intermediate … Read more

C# REPL outside Visual Studio

C# Interactive window and csi.exe REPL were added to Visual Studio 2015 Update 1 (emphasis mine): Introducing Interactive The Interactive Window is back! The C# Interactive Window returns in Visual Studio 2015 Update 1 along with a couple other interactive treats: C# Interactive. The C# Interactive window is essentially a read-eval-print-loop (REPL) that allows you … Read more

Using C# 6 features with CodeDomProvider (Roslyn)

Update: March 2018 Word of caution, NuGet version 1.0.6 … 1.0.8 will not copy the /roslyn folder to the build output directory on non-web projects. Best stick with 1.0.5 https://github.com/aspnet/RoslynCodeDomProvider/issues/38 Run-time compilation using C#6 features requires a new compiler, as @thomas-levesque mentioned. This compiler can be installed by using the nuget package Microsoft.CodeDom.Providers.DotNetCompilerPlatform. For desktop … Read more

What is the difference between using Full and Portable for .net core projects?

The difference is that the “full” type emits a classic windows PDB symbol file which is complex and poorly documented. The “portable” PDB format is a new open-source format that can be created and used on all platforms. You can read more information on this format at it’s documentation on the dotnet/core repo. It has … Read more

How do I disable all Roslyn Code Analyzers?

You can disable analyzers on a per-project basis. To do it, right click on Project>References>Analyzers in the Solution Explorer and hit Open Active Rule Set You can disable individual analyzers or entire bundles of analyzers. This creates a <ProjectName>.ruleset file and modifies the <ProjectName>.csproj, which means that you will share this configuration with your team … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)