Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Getting type or namespace name 'Assets' does not exist in the namespace 'LRAT'; but it does

$
0
0

When I build a WPF app, I am now getting the, "The type or namespace name 'Assets' does not exist in the namespace 'LRAT'" error. This is in the file SetManagerView.g.cs. I've deleted that file and rebuilt the solution; the error immediately comes back.

Assets is a folder under the LRAT project. It most certainly does exist. It isn't at all obvious to me why VS 2019 (or VS 2017 for that matter) would think a folder within a project isn't there. What could be causing this?


This could be a red herring, but I'll mention it anyway. The Assets folder has both image files (an .ico file and some .png files) plus it has some resource dictionary files in it. It doesn't seem like that would matter or cause any problems, but could I be wrong about that?


Rod


Viewing all articles
Browse latest Browse all 18858