September 16, 2010
Blog ArchivesWeb Camp LA–Trip Report
"This was the best training I've ever had, this was even more useful than TechEd" – Gabriel Cruz Last Friday, Phil Haack , Jon Galloway and I ventured to Los Angeles to deliver a Web Camp at the downtown Microsoft office. Photo – “What do you mean you drive on the other side of the road in the USA?” Agenda and Content After we got to the venue safely, we delivered an agenda on the following topics: ASP.NET MVC 2 Fundamentals Entity Framework (including a sneak peak of code-first) Validation, Localization ASP.NET MVC + jQuery, jQuery Templating, jQuery Globalization ASP.NET MVC 3 and Razor NEWS – You can now get the Web Camps Training Kit – September Edition! This includes much of the content we covered at the event…(read more)
Web Camps Training Kit – September Edition
The Web Camp in Los Angeles was a great success last Friday with Phil Haack , Jon Galloway and myself imparting a raft of knowledge on ASP.NET MVC 2, jQuery, Entity Framework Code-first, ASP.NET MVC 3 and Razor. However, there’s little time to pat ourselves on the back – because this week marks the launch of the September Edition of the Web Camps Training Kit! Online and available as a download The previous version of the Web Camps Training Kit was only available as a download, but we listened to your feedback and are now publishing it online too! Choose your flavor below: Browse the content online Download it Now What’s new in the Web Camps Training Kit – September edition? The goal for Web Camps is to provide…(read more)
Tip #107 Did you know … How to improve debugging performance for MVC2 application in Visual Studio 2010 Ultimate?
VS2010 Ultimate included IntelliTrace functionality by default. IntelliTrace captures events (e.g. exceptions), and can affect performance of debugging. The typical performance hit is about 5% in the default mode (collection can be increased to…(read more)
An example of packaging web application containing database upgrade SQL file
A few months ago, we have a blog talking about extending the web publishing pipeline to package database project deployed SQL file. In this blog, I’ll show step by step example of packaging web application with SQL Server database upgrade SQL file using Visual Studio 2010. This way, we can generate a web package with incremental SQL script to certain database version. The scenario may help distributions of a web upgrade package which needs to be installed on many different locations, each with their own SQL server database. 1. Create a Web Application Project 2. Add a new “SQL Server 2008 Database Project” to the solution 3. Prepare a development database, such as my test1 database as the following: 4. Right click our…(read more)
Request for Real-World Web Applications
In preparation for enhancing Visual Studio design-time experience testing, we’d like to collect a catalog of real world applications to use for performance, stress, and ad hoc testing by the Web Platform and Tools team. We’re looking for small, medium, and large applications covering a range of architectures, languages, frameworks, and features. Your contributions will help us to ensure stability and performance in the areas of greatest interest to you. These additional testing opportunities will also help us ensure that we will have more real world samples to verify every release of Visual Studio whether it is Beta, RC or RTM. If you are interested in helping us, please provide the following information: Please send an email to WptApps@live…(read more)
A practical example of using web application deployment package with IIS7
When a zip package is built from VS2010 web application UI (via Build Deployment Package command), or through command line (msbuild myproject.csproj /t:package), a few files are generated in the destination folder. Here’s some brief description: File Name Description myApp.deploy-readme.txt Read me file of how to use myApp.deploy.cmd. myApp.deploy.cmd The auto generated command file which can be used in many situations. Check MSDN topic for details. myApp.SetParameters.xml The parameter file that user can modify to affect deployed IIS application, such as IIS application name, connection string etc. Check MSDN topic for more details. myApp.SourceManifest.xml The source manifest file that VS uses to compile the package via web deploy…(read more)
Web Custom Control Behavior and Authoring
Some Best Practices and Guidance for Web Control Vendors Targeting Visual Studio The goal of this post is to provide guidance for control vendors on best practices for writing custom controls with regard to their behavior in Visual Studio. It is designed to give vendors insight into how Visual Studio behaves when performing common actions related to custom controls, as well as suggestions to optimize the experience for their consumers from within VS—largely concentrating on VS versions 2008 and 2010. This post does not cover runtime or control programming concepts such as usage of any control or design-time specific APIs. For more information on these other concepts, please see the “links and other resources” section at the…(read more)
Survey – ASP.NET development in Visual Studio 2010
Are you currently doing ASP.NET development in Visual Studio 2010? If so, we would love to hear your feedback! We have created an online survey that will only take a few minutes to complete. Click here to take survey All feedback will be carefully considered and thoroughly reviewed during our planning for future release such as VS 2010 SP1. The more details you can provide, the better. Thank you for your time, –Mike Snow Visual Studio Web Development Team. Read More……(read more)
Applying XDT magic to App.Config
For several weeks now people have been asking to be able to use the XML Document Transform (XDT) with App.Config files similar to what is available with Web.Config files in VS 2010… In all honesty there is no official/supported implementation of XDT for any other project type than Web Application Projects but the good news is that the basis of Web.Config Transformation resides in Web Publishing Pipeline (WPP) which are set of extensible tasks and targets hooked up to provide a great deployment story for Web Applications… Today, Ming (our senior dev on Visual Studio) and I decided to get together to give some love to App.Config file too… The below implementation is a crude way of getting XDT working into other project types within VS 2010…(read more)
The Aspnet Compiler Build Task in Visual Studio 2010 ASP.Net MVC 2 Projects
If you crack open the project file in an ASP.Net MVC 2 application (in notepad or unload your project and then click “ Edit *.proj” ), you will notice an interesting line. <MvcBuildViews>false</MvcBuildViews> This is an option to enable a post build task that will run the Asp_net compiler. This command will compile your aspx pages and report any errors in the pages at design time. Ordinarily the compiler runs before your site loads for the first time after making a change. This is why you can debug a website or web application with errors in the markup and not see an error until actually running your site. So why is the option set to false by default? I obviously want errors at design time before I run the site! Well, if you turn…(read more)