The interwebs is full of posts telling about how to create file and directory junctions**. But there is little information about removing them and even less being correct: some suggest to del a directory junction (which just deletes everything in it but the junction). Finally there is little information about listing all junctions, so lets start with that: Deleting a ...
Read More »Home »
Compare Registry Settings – Beyond Compare
I think that Compare Registry Settings is one of the most unknown features of Beyond Compare. So if you are a Windows that fights with the Registry every now and then, this feature is for you. Note it is in the Windows Pro Edition only: one more reason to buy a license (: It has been there since Beyond Compare version ...
Read More »Windows applications: Icons and the Shell; names, sizes, etc.
When adding Icons to your Windows applications a few things matter. Selecting the icon resource The icon selected by the Windows Shell (for modern Windows versions usually Windows Explorer), is the one with the lowest ID. When there is no icon with an ID, it selects the icon with the lowest name. Icons in Windows can have both IDs and ...
Read More »Hack the Remote Desktop .RDP file
Glad I found out about the string to add to a .RDP file to make it connect to the administrative console whenever your remote supports that: connect to console:i:1 Reference: Hack the Remote Desktop .RDP file from our NCG partner Jeroen Pluimers at the The Wiert Corner blog.
Read More »C# Settings reminder
As a reminder to self: Settings are nice (too bad they advertise them as Windows Forms Application Settings, as they are just as useful for other assemblies), but be aware… When using Settings.Default, it will get the values to the state of the app.config (or defaults if there is no app.config) of the assembly that defined the settings, not the ...
Read More »The Power of Open Source… Microsoft .NET and OpenShift: .Net on Linux
Really exiting times ahead: Microsoft .Net on Linux. It’s not fully ready yet, but to get an idea to learn more about running OpenShift Enterprise 3 and a .NET application based on a Red Hat Enterprise Linux container, here are a few links to get started: The Power of Open Source… Microsoft .NET and OpenShift Microsoft .NET Apps on OpenShift – Wait, ...
Read More »C# – TFS Code Reviews – Show updated files in response to comments
Nice steps here: C# – TFS Code Reviews – Show updated files in response to comments – Stack Overflow. What’s missing here is that you now loose your history within the shelve-set. That makes it harder for the reviewer to view the changes being re-reviewed. Reference: C# – TFS Code Reviews – Show updated files in response to comments – ...
Read More »Do not expose properties with writable fields without a chance to react on the writes.
From a chat with a co-worker a while ago: I’m not against properties. Just something against properties that are objects with writeable fields. So even if you expose such a property as read-only, it can still get its writeable fields overwritten. That is a pain when those are part of the state of the underlying object. In other words: ...
Read More »C#: Lazy is not constrained to static contexts, instance field initializers are: via Stack Overflow
Lazy<T> is not constrained to static contexts. Instance field initialisers cannot use instance references (but can use static references) as they run outside of the constructor.Though there are arguments for instance field initializers too., I think this is a good reason to initialize fields inside the constructor: there you do have access to instance references (but should not call virtual ...
Read More »Unless you write an installer with the right manifest don’t include Installer, Update, Upgrade, Setup,… in your EXE name
I’ve seen this question coming up a few times, and bumped into this at a client recently: the UAC dialog coming up when debugging a 32-bit executable. This is caused (more details below) by Installer Detection Technology introduced in Windows Vista (with UAC) and tightened in more modern Windows versions. The solution is to either: not include ...
Read More »