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

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 method. With that method you was able to find physical path or web root directory. Later on in RC1 there was possibility to use service. That’s not po…

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

The dotnet Tool

In recently released .NET Core RC 2 there is possibility to use new 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 tool. There is also no problem with extend set of commands. It has simple extensibility model – you can read more …

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

Configuring simple TraceSource for logging purposes

In the previous post we saw how to use the built in Trace class for logging facilities. However the Trace class is not the latest Microsoft’s recommended way for logging your application. In this post I will try to present the quickest way of configuring TraceSource and use it for logging purposes. TraceSource class allows you to create as many trace sources as you want and fre…

By Mirek on (tags: c#, logging, .net, TraceSource, tracing, categories: code)

Breaking strong name in .net library assemblies.

Recently I was digging in Strong naming and signing in .net. I have found an interesting article on code project Building Security Awareness in .NET Assemblies which describe how the strong name can be easily removed and beaked from an executing assembly. I would like to present the approach that can be used with library assemblies in .net. What is a strong name (also called st…

By Mirek on (tags: Assembly signing, .net, Strong name, categories: code, security)