I'm trying to create a new WPF on .net framework 4.6.1 and reference a project i've already created as a solution, but when i add the solution reference to the new project, the main window class has an error with InitializeComponent() - the name "InitalizeComponent" does not exist in the current context. code added below (default code after the new project was created):
namespace Gui
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}