Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to load the previous version assemblies to VS2013 Preview?

$
0
0

Hello,

I tried to migrate my VS2012 based VSPackage (project system and language service) to VS2013 preview.
I would like to create the common packages for VS2012 and VS2013.

However, I found two problems.

[1].Redirecting Assembly Versions setting is not right.
[2].There are not some "Redirecting Assembly Versions" settings in the devenv.exe.confing

[1].Redirecting Assembly Versions setting is not right.
The assembly load error occurred when loading my language service package.

I found the mistake to the redirecting assembly versions settings in devenv.exe.config.
The Redirecting Assembly Versions settings version of 'Microsoft.VisualStudio.Package.LanguageService.V1x.0' and the version installed into the GAC do not correspond.

    <dependentAssembly>        <assemblyIdentity name="Microsoft.VisualStudio.Package.LanguageService.11.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>        <bindingRedirect oldVersion="2.0.0.0-11.0.0.0" newVersion="12.0.0.0"/>    </dependentAssembly>    <dependentAssembly>        <assemblyIdentity name="Microsoft.VisualStudio.Package.LanguageService.10.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>        <bindingRedirect oldVersion="2.0.0.0-11.0.0.0" newVersion="12.0.0.0"/>    </dependentAssembly>

The assembly versions are redirected to 12.0.0.0 respectively.
But, the assembly version actually installed is different.

----------------------------------------------------------------------------------------

 C:\>gacutil -L Microsoft.VisualStudio.Package.LanguageService.11.0
 Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.32559
 Copyright (c) Microsoft Corporation.  All rights reserved.

 The Global Assembly Cache contains the following assemblies:
   Microsoft.VisualStudio.Package.LanguageService.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL

 Number of items = 1

 C:\>gacutil -L Microsoft.VisualStudio.Package.LanguageService.10.0
 Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.32559
 Copyright (c) Microsoft Corporation.  All rights reserved.

 The Global Assembly Cache contains the following assemblies:
  Microsoft.VisualStudio.Package.LanguageService.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL

 Number of items = 1

----------------------------------------------------------------------------------------

[2].There are not some "Redirecting Assembly Versions" settings in the devenv.exe.confing

The following redirecting assembly versions settings are not found.
 - Microsoft.VisualStudio.AppDesigner, Version=11.0.0.0, Culture=neutral, publicKeyToken=b03f5f7f11d50a3a
 - Microsoft.VisualStudio.Editors, Version=11.0.0.0, Culture=neutral, publicKeyToken=b03f5f7f11d50a3a
 - Microsoft.VisualStudio.ImportProjectFolderWizard, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Therefore, the assembly load error occurred on some features of my project system.
These assemblies should be redirected to version 12.0.0.0.

Is there a workaround except that devenv.exe.config is rewritten directly?

Or, are these problems fixed in RTM?

ichimasa


Viewing all articles
Browse latest Browse all 4410

Trending Articles