ERROR:
1. The type or namespace name 'AssemblyKeyFileAttribute' could not be found (are you missing a using directive or an assembly reference?)
2. The type or namespace name 'AssemblyKeyFile' could not be found (are you missing a using directive or an assembly reference?)
Just include "System.Reflection" namespace. It resolve above two errors.
To associate an assembly with a strong key file to store it to GAC, we use should include following line after all the imports and before defing namespace.
For VB.NET: <Assembly: AssemblyKeyFile("c:\path\mykey.snk")>
For C#: [assembly: AssemblyKeyFile(@"c:\path\mykey.snk")]
1. The type or namespace name 'AssemblyKeyFileAttribute' could not be found (are you missing a using directive or an assembly reference?)
2. The type or namespace name 'AssemblyKeyFile' could not be found (are you missing a using directive or an assembly reference?)
Just include "System.Reflection" namespace. It resolve above two errors.
To associate an assembly with a strong key file to store it to GAC, we use should include following line after all the imports and before defing namespace.
For VB.NET: <Assembly: AssemblyKeyFile("c:\path\mykey.snk")>
For C#: [assembly: AssemblyKeyFile(@"c:\path\mykey.snk")]
No comments:
Post a Comment