Ignoring .xaml files from being built?
Is there a way to ignore .xaml files from being built? I have sample xaml data files built from our view models (generated via blend using sample data) and Noesis doesn't like building them. It keeps giving errors saying:
System.MissingMethodException: No constructor found for IQ.MySuperAwesomeViewModel::.ctor()
at System.Activator.CreateInstance
Even if I create an empty constructor, it still gives the same error. If we can just ignore these files then it wouldn't be a problem.
System.MissingMethodException: No constructor found for IQ.MySuperAwesomeViewModel::.ctor()
at System.Activator.CreateInstance
Even if I create an empty constructor, it still gives the same error. If we can just ignore these files then it wouldn't be a problem.
Re: Ignoring .xaml files from being built?
Right now, there is now way to ignore XAMLs. Although it is not a very critical problem because it doesn't block you for executing your application.
The way other users are doing is using #if to share the .cs between Blend and Unity. I don't understand why you are getting that error if your class provides a constructor. Is it set as public?
The way other users are doing is using #if to share the .cs between Blend and Unity. I don't understand why you are getting that error if your class provides a constructor. Is it set as public?
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 11 guests