'InstallerProjectsPackage' package did not load correctly

Chris Csernica 21 Reputation points
2021-09-10T00:24:19.903+00:00

I'm using VS 2017 Professional and have created a setup project for locally deploying one of my C++ solutions. When I right-click on "Primary output from {project}" and select Properties I get the following error:

130912-capture.png

In ActivityLog.xml we get:

CreateInstance failed for package [InstallerProjectsPackage]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) System.IO.FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)at System.Activator.CreateInstance(String assemblyName, String typeName)at System.AppDomain.CreateInstance(String assemblyName, String typeName) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

After this, the Properties panel seems to display just fine. So I have two questions:

First: is this something I should worry about, or is it basically meaningless in this case?

Second: if yes, how do I fix it? I've already tried clearing the ComponentModelCache folder, executing >devenv /clearcache and devenv /updateconfiguration, performing a repair on VS 2017, deleting the .vs folder for the project, and adding what looks to be the affected dll (and a few that seem unrelated) to the GAC with gacutil. Is there anything else I might reasonably try?

And a side question: I accidentally clicked "Yes" to dismiss that dialog box last time it popped up. How do I undo that?

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
964 questions
0 comments No comments
{count} votes

Accepted answer
  1. PengGe-MSFT 3,331 Reputation points
    2021-09-10T07:09:37.163+00:00

    Hi @Chris Csernica

    Welcome to Microsoft Q&A!

    Does the InstallerProjectsPackage you mentioned refer to this extension?
    When you need to use this feature, there may be problems. If you don't need to use this function, there should be no problem.
    You can try to reinstall this extension.

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


0 additional answers

Sort by: Most helpful