Coding For a Living


A place to share and comment about coding for a living.

.NET Native for Windows Store apps Mike McIntyre

Windows Store apps that start up to 60% faster and have a smaller memory footprint – that’s what .NET Native is a about.

.NET Native compiles C# to native machine code that performs like C++. You will continue to benefit from the productivity and familiarity of the .NET Framework with the great performance of native code.image

Released in April 2014, you can download the Microsoft.Net Native Developer Preview to get started today.

The developer preview enables building apps for Windows Store on ARM and x64 architectures (stay tuned for x86.) .NET Native will soon enable a consistent and converged experience across devices.

.NET Native continues to provide a first-class .NET developer experience in Visual Studio. You still get a great edit/compile/debug environment with productivity enhancers like Edit and Continue and code refactoring. You continue to upload MSIL app packages to the Windows Store.

Some of the most popular Windows Store apps on Surface devices are already running on .NET Native. This includes applications such as Wordament and Fresh Paint, which are seeing multi-second startup wins.

Create DateTime with Transaction Sql Mike McIntyre

/* Create close cut off date time variable.*/
        DECLARE @CutOffDateTime DATETIME
        SET @CutOffDateTime = CONVERT(DATETIME, CONVERT(NVARCHAR(10),CONVERT(DATE,GETDATE())) + ' 10:10:00.000')

Visual Studio 2014 Updt 3 Released into the Wild Mike McIntyre


With this update, scaffolding will correctly detect what are the versions of NuGet packages that the project is using. For example, if the project is still using ASP.NET MVC 5.1.2, then scaffolding will use 5.1.2, instead of 5.2.

JSON Editor

Auto formatting is now part of the JSON editor and is turned on by default.

Brace and brackets match highlighting are just like in C# and JavaScript editors now.

Supports more selector patterns

Drag and Drop Magic

Added drag-and-drop of fonts, images and.css files from solution explorer into .css files.

Added support for two-factor authentication in One ASP.NET templates for MVC and Web Forms.

There's more...

What is the Microsoft .NET Compiler Platform? Mike McIntyre

The Microsoft .NET Compiler Platform, better known as Roslyn, consists of two compilers (one for C# and one for Visual Basic) with rich code analysis APIs.

Roslyn provides compilers as services which can be used to create code focused tools and applications. This creates opportunities for innovation in areas such as meta-programming, code generation and transformation, scripting, interactive use of the C# and VB languages, and embedding of C# and VB in domain specific languages.

Roslyn exposes the C# and Visual Basic compiler’s code analysis to you as a consumer by providing an API layer that mirrors a traditional compiler pipeline.


Each phase of this pipeline is now a separate component. First the parse phase, where source is tokenized and parsed into syntax that follows the language grammar. Second the declaration phase, where declarations from source and imported metadata are analyzed to form named symbols. Next the bind phase, where identifiers in the code are matched to symbols. Finally, the emit phase, where all the information built up by the compiler is emitted as an assembly.

In April 2014 Roslyn went open source.

Get started with Roslyn