Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'
November 6, 2006
Ran into an old “friend” compiler error…
This error - actual warning, but if you like i have “all errors as warnings” this will stop you in your steps - will occur in Visual Studio 2005 when you point to a snk-file from the AssemblyInfo-file.
Since this was the way to refer to snk-files in VS2003 this will probably happen to you on your first try. There are a lot of people that has written how to solve this, for example http://davidkean.net/archive/2005/08/25/1162.aspx
The solution is to point to the key-file from the properties of the project. However this has to be done by editing the projectfile in a text editor. The article above gives instructions on how to do that.
”
To do this, following these instructions:
- Open the project file (.csproj for C# or .vbproj for VB) in a text editor
- Look for the <AssemblyOriginatorKeyFile> attribute within...