Contents tagged with .net
-
Resolving the error "'bobj' is undefined" with Crystal Reports
Every couple of months the Crystal Reports installed in an application here stops working (reports don't display) after the server that hosts it has been Windows Update'd with the wonderfully …
-
Converting a simple solution/project to .NET Core
I have a very small project I started writing back in 2015 for parsing responses from DNS servers, more because I was interested in how to do so than any real need. Because this mostly pre-dates . …
-
A custom model binder for XML content that produces IEnumerable<T>'s
In a previous post (A custom model binder for XML content) I showed code for a custom MVC Model Binder that takes an XML filled string passed to an action and transforms it to an XDocument. The …
-
Link Dump
I haven't had cause to drop one of these since November last year, probably at least in part because Edge seems to have a nasty habit of eating tabs! In no particular order, and likely of more use to …
-
Creating a template for 'dotnet new' for Microsoft.Build.Traversal
In a recent post I described using Microsoft.Build.Traversal in lieu of solutions for building your projects, with steps to create a sample solution and the Traversal project using the .NET Core …
-
Using Microsoft.Build.Traversal in lieu of solutions for building your projects
Somewhere recently I came across a reference to the Microsoft.Build.Traversal SDK which has been sat in an open tab in my browser ever since. Traversal:
Supports creating traversal projects which …
-
Stopping and starting a System.Timers.Timer - be careful you don't stop forever!
I've sometimes seen code that stops and starts a timer during its TimerElapsed event in order to ensure that the event isn't called whilst it's still being executed from a previous call. If this …
-
Using the CommandLineParser NuGet package to handle your command line
From time to time I've needed to write small console apps that accept parameters via the command line. Luckily, parsing the command line is a solved problem and there are multiple libraries out …
-
Creating projects and solutions using the dotnet command
I've been digging into .NET Core a little bit more recently, with the intention of using it for an upcoming project at work (sssh, don't tell anyone - they don't know yet!) and part of that has …
-
Does one string contain another, irrespective of case?
One of the methods that's noticeable by its absence from the .NET Framework / .NET Core (or, to put it another way .NET Standard 2.0) is an override of string.Contains that takes a StringComparison …