Page view counter
VS2008 RTM Intellisense for Silverlight 1.0
Last post 12-01-2007 3:44 PM by swildermuth. 7 replies.
Sort Posts:
11-22-2007 4:32 AM
VS2008 RTM Intellisense for Silverlight 1.0

Hi

 I've just installed Visual Studio 2008 RTM release yesterday and was looking to start experimenting with Silverlight 1.0. I've installed the Silverlight Javascript Application project template and it shows up fine in VS2008. I've also copied the silverlight.xsd schema file in the %vs installroot%\Xml\Schemas directory

The problem is that Intellisense doesn't seem to work while working on XAML files. I use the XML editor to edit .xaml files, but the only choices the Intellisense menu provides are the usual "<!--", "<!CDATA[" and "<?". What am I missing?

 

skunks

Loading...
Joined on 11-22-2007
Posts 5
11-23-2007 7:02 PM
Re: VS2008 RTM Intellisense for Silverlight 1.0

Two things:

  • There is a Silverlight.xsd that you might need to manually install in the Schema's directory (Google it, its easy)
  • Or, perhaps your .xaml files are opening in the Cider designer (the WPF Designer).  You can tell this if it is trying to render it in a split pane.  If that's the case, right-click the file and pick, "Open With..."...then pick the "XML Editor".  You can use "Set Default" if you want XAML to always open in the XML editor (like I do, even for WPF).

HTH

(If this has answered your question, "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 2 Workshop
November 19-21, 2008 - Seattle, WA
December 1-3, 2008 - Dallas, TX
http://silverlight-tour.com

swildermuth

Loading...
Joined on 10-13-2003
Atlanta, GA
Posts 1,246
11-24-2007 8:47 AM
Re: VS2008 RTM Intellisense for Silverlight 1.0

Well, that's exactly what I'm doing.

  1. I copied the Silverlight.xsd file in the schemas directory ('C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas' to be exact).
  2. I'm using the XML Editor to open the file.

No luck - Intellisense doesn't give me anything. The .xsd file is even listed int XML Schemas list.

What else? I am using Visual Studio 2008 Development Edition RTM. I had Beta 2 installed before that.

I am mainly a Windows programmer, I'm fairly new to Web development. Can somebody explain how does the XML Editor associate the .xsd schema with a particurlar file?

skunks

Loading...
Joined on 11-22-2007
Posts 5
11-25-2007 11:22 PM
Re: Re: VS2008 RTM Intellisense for Silverlight 1.0

The xmlns in the XAML files look for the targetSchema in the .xsd file.AFAICS there is a wpfe.xsd file that is shipped with VS 2008 but that's an old schema.  I just updated it on my machine (just to be safe) with the silverlight.xsd that is in the sdk.  Once I did that it started to fail on me too.  I'll look further at this and try to see what is happening.  I would guess that when 1.0 support in 2008 is finally added (soon I hope) that it will be fixed.

(If this has answered your question, "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 2 Workshop
November 19-21, 2008 - Seattle, WA
December 1-3, 2008 - Dallas, TX
http://silverlight-tour.com

swildermuth

Loading...
Joined on 10-13-2003
Atlanta, GA
Posts 1,246
11-26-2007 2:28 AM
Re: Re: VS2008 RTM Intellisense for Silverlight 1.0

Thanks for your relpy, Shawn. If you do find something that might work before an official release hits, please let me know.

As for me, I'm giving up - tonight I tried reinstalling Visual Studio 2008 (kept me up only till 3 A.M.) only to find that Intellisense still doesn't work. Thought it might have something to do with Beta 2 being intalled before the RTM. That obviously isn't it, because tried it on my workstation at work this morning - the same effect. I'm beginning to wonder am I really the only one with this problem (the same effect on two different machines - suspicious).

Well, I could do without Intellisense, but it does make things easier to learn (which is what I'm looking for). I still have VS2005 - I'm going to stick with that for Silverlight for the moment.

skunks

Loading...
Joined on 11-22-2007
Posts 5
11-26-2007 8:28 PM
Marked as Answer
Re: Re: VS2008 RTM Intellisense for Silverlight 1.0

The silverlight tools refresh for Visual 2008 RTM <shamlessplug> that can be downloaded from http://www.microsoft.com/downloads/details.aspx?FamilyId=25144C27-6514-4AD4-8BCB-E2E051416E03&displaylang=en </shamelessplug> includes a website template for xaml, and the intellisense schemas for working with silverlight 1.0.

samsp

Loading...
Joined on 08-08-2002
Posts 96
11-27-2007 2:49 AM
VS2008 RTM Intellisense for Silverlight 1.0

 

Great news! Just tried it out - Silverlight 1.0 XAML Intellisense works beautifully. I'll be playing around. Thanks for the update!
skunks

Loading...
Joined on 11-22-2007
Posts 5
12-01-2007 3:44 PM
Re: VS2008 RTM Intellisense for Silverlight 1.0

After installation of Silverlight 1.1 tools, it still didn't work for me but that was because I had dropped the SIlverlight.xsd into the xml/schemas directory.  The Tools added the wpfe.xsd and when there are two schema with the same namespace, VS doesn't do intellisense (it won't guess which is right).  Deleted one of the schema files and I was right as rain.

(If this has answered your question, "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 2 Workshop
November 19-21, 2008 - Seattle, WA
December 1-3, 2008 - Dallas, TX
http://silverlight-tour.com

swildermuth

Loading...
Joined on 10-13-2003
Atlanta, GA
Posts 1,246
Microsoft Communities