Silverlight with Visual Studio .NET 2005

Could Silverlight 1.1 assemblies be generated with Visual Studio .NET 2005? Well, if you read the GetStarted page of Silverlight you see only upcoming Visual Studio codename Orcas as development platform.

Bryant asked this in the Silverlight forum and got a great answer from Scott Louvau. He replied:

Well, in VS2005 you can create a class library which will build against the Silverlight runtime, but it's a little work.

  1. Create a Class Library.
  2. Remove all references from it.
  3. Right-click on the Project and pick Properties.
  4. On the Build tab, click Advanced and check 'Do not reference mscorlib.dll'
  5. Manually add references to mscorlib, agclr, System, System.Core, System.Silverlight, and System.Xml.Core from the Silverlight install folder (\Program Files\Microsoft Silverlight\)

At this point your build outputs should be Silverlight consumable binaries. It looks like the equivalent command line call to csc.exe (the C# compiler) should include the references to the mentioned binaries and the /nostdlib option but may require others as well.

You will find an Hello World example on Bryant's blog here. Feel free to download it and try it with Visual Studio .NET 2005. Don't forget to first install Silverlight 1.1.

Do you want to try it with Notepad? Read my blog how to compile it without any Visual Studio .NET installed.

Published Monday, June 04, 2007 7:37 AM by Michael Schwarz

Comments

# » Silverlight with Visual Studio .NET 2005

Monday, June 04, 2007 2:55 AM by » Silverlight with Visual Studio .NET 2005

Pingback from  » Silverlight with Visual Studio .NET 2005

# Link Listing - June 4, 2007

Tuesday, June 05, 2007 1:28 AM by Christopher Steen
Extending the Notification Pattern Example [Via: Bil Simser ] Silverlight Surface Demonstration (Video...

# Tech.Ed 2007 bits - Silverlight + Acropolis « Grumpy Wookie

Pingback from  Tech.Ed 2007 bits - Silverlight + Acropolis « Grumpy Wookie

# BlogZaa » Blog Archive » How to create Silverlight Applications with Notepad

Pingback from  BlogZaa  » Blog Archive   » How to create Silverlight Applications with Notepad

# Silverlight development is cool!! : Goedvriend .NET

Tuesday, June 19, 2007 5:04 AM by Silverlight development is cool!! : Goedvriend .NET

Pingback from  Silverlight development is cool!! : Goedvriend .NET

# 用Visual Studio .NET 2005开发silverlight

Friday, July 13, 2007 11:54 PM by 小春

很早之前就想使用Silverlight 1.1。但是,目前它只支持orcas(vs2008),而且文件其大无比。考虑硬盘大小,只能望silverlight兴叹。

# [导入]用Visual Studio .NET 2005开发silverlight

Monday, July 23, 2007 1:47 AM by sdav

很早之前就想使用Silverlight1.1。但是,目前它只支持orcas(vs2008),而且文件其大无比。考虑硬盘大小,只能望silverlight兴叹。前几天看到篇BLOG日志,讲解如何使用v...

# Silverlight Project Template for Visual Studio 2005 | Circles and Crosses

Pingback from  Silverlight Project Template for Visual Studio 2005 | Circles and Crosses

# My Silverlight 1.1 Hello World Application » Chinh Do

Wednesday, October 10, 2007 6:57 PM by My Silverlight 1.1 Hello World Application » Chinh Do

Pingback from  My Silverlight 1.1 Hello World Application » Chinh Do