![]() |
||||
|
Introduction When using the peverify.exe tool of the .NET Framework 2.0 SDK to verify Visual Studio 2005 add-ins, you can get errors like these:
More Information This problem happens if your add-in uses the VSLangProj.dll, because that assembly references EnvDTE.dll version 7.0.3300.0 while Visual Studio 2005 add-ins reference EnvDTE.dll version 8.0.0.0. To solve this problem:
<?xml version="1.0" ?>
<configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" > <probing privatePath="PublicAssemblies;PrivateAssemblies" /> <dependentAssembly> <assemblyIdentity name="EnvDTE" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="7.0.3300.0" newVersion="8.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration> Once that file is placed in the same folder than the add-in dll, the peverify.exe tool will work fine. Note: Visual Studio 2005 has a "devenv.exe.config" file in the "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE" folder that does the same for things to work fine in the IDE.
Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this
You can code, design, locate code and document your apps much faster using VB.NET, C#, C++ or Visual J#:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||