Good afternoon, there was a sudden problem, can anyone come across.

I created a separate assembly for a large project under wpf, it uses prism 4, I write a normal ViewModel, from the point of view of the static analyzer - everything is in order, when compiling the assembly, the compile error csc.exe , without any additional data.

When you delete the DelegateCommand , the assembly starts compiling; when using NotificationObject and ICommand , everything is fine too, but as soon as I announce DelegateCommand is a compilation error. Maybe you need some kind of assembly to further tighten? About which neither the studio analyzer nor the resharper knows?

  • And what is the compilation error? - VladD
  • And how exactly do you remove DelegateCommand ? You mean Microsoft.Practices.Composite.Presentation.DelegateCommand , right? - VladD
  • DelegateCommand from Microsoft.Practices.Prism.Commands , right in the source zakomentil, yuzing left. error "csc.exe", everything, no details on it, not even an error code - Andrei
  • Well, do a full rebuild. And why did you need to modify the Microsoft source code? Where did you get the idea to comment out DelegateCommand ? - VladD
  • Why modify the ms sources? This is my twist of the model, there is nothing special in it, I began to remove everything specific to wpf, so that it compiles, by means of an exception, it localizes the problem. Solution completely cleaned, build, did not help. - Andrei

1 answer 1

It was necessary to connect the reference PresentationCore