{"id":4394,"date":"2008-06-06T14:59:18","date_gmt":"2008-06-06T14:59:18","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2008\/06\/06\/whats-new-with-silverlight-tools-beta-2\/"},"modified":"2008-06-06T14:59:18","modified_gmt":"2008-06-06T14:59:18","slug":"whats-new-with-silverlight-tools-beta-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/whats-new-with-silverlight-tools-beta-2\/","title":{"rendered":"What\u2019s new with Silverlight Tools Beta 2!"},"content":{"rendered":"<\/p>\n<\/p>\n<p>A number of great improvements and changes were made for Silverlight Tools Beta 2. The following list summaries some of the major changes with details on each below.<\/p>\n<ol>\n<li>WCF templates for Silverlight Enabled.<\/li>\n<li><font color=\"#000000\">Build configurations. <\/font><\/li>\n<li><font color=\"#000000\">XAML Validation now reports build errors.<\/font><\/li>\n<li><font color=\"#ff8040\"><font color=\"#000000\">Setup Improvements. <\/font><\/font><\/li>\n<li><font color=\"#ff8040\"><font color=\"#000000\">Projects created in Beta 1 are prompted for conversion when opening to Beta 2.<\/font><\/font><\/li>\n<li><font color=\"#000000\">Linking a Web Site to a Silverlight Application. <\/font><\/li>\n<\/ol>\n<p><strong><font color=\"#ff8040\">1. WCF Templates for Silverlight Enabled.<\/font><\/strong><\/p>\n<p>WCF templates are now enabled for Silverlight. If you want to add Web Services to your Silverlight application, this is the route to go. To do this, right click on your web site node in the Solution Explorer and choose \u201cAdd New Item\u201d.<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_5.png\"><img decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"176\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb.png\" width=\"332\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p>This will bring up the \u201cAdd New Item\u201d dialog. Choose the template \u201cSilverlight-enabled WCF Service\u201d.<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_11.png\"><img decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"373\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_2.png\" width=\"561\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p>In order to add a reference from your Silverlight Application to the newly created service right click on your Silverlight application node in the Solution explorer and choose \u201cAdd Service Reference\u201d.<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_23.png\"><img decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"299\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_3.png\" width=\"302\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p>From the \u201cAdd Service Reference\u201d dialog click the \u201cDiscover\u201d button and click the \u201cOK\u201d button after selecting your service.<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_31.png\"><img decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"396\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_5.png\" width=\"484\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p><strong><font color=\"#ff8040\">2. Build Configurations.<\/font><\/strong><\/p>\n<p><font color=\"#000000\">For this release we enabled the Configuration Manager for Silverlight. This controls where your output is and allows you to have multiple XAP\u2019s on your web site for debugging purpose versus the actual release. Note that you will need to change your Test Page source to point to the correct XAP if you make modifications in this dialog. <\/font><\/p>\n<p>I.e from TestPage.aspx:<\/p>\n<p>&lt;asp:Silverlight ID=&quot;Xaml1&quot; runat=&quot;server&quot; <strong><font color=\"#ff0000\">Source=&quot;~\/ClientBin\/SilverlightApplication9.xap&quot;<\/font><\/strong> MinimumVersion=&quot;2.0.30523&quot; Width=&quot;100%&quot; Height=&quot;100%&quot; \/&gt;<\/p>\n<p><font color=\"#000000\">You can access this dialog from the menu bar of Visual Studio 2008 via Build | Configuration Manager\u2026<\/font><\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_35.png\"><img decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"234\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_11.png\" width=\"200\" border=\"0\" \/><\/a>&#160;<\/p>\n<\/blockquote>\n<p>This will invoke the following dialog:<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_37.png\"><img decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"318\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_15.png\" width=\"503\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p><strong><font color=\"#ff8040\">3. XAML Validation now reports build errors. <\/font><\/strong><\/p>\n<p><font color=\"#000000\">If your XAML has any errors we will now report them after you build. <\/font><\/p>\n<p><strong><font color=\"#ff8040\">4. Setup Improvements<\/font><\/strong><\/p>\n<p><font color=\"#ff8040\"><font color=\"#000000\">Uninstalling previous versions is no longer necessary. However, if you install SP1 over Beta 2 you will need to re-install Beta 2 to update the patch. Also, our tools setup removes the Microsoft Blend March Preview. Microsoft Blend will be re-releasing around the same time as the release of our Beta 2 tools.<\/font><\/font><\/p>\n<p><strong><font color=\"#ff8040\">5. Projects created in beta 1 are prompted for conversion when opening to Beta 2.<\/font><\/strong><\/p>\n<p><font color=\"#ff8040\"><font color=\"#000000\">Projects created in beta 1 are prompted for conversion when opening to Beta 2. <\/font><\/font><\/p>\n<p><strong><font color=\"#ff8040\">6. Linking a Web Site to a Silverlight Application.<\/font><\/strong><\/p>\n<p>For Beta 2 we removed the \u201c<em>Add Silverlight Link<\/em>\u201d option in favor of the following alternatives for adding a Silverlight Application to your Web Site.<\/p>\n<p><strong>Option #1: Adding a new Silverlight application to an existing Web Site.<\/strong><\/p>\n<p>On the web site node of your solution explorer, right click and choose <em>\u201cAdd New Item\u201d.<\/em><\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_4.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"222\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_1.png\" width=\"307\" border=\"0\" \/><\/a> <\/p>\n<p>This will bring up the \u201cAdd New Item\u201d dialog. Choose \u201cSilverlight Application\u201d.<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_22.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"374\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_10.png\" width=\"563\" border=\"0\" \/><\/a><\/p>\n<\/blockquote>\n<p>Click the \u201cAdd\u201d button and this will bring up the final dialog. In this dialog, choose the language, location and name of the Silverlight application you wish to create and click \u201cAdd\u201d.<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_26.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"338\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_12.png\" width=\"391\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p>In case you were wondering what the option for \u201cCopy to configuration specific folders\u201d, when checked, the output of your XAP will be copied to the configuration specific sub-folders of the target folder. This is useful if you don\u2019t want Release and Debug builds to clobber each other. I.e.:<\/p>\n<blockquote>\n<ul>\n<li>ClientBinDebugfoo.xap <\/li>\n<li>ClientBinReleasefoo.xap <\/li>\n<\/ul>\n<\/blockquote>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<p><strong>Option #2: Adding an existing Silverlight application to an existing Web Site.<\/strong><\/p>\n<p>From your Solution explorer in your web site, right click and choose Add Existing Project:<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_10.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"341\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_4.png\" width=\"502\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<\/p>\n<p>Browse to and open an existing Silverlight application that you want to in this web site:<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_28.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"373\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_13.png\" width=\"473\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p>Now, to associate the web site with the Silverlight application you have two choices:<\/p>\n<p><strong>Choice #1: Once again right click on your web site and choose \u201cAdd New Item\u201d<\/strong><\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_4.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"222\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_1.png\" width=\"307\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p>This will bring up the \u201cAdd New Item\u201d dialog. Choose \u201cSilverlight Application\u201d and click the \u201cAdd\u201d button.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_22.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"374\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_10.png\" width=\"563\" border=\"0\" \/><\/a> <\/p>\n<p>This time you will see the option to use an existing project is enabled. Select this option and click the \u201cAdd\u201d button.<\/p>\n<\/p>\n<\/p>\n<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_30.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"323\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_14.png\" width=\"374\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p><strong>Choice #2: Right click on your web site and choose \u201cProperty Pages\u201d<\/strong><\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_16.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"465\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_7.png\" width=\"231\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<p>This will bring up the Property Pages Dialog. From this dialog, Select \u201cSilverlight Applications\u201d and click the \u201cAdd\u201d button.<\/p>\n<blockquote>\n<p><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"309\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_8.png\" width=\"544\" border=\"0\" \/><\/p>\n<\/blockquote>\n<p>This will bring up the following \u201cAdd Silverlight Application dialog\u201d. Chose the first option to use an existing Silverlight project, click \u201cAdd\u201d and you are done!<\/p>\n<blockquote>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/image_20.png\"><img decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"355\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2008\/06\/image_thumb_9.png\" width=\"411\" border=\"0\" \/><\/a> <\/p>\n<\/blockquote>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<p>Let me know if you have any questions related to Silverlight Tooling for Beta 2.<\/p>\n<p>Thank you.<\/p>\n<p><strong>Mike Snow      <br \/><\/strong>SDET Lead&#160; <br \/>Visual Studio Web Tools<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A number of great improvements and changes were made for Silverlight Tools Beta 2. The following list summaries some of the major changes with details on each below. WCF templates for Silverlight Enabled. Build configurations. XAML Validation now reports build errors. Setup Improvements. Projects created in Beta 1 are prompted for conversion when opening to [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7265,7310,7311,7278,7312,147,7302],"class_list":["post-4394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-announcements","tag-beta-2","tag-mike-snow","tag-silverlight","tag-silverlight-resources","tag-visual-studio","tag-visual-studio-2008"],"acf":[],"blog_post_summary":"<p>A number of great improvements and changes were made for Silverlight Tools Beta 2. The following list summaries some of the major changes with details on each below. WCF templates for Silverlight Enabled. Build configurations. XAML Validation now reports build errors. Setup Improvements. Projects created in Beta 1 are prompted for conversion when opening to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=4394"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4394\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=4394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=4394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=4394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}