wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
129 stars 24 forks source link

Install NuGet package freezes Visual Studio 2017 on OAWixProject.Save #5589

Open ingobau opened 7 years ago

ingobau commented 7 years ago

Bugs

If this issue is a bug:

4.5.2

On installing a NuGet package the power shell script install.ps1 is executed. The script install.ps1 calls the function WixToolset.VisualStudioExtension.OAWixProject.Save([PATHTOPROJECTFILE]) which results in freezing Visual Studio 2017.

The above mentioned script works fine in Visual Studio 2015.

Many thanks, Ingo

barnson commented 7 years ago

Which NuGet package?

ingobau commented 7 years ago

It is a custom NuGet package including our custom managed bootstrapper. Furthermore, installing the NuGet package in a Wix Bootstrapper project, the file Bundle.wxs gets modified (e.g. add payload). This modifications are executed in install.ps1 and saved by calling WixToolset.VisualStudioExtension.OAWixProject.Save([PATHTOPROJECTFILE]).

ingobau commented 7 years ago

DemoSaveVsProject.1.0.0.nupkg.zip

Please find attached the demo NuGet Package to replicate the issue described above. The install.ps1 calls the project save method. Installing the demo package in a Bootstrapper Project for Wix works fine with VS 2015 but doesn't work with VS 2017.