While trying to see if there was an easier way to run Silverlight pages via localhost instead of via the filesystem, I poked around with the new Silverlight Script Web project type in VS 2008. This allows me to run pages using localhost, but it’s a little weird: the attached “script” file is a .js file, not a .cs code-behind file as with the Silverlight Project template.
Check out the two different context menus for the XAML files in each project. Here’s the one in the Silverlight Project project:
And here’s the one in the Silverlight Script Web project:
When I try to manually copy over my XAML and HTML pages from the Silverlight Project to the Silverlight Script Web project, I get the following nasty error:
Which is probably fixable with some judicious configuration h4x but not at my current level of Silverlight knowledge.












