Andrew Aitken


I've noticed a warning in Visual Studio in a few projects where it gives me the following warning after building,

The predefined type "System.Runtime.CompilerServices.ExtensionAttribute" is defined in multiple assemblies in the global alias

I don't like leaving warnings in my build but I didn't have time to look into it until today. This handy tip from Remco te Wierik led me to the root of the issue. The .net Lucene contrib nuget package contains a reference Lucene.Net.FastVectorHighlighter which defines an ExtensionAttribute class in the System.Runtime.CompilerServices namespace.

Updating the assembly reference alias from "global" to a custom one, fixed the warning.

Older Articles

Instant insanity solver

Tue 29 January 2013 Geek c# .net

I was visiting my sister for Christmas and they had a puzzle for us to play with. It's called the Instant Insanity puzzle, or at least it was a variation of it with old comic book covers instead of plain colours like the one on Wikipedia.

Pretty much everyone ...

Read more

The CacheDependency will monitor a file or folder for changes. When it detects a change it will remove the associated key from the cache.

This comes in quite handy for my hangman game which stores the film titles in an xml file.

Below is how I cache the data and ...

Read more

Page 1 / 1