c# - XAML designer can't load resource file at design time -


we have 2 products share resource dll project. there 3 different resource classes in dll. 1 shared backend, second 1 product , last 1 other product.

one of products wpf windows application. application has static class called mycommands:

public static class carsystemcommands {      public static routeduicommand camerastatus { get; set; }      public static routeduicommand cancelchanges { get; set; }      . . .      static carsystemcommands() {         camerastatus = new routeduicommand( car.dashboard_camerastatus, "camerastatus", typeof( carsystemcommands ) );         cancelchanges = new routeduicommand( car.common_cancelchanges, "cancelchanges", typeof( carsystemcommands ) );         . . .     } } 

everything compiles , run fine.

now, have user control, call cameraconfiguration, in project uses same resource file. when view user control in xaml designer, displays fine.

the cameraconfigurtaion user control included in user control, call settingseditor. when view settingseditor in xaml designer, error:

exception: cannot create instance of "cameraconfiguration".

viewing various stack traces, 1 reads:

filenotfoundexception: not load file or assembly 'resources, version=5.1.15588.0, culture=neutral, publickeytoken=null' or 1 of dependencies. system cannot find file specified.

the resource project has default references. it's not referencing other dll or project.

as said, compiles & runs correctly. , control reporting problem displays fine when edit in designer.

does have ideas what's causing problem? or how fix it? it's annoying not able view control make changes it.

edit

since i've posted question, i've moved vs2012 vs2013, , vs2015. problem still happening!

i had similar problem. had used visual studio 2010 , had couple of solutions. in 1 of solution had controls , data model shared between other project. every time when rebuilded (not builded) project in other solution had error during desing time (application runs perfectly). had clear second solution , build once again. have visual studio 2012 , don't have errors type (and don't have type of solution).


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -