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)
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)
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)
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)
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)
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)
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)
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)
If you are interested in Silverlight 4 based Tips of the Day head over to my new Silverlight blog! So far I have over 20 postings as follows: http://www.silverlightdev.net/2010/05/12/silverlight-tip-of-the-day-19-using-bing-maps-in-silverlight/ http://www.silverlightdev.net/2010/05/11/new-silverlight-tips-blog-domain/ http://www.silverlightdev.net/2010/05/11/silverlight-tip-of-the-day-18-elastic-scrolling/ http://www.silverlightdev.net/2010/05/10/silverlight-tip-of-the-day-17-double-click/ http://www.silverlightdev.net/2010/05/07/silverlight-tip-of-the-day-16-working-with-ignoreimagecache/ http://www.silverlightdev.net/2010/05/06/silverlight-tip-of-the-day-15-setting-default-browse-in-visual-studio/ http://www.silverlightdev.net/2010/05/06/silverlight...(read more)
In a previous blog, Controls State: "Error Creating Control" in the Design View in Visual Studio 2010 , I have discussed about an Error Creating Control issue related to accessing the Session state in the OnInit() method. Since then, I have discovered that the Error Creating Control will also show in the design view if we try to access any object not being instantiated at the design time inside the OnInit() method. For example, in a web application project, in a code-behind file that is adding controls dynamically to a page, similar to what was discussed in the article How To Dynamically Add Controls to a Web Page , we have code that’s accessing an object that is null at the design time as shown below When you switch to the design...(read more)
August 19, 2010