Skip to content
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

Open
YuliiaKovalova opened this issue Dec 18, 2024 · 4 comments
Labels
bug Something isn't working external The root cause of this issue is in another system

Comments

@YuliiaKovalova
Copy link

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

@YuliiaKovalova YuliiaKovalova added the triage To be reviewed by FireGiant label Dec 18, 2024
@YuliiaKovalova YuliiaKovalova changed the title error WIX0200: unhandled extension element 'WixStandardBootstrapperApplication' when building with VS2022 17.13.0 Preview 2.0 MSB4057 The target "CollectSuggestedVisualStudioComponentIds" does not exist in the project. Dec 18, 2024
@vbaderks
Copy link

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

@FireGiantHelp FireGiantHelp added bug Something isn't working external The root cause of this issue is in another system and removed triage To be reviewed by FireGiant labels Dec 30, 2024
@FireGiantHelp
Copy link
Collaborator

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" />

@jespersh
Copy link

jespersh commented Jan 8, 2025

Just to clarify @FireGiantHelp are we waiting for a new VS preview release?
I saw a report on this closed as External Other Product: https://developercommunity.visualstudio.com/t/VS-1713-Preview-2-breaks-WiX-v5-project/10809797

@FireGiantHelp
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external The root cause of this issue is in another system
Projects
None yet
Development

No branches or pull requests

4 participants