ResXFileCodeGeneratorEx Project not building in VS2022

120 views Asked by At

I cloned this repository and tried to build in Visual Studio 2022: https://github.com/cpaton/ResXFileCodeGeneratorEx

I am trying to build this in Visual Studio 2022 (Community edition), but the build is not working.

Hello,

I cloned this repository and tried to build in Visual Studio 2022: https://github.com/cpaton/ResXFileCodeGeneratorEx

I am trying to build this in Visual Studio 2022 (Community edition), but the build is not working and I am getting this below error:

Severity    Code    Description Project File    Line    Suppression State
Error       CreatePkgDef : error : ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at Microsoft.VisualStudio.Tools.CreatePkgDef.ProcessAssembly(String fileName, Hive hive, PkgDefContext context, Boolean register, RegistrationMode mode)
   at Microsoft.VisualStudio.Tools.CreatePkgDef.DoCreatePkgDef(InputArguments inputArguments)
   at Microsoft.VisualStudio.Tools.CreatePkgDef.Main(String[] arguments)
Could not load file or assembly 'Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.    ResXFileCodeGeneratorEx         

Severity    Code    Description Project File    Line    Suppression State
Error       The "ResolveComReference" task returned false but did not log an error. ResXFileCodeGeneratorExPackage          

Severity    Code    Description Project File    Line    Suppression State
Warning     Cannot find wrapper assembly for type library "Microsoft.VisualStudio.CommandBars". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.   ResXFileCodeGeneratorExPackage          


Severity    Code    Description Project File    Line    Suppression State
Warning     The "ResolveComReference" task returned false but did not log an error. ResXFileCodeGeneratorExPackage          


Severity    Code    Description Project File    Line    Suppression State
Warning     The referenced component 'Microsoft.VisualStudio.CommandBars' could not be found.   ResXFileCodeGeneratorExPackage          


Severity    Code    Description Project File    Line    Suppression State
Warning     The referenced component 'Microsoft.VisualStudio.CommandBars' could not be found.   ResXFileCodeGeneratorExPackage          

enter image description here

Not sure what is the issue. I simply cloned and trying to build to generate the vsix. Alternatively, if it builds on your machine could you please share the vsix. All I need is vsix.

EDIT

I already have the Visual Studio extension SDK installed:

[VS Extension SDK][1]

I have set all projects to Any CPU:

[Debug is set to Any CPU and same is in Build][2]

Yet I keep getting the errors. [1]: https://i.stack.imgur.com/YFP6a.png [2]: https://i.stack.imgur.com/TJin4.png

0

There are 0 answers