Set MsBuild Verbosity to find out which assemblies conflict: http://msdn.microsoft.com/en-us/library/ms164311.aspx msbuild.exe .\Compile.msbuild /verbosity:detailed ... There was a conflict between "xxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxx" and "xxx, Version=1.0.12152.1, Culture=neutral, PublicKeyToken=xxx". "xxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxx" was chosen because it was primary and "xxx, Version=1.0.12152.1, Culture=neutral, PublicKeyToken=0313e76cb5077f22" was not. References which depend on "xxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxx" [D:\Projects\abc\bin\xxx.dll]. D:\Projects\abc\bin\xxx.dll Project file item includes which caused reference "D:\Projects\abc\src\Web.BuildServer\bin\xxx.dll". xxx References which depend on "xxx, Version=1.0.12152.1, Culture=neutral, PublicKeyToken=xxx" [].
Websites and blogs of people that attended a Homebrew Website Club Düsseldorf.
Asynchronicity rules the world
Designing architecture for a scalable system always involves thinking asynchronous parts. For example: placing an order to a system. At first sight this process of course requires feedback. What happens if the order is invalid because it contains incorrect data? Especially for the non-technical stakeholders it is hard to imagine how this can be accomplished. Therefor it is always helpful to have an example that is taken from the non- technical world.
Disabling File-System-Redirection on 64bit
The following call disables File-System-Redirection on 64bit Windows in WOW mode (e.g. Accessing Program Files and ending up in Program Files (x86)): // Minimum client Windows XP Professional x64 Edition or higher // Minimum server Windows Server 2003 with SP1 or higher NativeMethods.Kernel32.Wow64DisableWow64FsRedirection(pt1);
Adobe, trust, WTF
Mixed language content was in the past a good indicator for phishing – just not as professional as the real provider. Today I received an e-mail by Adobe that asks me to change my password, as they were being hacked in the past and beside passwords (not even hashes? what the hell), program code as well as certificates have been stolen or compromised. I was a bit scared that Adobe now offers a mixed language site especially after what happened to them…
NDepend customizing rule: Declare types in namespaces
NDepend is a tool that offers a wide range of features to let developers analyze a .NET code base. It comes with about 200 built in rules. But there are a few default rules that do not fit “my rules”. This blog post shows how to customize one and even more important why. Avoid namespaces with few types In general types should be placed in namespaces. But compiler generated types (caused by linq queries) are sometimes not.
NDepend customizing rule: Avoid namespaces with few types
NDepend is a tool that offers a wide range of features to let developers analyze a .NET code base. It comes with about 200 built in rules. But there are a few default rules that do not fit “my rules”. This blog post shows how to customize one and even more important why. Avoid namespaces with few types I observed that the original rule outputs an unnecessary line for namespace {} because of the compiler generated classes (caused by linq queries).
NDepend customize rule: Avoid defining multiple types in a source file
NDepend is a tool that offers a wide range of features to let developers analyze a .NET code base. It comes with about 200 built in rules. But there are a few default rules that do not fit “my rules”. This blog post shows how to customize one and even more important why. Avoid defining multiple types in a source file I completely agree, with one exception: When having a generic and a non-generic type e.
NDepend customize rule: Types too big
NDepend is a tool that offers a wide range of features to let developers analyze a .NET code base. It comes with about 200 built in rules. But there are a few default rules that do not fit “my rules”. This blog post shows how to customize one and even more important why. Types too big I use extension methods to collect several functionality for e.g. framework types as string. Each Extension-Class is typically spread across several files and partial to keep overview and maintainability.
NDepend customize rule: Quick summary of methods to refactor
NDepend is a tool that offers a wide range of features to let developers analyze a .NET code base. It comes with about 200 built in rules. But there are a few default rules that do not fit “my rules”. This blog post shows how to customize one and even more important why. Quick summary of methods to refactor This rule gives you a quick overview of what needs to be refactored.
NDepend customizing rule: Static fields should be prefixed with a 's_'
NDepend is a tool that offers a wide range of features to let developers analyze a .NET code base. It comes with about 200 built in rules. But there are a few default rules that do not fit “my rules”. This blog post shows how to customize one and even more important why. Static fields should be prefixed with a ’s_' I use underdashes for instance fields and therefor I have a custom rule for static fields.
NDepend customize rule: Instance fields should be prefixed with a 'm_'
NDepend is a tool that offers a wide range of features to let developers analyze a .NET code base. It comes with about 200 built in rules. But there are a few default rules that do not fit “my rules”. This blog post shows how to customize one and even more important why. Instance fields should be prefixed with a ’m_' I prefix instance fields with a ‘’ not with ‘m’ so I need to customize the default rule:
Validating Code Quality with NDepend
Patrick Smacchia’s NDepend is a great tool to improve code quality and should be run quite regularly. It can be run as a strand alone GUI tool, from inside Visual Studio and as part of your build process. I’ll use the tool over the next few weeks to analyze and improve the quality of one of my personal code bases. I’ll try to share my experiences beside tips and tricks as well as giving feedback to Patrick.
Fix selection of duplicated items in form select elements with AngularJs directive
At a customer we have e.g. a country list in a select form element. It’s special because it has an option group called “top countries”. Inside the list are duplicates, that are listed in the option group “all countries” to. The browser tends to select the latest matching element – which in this special case makes no sense. Here is a directive that ensures the first matching element is selected:
ICE Lingen 2013
Yester day the yearly ICE conference happened in Lingen again. As I’m deep deep down in a project near it’s v1.0 release I haven’t had a lot time there beside my session. But at least enough to talk to Ingo, Thomas, Lars, Peter, Frank, Holger and a few others. Thanks a lot to the organization team making this happen year over year again.
Code Snippet: Surround with Task
I like to speed up my coding with for instance code snippets. Here is a new one: The markup for the snippet file:
What year is It?
We have HTML5 native video support (also with Flash or Silverlight fallback for the oh so old school browsers) so why the heck do some people out there still make it so hard to consume content – in this case Oracle (best known for providing Malware with their installers?!?): I remember that I bought software, at least eight years ago, through Digital River. These times ago I already thought there is space for improvement.
Python's urandom as non-admin
A few weeks ago I set up a new mercurial server fronted by “hgweb-cgi”. The application pool is, as python 2.66, in x64 mode. It has a dedicated ad account from the Managed Service Accounts OU. I set the privileges to deny logon locally and run as service and batch. Everything works fine… until you want to push: HTTP 502 Bad Gateway. IIS failed request tracing lead me to the relevant python source line:
CSS 3.0 as the only schema in Visual Studio
As Visual Studio keeps forgetting the settings that also affect validation and falls back to the oh-so-90-style-2.1-css-version just delete ALL other schemas. Thanks to the industry known Sweat Swank for searching the registry key.
CSS Masks – How To Use Masking In CSS Now
Visual Studio Intellisense support for parameters in JavaScript
From the perspective of a .NET developer JavaScript lacks of intellisense. Of course, Visual Studio is capable of showing intellisense for defined objects and their members, but when it comes to parameters we face the untyped world. Last year I did a project with a few developers who had to leave their beloved C# world and enter the JavaScript area. Their motivation declined from day to day. So I thought of how to provide them with what they were missing like water in the desert.