-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSB4057 The target "CollectSuggestedVisualStudioComponentIds" does not exist in the project. #73
Comments
Note: on a clean machine (with no NuGet packaged installed) the Repro Steps requires an explicit msbuild -restore before executing msbuild -t:build -p:Configuration=Release -p:Platform=x64 |
The Visual Studio team confirmed this issue is a breaking change in VS2022 17.13. We'll address the breaking change when one of our customers requires it. Until then, you can work around the breaking change by adding the following line to the bottom of your .wixproj. <Target Name="CollectSuggestedVisualStudioComponentIds" /> |
Just to clarify @FireGiantHelp are we waiting for a new VS preview release? |
@jespersh Visual Studio made it clear that this is an expected breaking change. We will need to update HeatWave to adapt to the breaking change. None of our current customers are on Visual Studio preview builds, so supporting preview builds is not a priority for us. We will release an updated HeatWave to meet our customers' needs. |
Same issue on VS 2022 v17.13 RTM, released today. |
@CyberSinh You will need a version greater than HeatWave v1.0.4. Reach out to your FireGiant support contact to get early access. |
I'm not eligible for paid support. When will the HeatWave extension update be released to the general public? |
Everyone is eligible for paid support. Sign up for WiX Developer Direct, and you'll get priority support like all our customers.
We do not have a date at this moment. We are actively working with our customers to ensure the next version of HeatWave meets their needs. |
Let us know who your customer is, and we will tell them the great benefit of upgrading to latest Visual Studio 17.13. :) |
This is a problem for me. I updated Visual Studio yesterday and can't build installers without the workaround. I just warned the rest of the dev team to avoid updating VS. I'm surprised there isn't a greater sense of urgency here about getting a fix out. WIX v3 and v4 are now out of support. Meanwhile, the v5 that is supported is now broken and we're told there is no date in sight. |
Another bug is related to the use of wixtoolset extension nuget packages. We decided to go forward with the VS upgrade, and use the dotnet CLI to perform the local build. Our CI/CD pipeline is using dotnet CLI so it is not being affected. |
@tobyjohnm did you find that the one-line workaround did not work? We found that it was sufficient to address the breaking change in Visual Studio. With an available workaround, the priority for a general fix was reduced, and we could focus on customer requirements for the next release of HeatWave. |
The workaround does work, but we have more than 100 installers in our repo. I can't run a full build without touching all of them with something that only benefits me. I either have to hold those changes back, making my change management more difficult, or temporarily pollute all of them. |
Thank you for the work around! |
@tobyjohnm you shoudl consider the directory.build.props as it would apply to all your installer |
@fforjanAVEVA can you provide a concrete example of how directory.build.props should be modified to add the necessary workaround line (CollectSuggestedVisualStudioComponentIds) to every WIX project file? |
@tobyjohnm
then all the wixproj project shoudl automatically have the target being added. |
HeatWave Version
1.0.4.5
Visual Studio Version
17.13.0 Preview 2.0
Repro Steps
Repo: https://github.com/team-charls/netpbm-wic-codec
Actual Result
Exception during design-time build: MSB4057 The target "CollectSuggestedVisualStudioComponentIds" does not exist in the project.
Expected Result
Quick fix:
FireGiant.HeatWave.DesignTime.targets
contains empty target :
<Target Name="CollectSuggestedVisualStudioComponentIds" />
OR
Reliable fix:
FireGiant.HeatWave.DesignTime.targets
imports DTB targets form project system:https://github.com/dotnet/project-system/blob/5f3636c2064201fac04017900e0160193ee8627b/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/DesignTimeTargets/Microsoft.Managed.DesignTime.targets#L437
The text was updated successfully, but these errors were encountered: