January 2011 - Posts
Since the release of Visual Studio 2010 SP1 beta last month, there has been a lot of questions regarding the support for HTML5 and CSS3. HTML5 Visual Studio 2010 was originally released without HTML5 support, so does SP1 finally add support for it? Yes, to some extent. The entire HTML5 specification isn’t supported but most of the new elements and attributes are. That means you get both intellisense and validation for HTML5 with SP1. Turn it on After installing SP1 you have to tell Visual Studio to start using the HTML5 schema. Go to Tools -> Options, and then select Text Editor -> HTML -> Validation . You should now be able to select HTML5 or XHTML5 as the target schema. Or if you have the HTML Source Editing toolbar enabled, you can...
Tomorrow (Monday Jan 24th) I’m doing another online LIDNUG session . The talk will be from 3:00pm to 4:30pm (Pacific Time). I do these talks a few times a year and they tend to be pretty fun. Attendees can ask any questions they want to me, and listen to me answer them live via LiveMeeting. We usually end up having some really good discussions on a wide variety of topics. Any topic is fair game: technical, strategy, community, college basketball, etc. You can learn more and register to attend the online event for free here . I’ll update this post with a download link to a recorded audio version of the talk after the event is over. Hope to get a chance to chat with some of you there! Scott P.S. In addition to blogging...
Earlier this week, we released the Portable Library Tools CTP . You’ll need to install the VS 2010 SP1 Beta first, then it’s a quick install on top of that. What is it? Back at PDC in October, I did a PDC talk called 3-Screen Coding: Sharing Code Between Windows Phone, Silverlight, and .NET . If you want to spend some time to get the full scoop on what the Portable Library Tools are all about, you watch it online by clicking here . But if you don’t have time for that, the basic idea is as follows: A Portable Library is a DLL that will run compatibly across a set of .NET platforms. The set of platforms currently supported for this CTP are .NET 4, Windows Phone 7, Silverlight 4, and XNA Framework 4.0 for XBox 360. The Portable...
The IIS team recently published the Microsoft Web Farm Framework 2.0 release to the web. You can learn more about it and download the final V2 release of it here . What is the Web Farm Framework? The Microsoft Web Farm Framework is a free, fully supported, Microsoft product that enables you to easily provision and mange a farm of web servers. It enables you to automate the installation and configuration of platform components across the server farm, and enables you to automatically synchronize and deploy ASP.NET applications across them. It supports integration with load balancers, and enables you to automate updates across your servers so that your site/application is never down or unavailable to customers (it can automatically...
Many of us follow a modular architecture and create MVC3 Razor view in a separate class library project. Following is a screenshot of the class library project that I have created. Now if I open a view with @model typed in it, I notice that it shows squiggle for @model and no intellisense is shown. (error: There is build provider registered for the extension '.cshtml') The reason behind the error is that Visual Studio 2010 (for Razor tooling) requires web.config file (with some specific settings) to be in the project so that the MVC Razor host (which adds the @model directive) gets registered correctly. The workaround would be to drop the attached web.config (rename the attached file from web.txt to web.config) to the root of the project...
Last week we released several new web products – including ASP.NET MVC 3 . We’ve had a bunch of great feedback and a ton of downloads since then. One question a few people have asked me recently is: “My web hosting provider doesn’t yet support ASP.NET MVC 3 - any idea when they will install it?” The good news is that you don’t need to wait for them to install anything on their web-servers. As long as your web hosting provider supports .NET 4, then you can build and deploy ASP.NET MVC 3 applications on it today – without the hosting provider having to do anything to enable it. The below post describes how you can enable this. Some Background We support two ways for you to install and use the assemblies that implement ASP.NET...
I built a little module for Orchard tonight and it involves a couple of interesting magic tricks so I thought I'd share. The module is replacing the default Orchard favicon with whatever you configure in site settings: I haven't created any specific storage for the icons and instead decided to use a simple convention for the already existing Media module. What you can see in the site settings in the picture above is a list of suggestions that is just a list of the icons that are found in the favicon subfolder of the Media module. In order to do that, I added a reference to Orchard.Media in my module's csproj and the corresponding dependency in the module's manifest. That done, I can get a dependency on IMediaService injected...
Many volunteers have already stepped up to provide translations for Orchard. There are many challenges to overcome with translating such a project. Orchard is a very modular CMS, so the translation mechanism needs to account for the core as well as first and third party modules and themes. Another issue is that every new version of Orchard or of a module changes some localizable strings and adds new ones as others enter obsolescence. In order to address those problems, I've built a small Orchard module that automates some of the most complex tasks that maintaining a translation implies. In this post, I'll walk you through the operations I had to do to update the French translation for Orchard 1.0. In order to make sure you translate...
I’m excited to announce the release today of several products: ASP.NET MVC 3 NuGet IIS Express 7.5 SQL Server Compact Edition 4 Web Deploy and Web Farm Framework 2.0 Orchard 1.0 WebMatrix 1.0 The above products are all free. They build upon the .NET 4 and VS 2010 release, and add a ton of additional value to ASP.NET (both Web Forms and MVC) and the Microsoft Web Server stack. ASP.NET MVC 3 Today we are shipping the final release of ASP.NET MVC 3. You can download and install ASP.NET MVC 3 here . The ASP.NET MVC 3 source code (released under an OSI-compliant open source license) can also optionally be downloaded here . ASP.NET MVC 3 is a significant update that brings with it a bunch of great features. Some of the improvements...
What’s Razor? Razor is a simple-syntax view engine that is released as part of ASP.NET Model View Controller (MVC) 3. Read more about the syntax on ScottGu’s blog or on ASP.NET How can I get Razor syntax support in Visual Studio 2010? It’s simple. Install the MVC3 RTM bits via Web Platform Installer or download the installer directly to run it yourself. Both the options run AspNetMVC3Setup.exe and it installs Visual Studio 2010 support for Razor syntax in addition to other components bundled in the exe. What does ASPnetMVC3Setup.exe install for Visual Studio to support the syntax? The ASP.NET MVC 3 installer includes the following components. Components in bold add the support. ASP.NET MVC 3 runtime components ASP.NET MVC 3...
More Posts
Next page »