0

I'm experimenting with add a multi-project solution template to a VSIX. I followed step by step these instructions.

https://learn.microsoft.com/en-us/visualstudio/extensibility/getting-started-with-the-vsix-project-template?view=vs-2022

But at build time I get : Severity Code Description Project File Line Suppression State Error "VsixUtil.exe" exited with code -1073741819. Bingli.Vsix

In the output log of the build :

1>------ Rebuild All started: Project: ABC.Vsix, Configuration: Debug Any CPU ------ Restored D:_DEV_repositories\ABC\ABC.Vsix\ABC.Vsix\ABC.Vsix.csproj (in 432 ms). 1>
1> Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. 1> at Microsoft.VisualStudio.Sdk.VsixUtil.VSTemplateManifest.WriteVSTemplateDataEntry(XmlTextWriter xmlWriter, VSTemplateData vsTemplateData) 1> at Microsoft.VisualStudio.Sdk.VsixUtil.VSTemplateManifest.Write(Stream outStream, Encoding encoding) 1> at Microsoft.VisualStudio.Sdk.VsixUtil.TemplateManifestGenerator.CreateVSTemplateManifest(String templateManifestPath, LocalizedDirectory directory, IEnumerable1 vsTemplateData, ILogger logger) 1> at Microsoft.VisualStudio.Sdk.VsixUtil.TemplateManifestGenerator.GenerateTemplateManifests(String fileManifest, String outputDirectory, String outputFileManifest, ILogger logger) 1> at Microsoft.VisualStudio.Sdk.VsixUtil.CreateTemplateManifestsCommand.Execute(IReadOnlyDictionary2 selectedArguments) 1> at Microsoft.VisualStudio.Sdk.Runner.Run(String[] args, Stream outStream, Stream errorStream) 1> at Microsoft.VisualStudio.Sdk.VsixUtil.Program.Main(String[] args) 1>C:\Users\johnn.nuget\packages\microsoft.vssdk.buildtools\17.2.2190\tools\VSSDK\Microsoft.VsSDK.targets(681,5): error MSB6006: "VsixUtil.exe" exited with code -1073741819. ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Any suggestions ?

BrilBroeder
  • 1,409
  • 3
  • 18
  • 37

0 Answers0