×

First time here?

You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting!

Well today was the public release of Visual Studio 2010 Beta 1.  It is the first time developers will have the chance to take it for a spin and kick the tires.  I wanted to share some information specific for Silverlight developers with regard to Visual Studio 2010 Beta 1.

Visual Studio 2010 is the first IDE that will support two key features for Silverlight developers: multi-targeted Silverlight development and editable design surface for Silverlight.  The second point also comes with things you might expect (like data binding wizards and dialogs as well – I’m lumping all of that in to ‘editable design surface’).  To get started there are a few things you should know.

First, if you are installing from a “clean” environment (perhaps a virtual machine, etc.) and want the multi-target support, here’s what you’ll do:

  1. Install Visual Studio 2010 Beta 1
  2. Install Silverlight 2 SDK (if you attempt to run the Silverlight 2 tools installer it will fail with an error message…just install the SDK).
  3. Install Silverlight 3 Beta SDK (again, don’t attempt the tools installer as it will fail)
  4. Install Silverlight 3 Beta Developer Runtime

Once you have done this, you now have a Silverlight 2 and 3 development machine for Visual Studio 2010 Beta 1.  Congratulations!

Hey, where’s my multi-targeting?!

Be patient.  When you create a new project you’ll see just the standard Silverlight application templates.  Select that first and then you will see the multi-target option in the next dialog:

Visual Studio 2010 Silverlight multi-targeting

Once you select this option you will be starting development using that runtime version.  So remember, it is after you select a Silverlight project type.  If you want to change the target version runtime after you’ve created a project, just right-click on the Silverlight project, choose the properties and you’ll see Target Silverlight Version and can change it there.

What about the editable design surface?

Once you have a Silverlight project ready, you can use the design surface for editing and dragging/dropping UI elements, arranging layout, etc.:

You can also now select items on the design surface and manipulate binding or other properties in the ‘normal’ Visual Studio way (property panes, dialogs).

Hey, what happened to my Silverlight Templates…and what about .NET RIA Services?!

For right now in Visual Studio 2010 Beta 1, the Silverlight Navigation Application template is not available as a part of the SDK installer (it’s actually a part of the tools installer…which you can’t run for VS2010 Beta 1).  If you want that template, just export one from Visual Studio 2008 and import it into this environment.  It will then show up under the My Templates section.

.NET RIA Services also will not install for VS2010 Beta 1 right now.  So if you want to play around with those bits, stick to VS2008 SP1.

Both of these are known and will be resolved in the future.  Hopefully you understand that the products are in varying beta stages (VS2010, Silverlight 3 and RIA Services) and are not in sync right now.  Kind of a pain, but it’s the sting of early adoption I suppose.

My Recommendation

So what should you do?  Well I do think you should try Visual Studio 2010 and play around with it.  If you need RIA Services development, then stick with Visual Studio 2008.  If you have the ability to run a second machine or a virtual machine, I recommend putting Visual Studio 2010 in that environment.  For Silverlight 3 we will be targeting VS2008 SP1 for release.  Obviously the team is working on supporting VS2010, but for beta 1, we just couldn’t get it in time.  So I’d personally recommend sticking with VS2008 as your primary dev environment for all Silverlight 3 goodness…and run VS2010 in a separate space to play around with. 

Hope this helps!


This work is licensed under a Creative Commons Attribution By license.


5/20/2009 5:26 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Hey Tim,

Any chance we can share files between SL and WPF without linking, or the dreaded project linker?

This has been causing havoc on TFS Build Triggers.
5/20/2009 5:41 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Todd -- I think you're still in linking land at this point :-)
5/20/2009 5:47 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Tim,

What about opening projects that were built on SL2? Will this just naturally configure itself in VS2010?
5/20/2009 7:46 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Tim, I installed VS 2010 and it shows SL template in it, thing is, I already have SL3 and VS 2008 on my machine, still it asking me to install SL 2 SDK, Do I need to install this again for VS 2010 though I want to work only on SL 3?
5/20/2009 8:23 PM | # re: Silverlight and Visual Studio 2010 Beta 1
@Vikram, here's my story for Silverlight 2 and 3 on VS10, also even VS08.
I'm not sure it'll be fine for complicated project, but good enough for demos at least 'yet'.
5/20/2009 8:25 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Oops, I forgot the link, http://gongdosoft.com/411
Cheers.
5/20/2009 9:13 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Everett -- we'll likely need an update to VS2010.

Vikram -- if you only want SL3 you shouldn't...just the SL3 SDK and runtime.
5/20/2009 9:41 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Matthew if you open an SL2 solution it will prompt you for the standard VS solution conversion/upgrade wizard, then ask you if you want to upgrade the web project (if one is a part of the solution) to .NET 4. The Silverlight project will remain SL2 targeted until you change it.
5/20/2009 10:04 PM | # re: Silverlight and Visual Studio 2010 Beta 1
.net RIA services is a important for me, so I hope that will be available in the very near future for Visual Studio 2010. In the meantime, I've already filed five bugs and one suggestion...
5/20/2009 10:08 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Thanks Tim, thanks Gongdo for your help.
5/21/2009 4:18 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Is there any news when SL3 will be released?
5/21/2009 9:03 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Ronald we haven't released any updated dates yet.
5/21/2009 1:40 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi Tim,

I got following exception for newly created Silverlight 2.0 project:

"Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

As far as I understand the reason is that I replaced the file mentioned in the exception by the newest one from Silverlight 2 DataGrid December 2008 Release
(www.microsoft.com/.../details.aspx).

Bug fixes provided in the release are really crucial ones and I would like to stick with the newest version of the file.

Is there any chance to force VS 2010 seek the new version of the file instead of the old one?

Thanks in advance.
5/21/2009 6:34 PM | # re: Silverlight and Visual Studio 2010 Beta 1
I am not currently involved in any sl2 projects and probably won't be. I'd like to focus on: sl3, .net ria services, and the new editable design surfaces. Is that a combination that just isn't possible now, because the sl3 editable design surfaces are vs2010 only, and .net ria services are not really ready for testing with vs2010?
5/21/2009 8:14 PM | # re: Silverlight and Visual Studio 2010 Beta 1
blanken -- I think trying out VS2010 is great. If you are going to be working on SL3 and RIA services, I'd stick with VS2008 for now. Perhaps another beta release of VS2010 later will enable these, but for right now VS2008 is the ideal dev environment for what you're asking for.
5/21/2009 9:38 PM | # re: Silverlight and Visual Studio 2010 Beta 1
5/22/2009 1:00 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi,
it looks like after installing vs2010, Microsoft.Windows.COntrols.dll was removed and I had to change the namespace for my WrapPanel to point to system.windows.control. Are there any other changes to the silverlight SDK when vs2010 is installed?
5/23/2009 4:01 AM | # UriMapper
Hi Tim,
I installed VS10 and had both Silverlight Version on my PC. As i Used the UriMapper in SL3, Vs 10 told me:

Error 1 The type 'UriMapper' does not support direct content.

How can i fix this problem?

Thx

P.S.:Great work on all your Silverlight.net/learning vids :D
5/24/2009 1:48 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Jerod - actually WrapPanel was moved in the SL3 beta. Perhaps you were using an old version of the toolkit. But WrapPanel is an SL3 SDK control now in that namespace.

Alexander - UriMapper only supports UriMapping nodes
5/25/2009 2:07 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Yeah i know, but if i write this code(with correct added references):

<navcore:UriMapper x:Key"uriMapper">
<navcore:UriMapping Uri="Home" MappedUri="/Views/Home.xaml">
</navcore:UriMapper>

it gives me this error.may i should uninstall all VS Web dev versions and Silverlight and reinstall only VS10, i had VS 08 with SL3 installed, and then i installed VS10 may this is why it makes the error.

P.S.:Sorry for my worst english, i am a 17 years old german ;D
5/25/2009 7:54 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Alexander -- make sure you have the self closing tag on your UriMapper nodes (above doesn't have that). Also make sure you have x:Key= (you are missing the = character above). It could be a VS10 issue as well, because based on what you have (if those above are only typos) it looks correct.
5/26/2009 2:44 PM | # re: Silverlight and Visual Studio 2010 Beta 1
@Alexander Trefz: I can confirm that the UriMapper appears to be broken after installation of VS2010. I just checked Tim's original NavigationSample demo and it produces precisely the above error.
5/27/2009 5:45 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Alexander - - I was getting the same error. But you'll notice that the blue underline only appears on the first node. The appliction will build and work ok despite this. I'm guessing this is a wee bug in the intellisense or something.
6/5/2009 6:58 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Tim, I can build a SilverLight application in VS10, but when I run it I get a javascript error:
"Error: Sys.InvalidOperationException: InitializeError error #2105 in control 'Xaml1': Failed to load pre-requisites for the application"
I uninstalled the silverlight stuff I had, then reinstalled in the order you specified (twice), but it won't work. Any ideas?
(The asp:Silverlight tag in the test page has this property: MinimumVersion="3.0.40307.0")
6/5/2009 8:07 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Mike -- use the object tag instead of asp:silverlight
6/8/2009 11:41 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Thanks Tim. Unfortunately using the object tag throws the same error.
6/13/2009 9:22 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Tim, Could you please let me know in which version of VS2010 will RIA Services be supported? Will it be supported in beta 2?

Thanks!
6/18/2009 1:11 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Tim - I'm really jonsing for VB10's multi-line lambdas. Any idea when I'll see that in SL?
7/1/2009 3:28 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Ok, I gave it a shot... VB10 multi-line lambdas won't compile in VS2010 targeting SL3. This is what I expected. rats...
8/19/2009 4:52 AM | # re: Silverlight and Visual Studio 2010 Beta 1
I have followed the steps you have mentioned in installing the VS 2010 beta and SL3
When i run the application i get the error below

"Unable to start debugging. The Silverlight managed debugging package isn't installed."
8/19/2009 6:28 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi Tim,

I too have installed VS 2010 as well as SL3 following the steps you have mentioned.

When I run a SL3 application hosted in a web application (even, just created the project and tried running), I am getting the same error as Kannan mentioned.

Error:
"Unable to start debugging. The Silverlight managed debugging package isn't installed."

Looking for your kind support..! :)
8/19/2009 6:31 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Hilberd/Kannan -- this indicates that the *developer* runtime wasn't installed. You need to make sure the developer runtime is installed and not the end-user one. Also, Silverlight 3 and VS 2010 Beta 1 isn't supported which will run into several issues.
8/20/2009 2:51 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi Tim,

The issue is now solved. I uninstalled all previous versions of silverlight tools and SDK and I again re-installed in the order you mentioned.

Thanks for your help.

Thanks,
Kannan
8/20/2009 3:36 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi Tim,

Thanks for your help..!

It works well now..! :)
Thanks,
Hilbert V
8/29/2009 7:34 PM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi Tim,

Thanks for your help and tips.

Thanks,
Ubaid
10/2/2009 3:15 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi Tim,

After installing Visual Studio 2010 Beta1 and Silverlight 2 SDK, Silverlight 3 Beta SDK and Silverlight 3 Beta Developer Runtime as you described above, I get a error message when I try to create a new Silverlight 3.0 project.

The error message: "The version of the Silverlight plug-in installed on your system is no longer Valid." ; and then it says to go to some url which does not solve anything. (http://go2.microsoft.com/fwlink/?linkid=128377)

Here it says to upgrade to the latest version, but when I do it it says it is not possible because "Your Silverlight developer components are out of date."

The exception stack in VS 2010 looks like this:

at Microsoft.Expression.Platform.Silverlight.Host.SilverlightControlSite.ActivateControl()
at Microsoft.Expression.Platform.Silverlight.Host.SilverlightControl.CreateControl()
at Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainCore()
at Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainInitial()
at Microsoft.Expression.Platform.Silverlight.SilverlightPlatformCreator.Initialize()
at Microsoft.Windows.Design.Platform.SilverlightPlatformFactory.Initialize(PlatformService service, IMetadataContext metadata)
at Microsoft.Windows.Design.Platform.PlatformLoader.InitializePlatformFactory(String platformProfile, String targetMoniker, IMetadataContext metadata)
at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.InitReferencedAssemblies(AssemblyName localAssemblyName, AssemblyName[] assemblies, RegistryKey registryRoot, FrameworkMultiTargetingProxy frameworkMultiTargeting, String targetFrameworkMoniker)
at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.InitReferencedAssemblies(AssemblyName localAssemblyName, AssemblyName[] assemblies, RegistryKey registryRoot, FrameworkMultiTargetingProxy frameworkMultiTargeting, String targetFrameworkMoniker)
at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy, AssemblyReferenceProvider assemblyReferences, IEnumerable`1 assemblyFolders)
at MS.Internal.Providers.VSDesignerContext.GetIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy, AssemblyReferenceProvider assemblyReferences, Boolean isSilverlightProject)
at MS.Internal.Providers.VSDesignerContext.GetIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy, AssemblyReferenceProvider assemblyReferences)
at MS.Internal.Providers.VSDesignerContext.Initialize(IServiceProvider provider, IVsHierarchy hierarchy, UInt32 itemid, Object docDataObj)
at MS.Internal.Providers.VSDesignerContext..ctor(IServiceProvider provider, IVsWindowFrame frame, Object docDataObj)
at MS.Internal.Providers.VSDesignerContext.GetContext(IServiceProvider services, IVsWindowFrame frame, Boolean createIfNotExist)
at MS.Internal.Designer.DesignerPane.InitializeDesigner()

I am just trying to do some test application with VS 2010 and Silverlight 3.
The main reason why I do not use 2008 is because it lacks the editable design surface.

Hope there is a fix for this,

Thanks,
Valentin.
10/2/2009 7:44 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Yes, the error is valid because Silverlight 3 BETA has expired. Unfortunately VS2010 Beta 1 does not support the release of SL3. You'll have to use VS2008 if you want to use SL3 release. VS2010 Beta 2 (which isn't out yet) will support SL3 release.
10/22/2009 8:41 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Tim, is there a change to what you need to do to get multi target to work? I tried the steps above with the Silverlight 2.0 and 3.0 SDK's and SL 3.0 dev runtime and still only have SL3.0 option. Uninstalled and reinstalled from scratch and same deal.
any ideas?
S.
10/22/2009 9:17 AM | # re: Silverlight and Visual Studio 2010 Beta 1
Hi Stephen -- Silverlight 2 is not supported in VS2010 for development.
11/17/2009 12:09 PM | # re: Silverlight and Visual Studio 2010 Beta 1
thx Tim,
but my project in the collage is in the silverlight
im using microsoft expression blend 3
but i dont know how i will add my silverlight application to the asp.net site
can u help me?
11/25/2009 9:25 PM | # re: Silverlight and Visual Studio 2010 Beta 1
I am using VS 2010 Beta 1 Developing Silverlight 3 Application usign RIA Service.
-- I can see Silverlight Templates in Project Template Gallery, without any customization
-- RIA Service (made for VS2008) seems not working ,(Builds but does not invoke operations), so will try to use VS 2010 Beta 2 with RIA Service Latest.

-- Soumen, India
2/27/2011 1:25 AM | # re: Silverlight and Visual Studio 2010 Beta 1
how to use visual studio 2010 & silver light application

 
Please add 2 and 2 and type the answer here:

DISCLAIMER:

The opinions/content expressed on this blog are provided "ASIS" with no warranties and are my own personal opinions/content (unless otherwise noted) and do not represent my employer's view in any way.