Visual Studio Setup Project error
Hi, I'm getting the following error building a solution with a visual studio setup project The setup project is not build correctly, only a tmp file is generated. With disabled vsssolutionbuildevent extension the setup project builds corrctly.
[ERROR]: Failed getting project from EnvDTE: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1. xxx.vdproj
[DEBUG]: at Microsoft.Build.Shared.ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(Boolean condition, String errorSubCategoryResourceName, BuildEventFileInfo projectFile, Exception innerException, String resourceName, Object[] args) at Microsoft.Build.Construction.ProjectRootElement.LoadDocument(String fullPath, Boolean preserveFormatting, Boolean loadAsReadOnly)
Hi, Thanks for the report! I confirm the error.
The problem because vdproj has an incompatible/obsolete format (vdproj has been officially deprecated more than 10 years ago)
You can temporarily try to use vsCommandEvent https://github.com/3F/vsCommandEvent/#readme instead of vsSolutionBuildEvent (disable or remove it until fix)
Or please open PR to ignore or process vdproj somehow. I'll try to review it and release new version as possible. Thanks.
New version 1.16 now ignores vdproj legacy type because msbuild doesn't provide any support for this.
You can, however, discuss support for any legacy types here https://github.com/3F/MvsSln