![]() |
||||
Introduction When using the peverify.exe tool of the .NET Framework 2.0 SDK or higher to verify Visual Studio 2005 (or higher) 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 (or higher) 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"> <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 or higher has a "devenv.exe.config" file in the installation folder ("C:\Program Files\Microsoft Visual Studio 8\Common7\IDE" for Visual Studio 2005) that does the same for things to work fine in the IDE. Related articles Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this
|
| Copyright © 2000-2013 MZTools Software. All Rights Reserved. Legal Notice |