Why developing a wpf app is a nigtmare

Eduardo Gomez 3,416 Reputation points

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.


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


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,660 questions
0 comments No comments
{count} votes

Accepted answer
  1. Hui Liu-MSFT 36,356 Reputation points Microsoft Vendor

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful