Quantcast
Channel: Workarounds – no dogma blog
Browsing latest articles
Browse All 9 View Live

Dotclear blog editing problem

The dotclear blogging engine has some issues when including pre-formated html; it removes all leading spaces and mangles empty lines. This is a significant problem when posting nicely coloured code...

View Article



Saving enums as strings with Entity Framework

In September 2018 I wrote a new post explaining how to store enums as ints or strings with Entity Framework Core. It is a nicer solution than the one presented here. Full source code here. I hit a...

View Article

Finding the Location of a Running Assembly in .Net

For many reasons you might want to know where a running assembly is located on your filesystem. I had to do this once when I was compiling classes at runtime and had a dependency on EntityFramework....

View Article

Cached nuget packages causing you problems?

Short version If you are having problems with nuget packages and think it might be related to local caching delete packages from these directories – %LocalAppData%\NuGet\Cache and...

View Article

Image may be NSFW.
Clik here to view.

Locating and checking an executing DLL on a running web server or other...

Edit – even though the steps described below related to an example with IIS, you can use this technique for any running process, it’s just a matter of identifying the process id. In some cases you will...

View Article


Image may be NSFW.
Clik here to view.

How to install .NET Framework 4.7 in Visual Studio 2017

Microsoft just released .NET Framework 4.7, but surprisingly it is not the easiest to install. Here are the steps for Windows 10, as of this writing, it is not available for earlier versions for of...

View Article

dotnet new failing with Error: Invalid parameter(s)

If you are using Visual Studio Code and you want to add a new project to your workspace, the easiest thing to do is something like – dotnet new xunit -f netcoreapp2.1 But you may get an error – Error:...

View Article

The terminal shell path “dotnet” is a directory – Visual Studio Code

I have been using Visual Studio Code in Ubuntu Linux for a while, but it was not an easy process to get it working the first time. I just got around to installing .NET Core 3.1 and hit a familiar...

View Article


Image may be NSFW.
Clik here to view.

VS Code Bug – Interpolation and Commented Lines, Workaround

This is a quick post with a workaround to a bug in VS Code that occurs when you use string with @$ – the verbatim character and the interpolation characters. If you have a piece of code that looks like...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images