architecture

Does it make sense to NGen – compile your ASP.NET MVC application ?

By Mirek on (tags: NGen CIL JIT-compilation, categories: architecture, tools)

In .Net world every line of code has to be compiled before it can be executed obviously. However the compilation process occurs twice. First the Common Intermediate Language (CIL) is produced out of human readable code and it occurs just after the development process. Then the CIL is compiled into the native code specifically to be interpreted  by the target machine. The letter step occurs on the fly, on client machine and is called the JIT (Just In Time) compilation.

code

ASP.NET Core and IIS

By Dawid on (tags: ASP.NET, core, iis, categories: code)

What does it means to host you application in IIS? To help with that there is new module called ASP.NET Core Module.

 

code

ASP.NET Core hosting

By Dawid on (tags: ASP.NET, core, hosting, categories: code)

Hosting is how you get you ASP.NET application up and running. And ASP.NET Core is just bunch of libraries host in you own process. It’s not provide a hosting – user have to take care of providing hosting process.

code

Azure Functions

By Dawid on (tags: azure, c#, functions, categories: azure, code)

Some time ago Microsoft announced the Azure Functions. What it is exactly? So, Azure Functions are event driven functions which are executed on some occurrence of events but also can be used on-demand.

code

Secrets of project.json file

By Dawid on (tags: ASP.NET, core, project.json, categories: code)

As you may already notice ASP.NET Core is using project.json files to controls almost all aspects of the project. It contains lot of section (which I will describe bellow) with full support of intellisense. That file is also synchronized with Solution Explorer – removing referenced from file will automatically update References node in Solution Explorer. Here is the list of pro…

code

Entity Framework Core context in separate assembly

By Dawid on (tags: ASP.NET, context, core, ef core, categories: code)

Most of example currently available on the internet shows how’s to start using ASP.NET Core and EF Core implemented in the same assembly. In the RC1 there was couple of tricks which we had to implement if we would like to have separate assembly with data model definition. In RC2 release it’s a little bit easier. Bellow I’ll show you how you can achieve that. This is our applica…

code

How to obtain Content and Web roots paths in ASP.NET Core RC2

By Dawid on (tags: core, .net, path, rc2, root, categories: code)

There are many situations that developer needs to known what are the content or web roots paths. One of such situations is accessing custom JSON configuration files. In the classics ASP.NET applications you was always able to use Server.MapPath() method. With that method you was able to find physical path or web root directory. Later on in RC1 there was possibility to use IAppl…

code

The dotnet Tool

By Dawid on (tags: core, dotnet, .net, rc2, categories: tools, code)

In recently released .NET Core RC 2 there is possibility to use new dotnet tool. It exposes a set of commands , such us: creating empty projects restoring packages building your project unit testing .NET Core contains much more tooling but most of them are exposed thought dotnet tool. There is also no problem with extend set of commands. It has simple extensibility model – you …

security

Avoid double login in Windows 10 with Bitlocker

By Mirek on (tags: BitLocker, login, Windows 10, categories: tools, security)

I am using Microsoft Windows 10 on my PC and to encrypt my disk I enabled the Bitlocker on it. Bitlocker is awesome. It works seamlessly encrypts and decrypts data on the fly. Unfortunately my PC doesn’t have the TPM module and I was forced to use a password prompt at computer start to decrypt drives. And here comes the issue.