Silverlight 3 - Visual Studio Tools - silverlight

I am trying to get started doing some Silverlight development. I am interested in learning about the out-of-browser support. I can create and run Silverlight 3 applications just fine. I have confirmed that I have Silverlight 3 instead of Silverlight 3 Beta. I have been able to confirm this because my API list includes Application.InstallStateChanged instead of Application.ExecutionStateChanged.
However, I do not have the option to enable my application to run offline in Visual Studio. I can see this option in this blog post (http://johnpapa.net/silverlight/updated-silvertwit-code-for-msdn-magazine/). Unfortunately, I do not have the option shown or the Reduce XAP size option. I have downloaded the Visual Studio tools from here (http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&displaylang=en).
What am I doing wrong?
Thank you!

It looks like John Papa is using a new version of visual studio possibly the VS2010 beta.
Try this tutorial instead
http://wildermuth.com/2009/03/18/Enabling_Out-of-Browser_Support_in_Silverlight_3
or
http://blogs.msdn.com/katriend/archive/2009/07/10/silverlight-3-out-of-browser-applications.aspx

Corrupted Install
It looks like a corrupted install. Try uninstalling and then see Allen Chen's advice here:
http://silverlight.net/forums/t/83226.aspx including:
Silverlight3_Tools.exe /x:c:\temp /u to manually extract the SL 3 files and c:\temp\SPInstaller.exe to verify the tools install.
Use Blend
Also, If you have Blend 3 installed (preview here) you can enable Out of the Browser inside of Blend. See Project->Silverlight Project Options.

One thing might be that your Silverlight developer runtime got corrupted/overwritten. Try installing it once and see if it solves...
http://silverlight.net/getstarted/silverlight3/default.aspx

Related

27GB Size - Visual Studio

I have used PhpStorm my entire life but now I am very much inspired by AngularJS and ionic so I am learning to code hybrid mobile apps. I downloaded the Visual Studio and installed and it already had around 6GB.
Now I need to download additional Cross Platform Mobile Development package but it looks like I need to download additional 27GB.
Do I really need to download this huge file? I genuinely need from pros whether I need to download entire package or I can skip few. Internet speed sucks here in India and on the downloading another 27GB AngularJS 3 will be out.
Visual Studio
first of all absolutely you don't have to download all them plugin.. second if you want you caan use other good IDE as maybe Visual studio Code
https://code.visualstudio.com/
But if you want to use Visual Studio (as I'm doing ..but because i also develop the back end in Asp.Net WebAPI 2) .. you can skip the installation of (SO DON'T HAVE TO INSTALL) for ionic development:
C#/Xamarin (it's for develop other kind of Cross Platform Mobile Development .. not Hybrid)
Miscorsoft Visual Studio Emulator (you can use the Ionic tools from command line .. es: ionic serve --lab or also run it on your device and attach them to your browser to debug)

Can Surface SDK run on Visual Studio 2012?

I need to create a WPF app using the Surface SDK. I am using Visual Studio 2012, and according to this SO post, VS2012 doesn't allow that. However, since this was posted before it was officially released, I want to make sure I'm not missing something.
I just need a few of the touch/swipe controls that come with it. Is there a different option for VS2012? The other developer is using 2010, so it needs to be able to still run on his machine. It's a very simple app that I just need to hammer out, so I'm looking for the fastest, easiest method. Both of us and the end application is to run on Windows 7.
I found an easy solution by which it seems to work. It does expect you to have Visual Studio 2010 installed. Following the following steps I managed to compile in Visual Studio 2012 using .NET 4.5. TouchDown events work. I tried it out on some small projects and they seem to work perfectly fine.
Use Visual Studio 2010 to set up a Surface project.
Safe and close Visual Studio 2010.
Open the solution using Visual Studio 2012.
Change the target framework under project settings to .NET 4.5.
Save as a new solution file.
Compile, ... everything works!
This method prevents you from having to set up all the configuration files/references yourself. The only downside is you don't have any of the Surface tools integrated into the IDE. E.g. the toolbox, project templates, ... This of course doesn't prevent you from writing plain XAML yourself.
If for some reason this doesn't work in the long run I will update this post.
The easiest way will unfortunately be for you to run VS2010.
Currently the SDK is not supported in VS2012, for a few reasons.
Notably, the way that touch works in Win8 is a lot better than in previous versions of Windows. This unfortunately meant a rewrite of the touch layer that the Surface SDK uses. The new controls are written to adapt dynamically based on mouse/touch input, making the Surface SDK controls a bit redundant.
Microsoft might make the SDK available for VS2012 in the future, but this is kind of debatable.
If you are still dead set on giving it a shot, download an application called Orca (http://msdn.microsoft.com/en-us/library/windows/desktop/aa370557(v=vs.85).aspx) and edit the SDK installer file, removing the dependency on VS2010.
This is how I got the Surface 1 SDK to work with VS2010, since it was targeting VS2008 (note that it still has not been updated to work with VS2010)
Let me know how you go.

unable to find a version of silverlight developer runtime installed

In the following environment:
-VS2012
-Windows 7 64bit
-Microsoft Silverlight 5 SDK
I have created a few lightswitch applications in VS2012 but I am running into an error when attempting to create a new one or open an existing lightswitch project. I receive a pop-up that says "unable to find a version of silverlight developer runtime installed".
There is a link on the pop-up which starts a download but after downloading it, I still receive the same error.
I was able to fix the issue by doing the following :
I went into "Uninstall a program" and noticed that I had 4 different Silverlight related items installed.
Microsoft Silverlight
Microsoft Silverlight SDK3
Microsoft Silverlight SDK4
Microsoft Silverlight SDK5
I just uninstalled the first item, "Microsoft Silverlight" then reinstalled the appropriate (32 or 64 bit) Microsoft Silverlight SDK5 from the following link: http://www.silverlight.net/downloads .
Don't use the link that is given in VS 2012. Doesn't work.
I have a slight different solution for Visual Studio 2010. After uninstall the current Silverlight Runtime, I got it to work if I download it from Visual Studio suggested url.
The best way I have found to find the most current Silverlight 5 Developer Runtime or End-User Runtime, is to search the downloads for the latest Silverlight bits. All other suggestions seem to take you on a wild goose chase depending on what version of Visual Studio or OS you are using.
Search Microsoft Downloads
Just look for the latest "Security Update for Microsoft Silverlight" entry.
The Silverlight Security Update KB2890788 is what fixed it for me, after trying uninstall and re-install without success.

Installing Silverlight 4 Toolkit without Visual studio 2010 (for build server)

I have just been informed that the Silverlight 4 Toolkit (latest download) requires the prior installation of VS 2010.
We are setting up an automated build server for a very large Silverlight Prism project and would prefer not to do a full install of VS 2010 on an unmanned build machine.
Is VS 2010 actually required for an install of the Silverlight 4 Toolkit?
Why is it required?
Is it possible to work around this (copy specific pieces from another Dev machine?)
Thanks in advance for any information.
The problem with this is that it doesn't install the msbuild tasks. I have found that it is possible to install just the SDK by extracting it from the tools download. For details see here: http://neilsleightholm.blogspot.com/2010/09/building-silverlight-4-applications.html.
Don't install the Toolkit at all. In these large controlled scenarios you would probably want to copy the toolkit dlls to folder owned by your change control system anyway.
Ultimately the toolkit is just a set of dlls. On install it does other things to make using it as a developer convenient in VS and Blend but it has no special requirements at build time.

What tools do I need to do Silverlight development?

I already own Visual Studio 2008 Team Version, and have an MSDN subscription...and I am an experienced ASP.Net developer.
What do I need to install to do Silverlight development, and can all of those tools be installed alongside my current "production" development machine (want to make sure there will not be any side effects).
I know I want to learn silverlight, but its not clear to me which tools are required and/or recommended in order to get started...
Thanks.
Download the Silverlight 2.0 SDK and Visual Studio 2008 Tools
Microsoft® Silverlight™ 2 Software Development Kit
Microsoft® Silverlight™ Tools for Visual Studio 2008 SP1
Check here for the links
http://www.microsoft.com/downloads/details.aspx?FamilyId=4E03409A-77F3-413F-B108-1243C243C4FE&displaylang=en
Another great resource is the original:
http://www.asp.net/downloads/
AND
http://silverlight.net/GetStarted/
Hope this helps:
Andrew :-)
This link has pretty much every thing you need.
If you're already comfortable with VS development, you can just develop Silverlight in VS by downloading the Microsoft Silverlight Tools for Visual Studio 2008.
If you're more of a designer than devloper, then Microsoft Expression Studio may be better for you.
Follow the steps here:-
http://silverlight.net/GetStarted/
I have no problems using this stuff side-by-side with my regular development
Silverlight.net is a good place to start. All the tools are finalized so you should be able to install all things silverlight and be fine.
I am also trying to get started with Silverlight development.
Here is how I was getting started.
1.) To set up development environment: Getting started with Silverlight
2.) Web Sites to keep up with.
MSDN Silverlight Development Center
Shawn Wildermuth: He has turn from an ADO guy to a Silverlight guru/trainer.
Scott Gu's Silverlight tagged stories
I have Visual Studio 2003/5/8(+Resharper 4.1) installed on my machine along side siliverlight SDK and Expression Suite.
So far I have not seen any side effects even after installing all those tools on my dev machine after few months.
You can use Silerlight Spy to view the 'reflected' source code of any Silverlight application on the web. But, you can also use it to validate the structure of the components in your running application. The debugging experience reminds me of working with Firebug while trying to decipher the viusal structure of a web page.
In addition to the visual studio stuff, you should probably get blend and all of it's service packs.

Resources