Freitag, 24. September 2010

MVVM with WPF and Silverlight

Thanks to everybody who attended to my BASTA talk. I hope you enjoyed the session as much as I did. As promised I provide you with a download of the final stage of the last demo (which should include all the stuff that we have done) and the slides.

If you think that anything is missing or you have any question, do not hesitate to leave a comment or to contact me otherwise.

Have fun with MVVM!

Mittwoch, 8. September 2010

SlSvcUtil does not generate code in Silverlight 4

I had a weired error today. We generate some of our Silverlight proxies using batch files calling slsvcutil (C:\Program Files\Microsoft SDKs\Silverlight\vX.0\tools). With Silverlight 3 everything was fine. After switching to Silverlight 4 the tool stopped generating code without any comment.

Found the solution here.

Simply put a SlSvcUtil.exe.config side by side with the exe with the following content:


<configuration>
  <satelliteassemblies>
    <assembly name="SlSvcUtil, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </satelliteassemblies>
</configuration>

And immediately it works like a charm!

Have fun!