Why developing a wpf app is a nigtmare

Eduardo Gomez 2,346 Reputation points
2022-06-23T22:35:44.61+00:00

I have been triyng to run my wpf app, I already have my VMS(viewmodel) and associated with the view.

Everytime I try to make a complex app using wpf, something breaks for no reason.

214522-image.png

As you can see, I already defined viewodel namespace and I get this error

WHY

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,185 questions
No comments
{count} votes

Accepted answer
  1. Hui Liu-MSFT 14,721 Reputation points Microsoft Employee
    2022-06-24T02:05:26.447+00:00

    Hi,@Eduardo Gomez . Welcome Microsoft Q&A.

    Even if an error is displayed, the program can run successfully. For this known VS bug, you could try the following solutions.

    1. Restarting VS and cleaning/rebuilding the solution.
    2. In VS, right click on your Solution -> Properties -> Configuration Properties .And try to change the project configurations from Debug to Release or vice versa.
    3. If your current build target platform is x64, change to x86. If it's currently x86, change to x64.
      Clean and Build solution for new target platform.
      Change back to desired target platform and re-build.

    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    No comments

0 additional answers

Sort by: Most helpful