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

SDK Package - LanguageService

$
0
0

Hi

I'm trying to move a LanguageService, written in C++/Cli from VS2010 to VS2012.

After several tries, changing the references by the new ones, I have a trouble with the order of the references, or doublely defined symbol.

The warning is C4945 with a message like :

warning C4945: '__VSPROPID5' : cannot import symbol from 'c:\program files\microsoft visual studio 11.0\vssdk\visualstudiointegration\common\assemblies\v4.0\microsoft.visualstudio.shell.interop.11.0.dll': as 'Microsoft::VisualStudio::Shell::Interop::__VSPROPID5' has already been imported from another assembly 'Microsoft.VisualStudio.Shell.11.0'    c:\program files\microsoft visual studio 11.0\vssdk\visualstudiointegration\common\assemblies\v4.0\microsoft.visualstudio.shell.interop.11.0.dll  

And it ends with errors like :

c:\program files\microsoft visual studio 11.0\vssdk\visualstudiointegration\common\assemblies\v4.0\microsoft.visualstudio.shell.interop.11.0.dll : error C2546: 'Microsoft::VisualStudio::Shell::Interop::IVsNewDocumentStateContext' : when a type is defined in both a PIA and a no-PIA the PIA must be referenced first
          Please reference assembly 'c:\program files\microsoft visual studio 11.0\vssdk\visualstudiointegration\common\assemblies\v4.0\microsoft.visualstudio.shell.interop.11.0.dll' before assembly 'c:\program files\microsoft visual studio 11.0\vssdk\visualstudiointegration\common\assemblies\v4.0\microsoft.visualstudio.shell.11.0.dll'
          This diagnostic occurred while importing type 'Microsoft.VisualStudio.Shell.Interop.IVsNewDocumentStateContext' from assembly 'Microsoft.VisualStudio.Shell.Interop.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

But I don't know how to change the order nor how to avoid the doublely defined symbols..

Any help is welcome.

TIA,

Fabrice.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>