Visual studio 2010 new shortcuts
Visual studio 2010 is coming with very useful and fantastic shortcuts in the Asp.net editor and Code behind editor.
So kindly find the new quick shortcuts in the new Visual Studio .Net 2010.
1- Zooming(Ctrl+mouse wheel)
it gives you the ability to zoom in/out you code behind
2- Highlight References(Ctrl+Shift)
it gives you ability to highlight all references for some keywords and you can move between your references using the up/down arrows
3- Generating classes and methods (Ctrl+.)
If you need to create new class you can write the class with your preferred keyword then creates an instance then press the short cut keys to generate the class also you can use the same short cut keys if you want to write any method not found.
4- Quick Search(Ctrl+,)
you can search for some method by this nice quick search tool it list all methods you wrote in the search screen found in your solutions
5- Call snippets (Tab)
you can call any exist snippets by writing the Snippets name then Tab key.
Hope this help…
Microsoft Dev Nights, 2nd episode
Yesterday, I was one of the speakers in 2nd Microsoft Dev Night event in Kuwait.
Actually I would like to thank Mr. Amr El Garhy the MVP gulf team leader for his trust and support. I promise him that I will do a lot of sessions in the feature and I will be better than the first time.
Really I was supper excited to talk about Visual Studio 2010 and Team System. It was the first time for me to give sessions like that I was very happy for the first try but at the same time I was very sad also because I just talk about quarter of my topics I had planned to talk in it.
Actually I was not excellent as I was hopping but it was the first time and really I had learned a lot of this try so will continue for donning session in any this I know, I will share my knowledge for every one .
I am sorry for this big story but I was trying to tell you about my experience from this try.
Now, if you like to see my session presentation you can download it from here, and I promise you soon you will find new screen cast for the same session in the same box.net shared folder.
With best Regards
VS 2010 web Package
Introduction
Every web developer does deployment for his web application more times and sometimes we face problems. But these problems became very important as some enterprise environments needs to move across various environments before being deployed to a production Environment. A typical set of transition servers are development, testing/QA, staging/pre-production and production. Also on the production environment there are web farms where these webs need to be replicated
Actually any web deployment needs the following check list during deployment.
- Web Content (.aspx, .ascx, images, xml files, ..etc)
- IIS Settings (Directory browsing, Error pages, Default Documents etc)
- Databases that the web project uses
- GAC Assemblies and COM components which the web project depends upon
- Registry Settings that may be used within the web project
- Security Certificates
- App Pools
Today using VS 210 doing all these things is more or less a manual process and involves documentation that both developers and server admins have to deal with.
Web Package Steps
VS 2010 uses MSDeploy to create the web package from your web application. The package created by VS can be installed using UI in IIS Manager, we anticipate that developers eventually will give the web packages to server administrators who will be able to inspect/verify the package and then install them on the server. Now let us learn how to create a web package.
VS 2010 introduced one additional property page for WAPs (Web Application Projects) called “Publish” as shown below:
Step 1: Configuration
Note VS 2010 add new feature for configuration manager properties screen. if you need to learn about this click Here
Step 2: Items to Package/Publish
This section will help you decide what type of content you would really like to package/deploy.
Types of Files:
“All files in this project” and “All files in this project folder” options are very similar to what Publish WAP options were in VS 2008.
- Exclude Files from App_Data folder
“App_Data” folder is a special ASP.NET folder where many developers like to put their SQL Express DBs (.mdf/.ldf files), XML files and other content which they consider Data. In many situations on production web server a full version of SQL Server is available and using SQL Express is not all that relevant. In such scenario a user can check the “Exclude Files from App_Data”.
- Exclude Generated Debug Symbols
It is important to understand that generation of debug symbols is different from deployment of the same. This check box will tell VS 10 whether you would like to package/deploy the already generated Debug Symbols or not.
You can see the previous to options in the below image.
Let’s talk for a minute about debug symbol. If you would like to generate debug symbols for your application you can do so by going to the “Build” tab in the Property Pages and clicking “Advanced” bottom at the bottom. Here you will have different options for the level of debug symbols you would like to generate for your Web Application Projects (WAP) as shown below …
Step 3: Package Items
- IIS Settings
Checking this checkbox informs VS10 that you are ready to take all of your IIS Settings configured for your application in IIS Manager as a part of your web package. I am glad to tell you that IIS 5.1, IIS 6 as well as IIS 7 environments are supported as part of this feature hence whether you are working on XP, Win2K, Win2K3, Vista or Win2K8 you should have no issue with packaging IIS Settings…
This setting includes the “App Pool mapping” your web is configured to run against
- Additional Settings – The items in this grid are advanced properties. It is still good to know about this because it impacts what will be included in your package. Most of the properties in this grid are related to the entire server and not just to your application so you should use them very carefully.
You can see this two option in the below screen shot
- Create MSDeploy Package as a ZIP file
this checkbox allows you to decide whether you would like to create your web package as a .zip file or as a folder structure. If you are concerned about the size and are moving the web package around very often then I can see you using .zip format for the package. On the other hand if you care to compare two packages using diff then you can use the folder format. - Package Location – This is an important and required property as it defines the path at which Visual Studio will place your web package. If you choose to change this path make sure that you have write access to the location.
- Destination IIS Application Path/Name – This property allows you to give IIS Application name that you will use at the destination Web Server.
- Destination Application Physical Path – One of the most important information which is embedded inside the web package is the physical location where the package should be installed. This property allows you to pre-specify this embedded information. You will have an opportunity change both IIS Application Physical Path as well as Application Name at the time of deployment.
Last Step: Create the “Web Package”
- Right Click on your “Project”
- Click on Package –> Create Package
Once you click on this command you should start getting output messages around your package creation pumped into your output window…
When you see “Publish Succeeded” in the output window then your package is successfully created.
To access the package go to the location specified in the “Package Location” textbox.
Finally, you can also automate creation of web packages via your team build environment as everything discussed above is supported via MSBuild Tasks.
Hope this helps…
-
Archives
- May 2011 (2)
- January 2011 (2)
- December 2010 (1)
- September 2010 (8)
- August 2010 (1)
- March 2010 (1)
- November 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (1)
- July 2009 (7)
- June 2009 (10)
-
Categories
-
RSS
Entries RSS
Comments RSS








