Share via

Error building solution MSB4057

Dominik Brdak 20 Reputation points
2023-11-02T23:09:15.8166667+00:00

I'm trying to build my solution in Visual Studio, but I keep getting this error message:

Error MSB4057 The target "ContainerWaitForWarmupCompletion" does not exist in the project. OnlineShop.Catalog.API D:\path\Microsoft.Common.CurrentVersion.targets 894

I've tried reinstalling the SDK, but it didn't fix the problem. The weird thing is that everything works fine in Rider. I'm using docker-compose. Any suggestions on how to solve this? Thank you.

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

Answer accepted by question author

Tianyu Sun-MSFT 34,836 Reputation points Microsoft External Staff
2023-11-03T03:42:19.1366667+00:00

Hello @Dominik Brdak ,

Welcome to Microsoft Q&A forum.

Looks the error is related to container(docker). Is there anything changed in the container?

Are you using any extensions, command line tools or external packages?

Are there any special or customized settings in your project file(for example, for C#, in the .csproj file).

Please try following:

  1. Restart VS.
  2. Restart Windows.
  3. Close VS, go to your solution folder and remove the hidden .vs folder, reopen your project and rebuild your project.
  4. If you are using NuGet packages in your project, please try to clean NuGet cache and restore(rebuild your project) the packages.
  5. Try to create a new project and build it, check if the same error will appear.

Best Regards,

Tianyu


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.