Home > Net >  There is no InitializeComponent method WPF current context
There is no InitializeComponent method WPF current context

Time:09-16

To a big save me redo computer system reinstall vs2015 project opened until after will error can't find the InitializeComponent this method and the control code in the background in the interface also can not find in the thought that was caused by the namespace is not correct but I see didn't see any problem with the namespace

This is my interface namespace
X:

This is my code in the namespace
The namespace MY_ComprehensiveUI


CodePudding user response:

Add the error information

CodePudding user response:

See reference, reference the assembly is wrong, don't remember vs2015 there was a nuget package management, so, open the see installed, to update the references, seems I've seen a similar situation, a WPF vs2005 do touch screen, but I can be normal use vs2019 now run chang, improper is quoted,
  •  Tags:  
  • C#
  • Related