-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load "Microsoft.VisualStudio.Shell.10.0, Version=12.0.0.0" (VS2012) #2
Comments
I've had the same issue and been able to create a workaround based on a connect report at "https://connect.microsoft.com/VisualStudio/feedback/details/794961/previous-version-assemblies-cannot-load-in-visual-studio-2013". You can add the following binding redirect to your devenv.exe.config (By default located under "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE") to get Nestin running again.
On a sidenote: |
@tomdebie Thank you, this fixed the problem on one of my VS 2012 PCs. The devenv.exe.config already contained the assemblyIdentity section but the oldVersion was 2.0.0.0-10.0.0.0. Changing it to 12.0.0.0 fixed NestIn. However, on another PC the .config file change broke three other VS extensions, including AnkhSVN and Rename Visual Studio Window Title. I reverted to the original assemblyIdentity and added a new dependentAssembly section (as above). This seems to have fixed NestIn without breaking the other extensions. (I can't be sure this is the correct approach or won't create other issues.) |
Recompiling NestIn.dll with an explicit reference to a lower version of Microsoft.VisualStudio.Shell.10.0 also works great. Would you consider this in a pull request? index a658ac2..655d640 100644
--- a/NestIn/NestIn.csproj
+++ b/NestIn/NestIn.csproj
@@ -59,10 +59,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
- <Reference Include="Microsoft.VisualStudio.ComponentModelHost, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.ComponentModelHost.dll</HintPath>
- </Reference>
+ <Reference Include="Microsoft.VisualStudio.ComponentModelHost, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"/>
<Reference Include="Microsoft.VisualStudio.OLE.Interop" />
<Reference Include="Microsoft.VisualStudio.Shell.Interop" />
<Reference Include="Microsoft.VisualStudio.Shell.Interop.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -72,9 +69,7 @@
<Reference Include="Microsoft.VisualStudio.Shell.Interop.9.0" />
<Reference Include="Microsoft.VisualStudio.Shell.Interop.10.0" />
<Reference Include="Microsoft.VisualStudio.TextManager.Interop" />
- <Reference Include="Microsoft.VisualStudio.Shell.10.0">
- <Private>false</Private>
- </Reference>
+ <Reference Include="Microsoft.VisualStudio.Shell.10.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"/>
<Reference Include="Microsoft.VisualStudio.Shell.Immutable.10.0" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" /> |
@jeremysimmons Sorry, I wasn't receiving notifications for this repository :( yes sure, go ahead and send me a pull request Do you think it will work for newer versions for vs? |
@jfromaniello I will submit the pull request. If the newer version of visual studio (2013) has that specific assembly, yes, it would work. Because that's a reference to an assembly with the strong name, both the name and version have to match. I don't know. I will put a copy of VS2013 on a clean OS to check if it does. |
@jfromaniello I checked for Microsoft.VisualStudio.Shell.10.0, Version=11.0.0.0 after a clean install of VS2013, it only had 12.0.0.0 in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.Shell.10.0. Might be worth looking into how they accomplish this. https://github.com/Haacked/NuGet/ I will see if I can scrounge together some time this weekend. |
@jfromaniello I looked into how Nuget is doing this. I didn't have time to implement but made some promising headway into understanding how it works. I'll keep you posted this week. |
@jeremysimmons awesome, thank you very much for taking care of this. I am in a completely different position right now, and I haven't been involved with .Net and VS since the last 3 years I gave you access to the repository, |
Check this very insightful answer on how to properly support multiple versions of Visual Studio: |
Support Multiple Versions cleanly. |
Moving build enhancement "Support Multiple Versions cleanly" to new Issue. |
This occurs when I click the menu item to nest two files together. The program display an error message saying it failed to load, then says to look in ActivityLog.xml
I tried to open up the solution to figure out what was wrong with the references, but I can't load the project file because it's for VS2013 and I have VS2012. Basically, it wasn't worth my hassle so I will just edit the project file manually... but I thought I would leave you with my error log anyways:
The text was updated successfully, but these errors were encountered: