locked
Only .net v2 assemblies available? RRS feed

  • Question

  • Hey there.  I'm working on a game and I have the server side to the point where it does something useful and I want to create and hook up a client.  

     I'm using visual studio web express 2008 and when creating Silverlight projects the only .NET assemblies available are v2.0.5.0...  I've got .net 3.5 and silverlight 3 sdk installed.

    I see people talking about using various features in Silverlight 3 like WriteableBitmap.Lock() but this doesn't seem to be available in this version of the dll...

    Any ideas?

     

    Tuesday, December 29, 2009 1:34 PM

Answers

  • Lock was removed before the Silverlight 3 release, it was in the beta. Same for pixel formats. You don't need to use it, just ignore it. 

    Wednesday, December 30, 2009 9:36 PM

All replies

  •  Have you installed Silverlight toolkit? for some controls you need to add assembly ref.

    go through http://www.silverlight.net/getstarted/

     

    Tuesday, December 29, 2009 5:26 PM
  • WriteableBitmap.Lock is in the System.Windows.Media.Imaging namespace

     

    http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap.lock.aspx

    Tuesday, December 29, 2009 5:26 PM
  •  What I mean to say is that I'm using System.Windows.Media.Imaging and I create a WriteableBitmap but it doesn't have a Lock() method on it.  If you check out http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap_methods%28VS.85%29.aspx and http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap_methods%28VS.95%29.aspx you can see that there is no Lock(). 

     Looking About Visual Web Developer 2008 it claims it's using .NET 3.5 SP1.

     Checking out the docs there the Silverlight 3 version says it doesn't have a Lock() in it, which would explain this problem but people claim it should work so I guess I'm doing something wrong...

    Tuesday, December 29, 2009 9:38 PM
  • Not sure where you are reading that but a Lock method does not exist for WriteableBitmap, why do you need it?

    Also, .NET assemblies for Silverlight 3 are 2.0.5, don't get too caught up in the file version number. As long as you install the Silverlight 3 SDK you are all set.

    Why don't you explain what you are trying to accomplish and we can try and help you out.

    Tuesday, December 29, 2009 10:34 PM
  •  I'm starting work on the UI portion of my game client.  I searched around for some silverlight game tutorials before I found this forum and stumbled on sites like http://community.irritatedvowel.com/blogs/pete_browns_blog/archive/2009/03/18/Silverlight-3-_1320_-The-Bitmap-API-_2F00_-WriteableBitmap.aspx and http://www.wintellect.com/CS/blogs/jprosise/archive/2009/03/23/silverlight-3-s-new-writeablebitmap.aspx which didn't compile due to Lock() and PixelFormats.

    It looks like those were bad examples but I don't understand how they compile for the authors.  Anyway, it looks like this forum is a better resource so I'll search around in the archives.

    Thanks!

    Wednesday, December 30, 2009 1:18 AM
  • Lock was removed before the Silverlight 3 release, it was in the beta. Same for pixel formats. You don't need to use it, just ignore it. 

    Wednesday, December 30, 2009 9:36 PM