Sunday, September 9, 2012
Visual Studio Achievements - Software engineer's glory won't be unnoticed now
Thursday, April 26, 2012
"Add Deployable Dependencies" option in Visual Studio 2010 When you want to deploy ASP.NET MVC application
Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified
Tuesday, April 17, 2012
Copy your code as HTML In Visual Studio (WYSIWYG)
If yes then this blog post is going to share about good add-on of Visual studio called "Copy As HTML"
Sunday, March 4, 2012
Microsoft has released Visual-Studio 2011 beta and Window 8 Consumer preview
Visual Studio 2011 Beta
Jason Zander has first announced regarding release of Visual Studio 11 Beta & .NET 4.5 Beta on his blog post.
Download it from here + Download Visual Studio 2011 Beta
This time Visual Studio lunched with totally new look combine with many new feathers as below.
- Project Compatibility
- IDE Productivity Improvements
- Search Everywhere
- Toolbar Improvements
- Additional Tooling
- Multiple-Monitor Support
- Performance Enhancements
- New Project Types
- Extensibility
You can read each & every fether on Visual studio magazine's post about "Inside Visual Studio 11: A Guided Tour".
Scott Hanselman has also written about overview of features available with Visual Studio 2011 beta in his blog post.
Window-8 Consumer Preview
Steven Sinofsky has first made announcement on his blog post of "Windows 8 – The Consumer Preview" availability for download.if you are in hurry to look inside it then visit this and starting now at http://preview.windows.com.
Read this guidelines before installation
- How To Guide to Installing and Booting Windows 8 Consumer Preview off a VHD by Scott Hanselman
- Windows 8 Installation Guides by Amit Agrawal.
There are lots of post (i think many people rushed out to write about that to be a first blogger to write on this topic!) available on internet about Window 8 features so i don't want to talk about it here.
just google it - Window 8 features :)
Monday, February 27, 2012
HTML5 target schema for visual studio
An output of an ASP.NET server control can be the result of many HTML tags that combine together to produce that control and its events.
If you want to read more about difference between HTML controls and ASP.NET server control then visit this link.
When you are designing aspx/html/cshtml page inside visual studio you need to specify target schema for validation as per below (By default it is selected so some people don't aware of this!)
Today HTML5 is in demand and it is supported by most of browsers, some people says that HTML5 will remove flash from web!
Anyway if you want to know more about HTML5 and it's features then following are good links.
If you want to take benefit of Intelisense and validation of html5 controls in visual studio then you need to install target schema for html5 from here first,then you can see it in that list and select that schema for your application as per below.
Thursday, February 16, 2012
Step by Step : Upload asp.net web application to Window Azure
Create New Project > ASP.NET web application
Create New Cloud Project and Just click OK without selecting anything
Go to Cloud Project > Right click on Roles Folder > Add web role from solution as per below fig.
Here you can configure your cloud project with .csdef config file (you can also add stratup task in that.)
Build Solution then right click on Cloud Project and click Publish, it will open dialog as per below.
Here i will go through "Create Service package only" which will create published files to upload manually on window azure portal, if you want details on 2nd option then please refer this link for Getting Started with the Windows Azure Tools for Visual Studio
- Click on "Configure Remote Desktop" if you want RDP connection to that application and chose certificate and credentials as per below
Click Ok on both dialogs and it will generate 2 files which we need to upload on Window azure portal
Create "New Hosted Service" on azure portal then fill details, choose certificates and browse 2 published files in step-9 and click ok
cheers!
Thursday, February 9, 2012
Alternate way to set default browser in VS2010
Right click on any aspx page and click "browse with" will open window with installed browser list and you can set default browser for that application.
But if you are working with MVC3 application where aspx page is not available then how you can change this setting? because browse with option only available with aspx or html page
Some person prefer to add extra aspx page or html page to application change this setting, however i explore alternate way to do this as per below..
Following are steps i have followed to change my default browser to chrome
- Open the web project properties
- Go to Web tab
- In Start Action section select Start external program and then add chrome executable path and the url as Command line arguments.
- In Servers section set specific port to the same port set in the URL in step 3.
Saturday, January 14, 2012
Explore Visual studio 2010 - Navigate To option
so speed up your visual studio experience !!
Wednesday, January 11, 2012
Use web.config transfromation in visual studio
When you create new project in Visual studio 2010, it has separate configuration for debug and release as you can see in following fig.
Let's take an example in web.Release.config write connection string as per shown in below fig.
In the above example "SetAttributes" transform will change the value of "connectionString" to use "ReleaseSQLServer" only when the "Match" locator finds an attribute "name" that has a value of "MyDB".
Read more about syntax on msdn
Monday, January 2, 2012
Testing Nuget Package before Publishing
That's why it is essential to test it before publishing your pacakge to nuget. so I would like to go step by step process how you can test your package.
3) select package source
official Nuget packages.
Thursday, November 10, 2011
Enable intellisense with HTML & css in Visual Studio using Web Essentials Extension
This extension developed by Mads Kristensen .
you can download from here.
Alternate way you can add it in visual studio by Extension Manager
Now when you open any css file then as per above you will able to add property value through intellisense and that's great feather for designer.
Cheers!
Related Links
http://visualstudiogallery.msdn.microsoft.com/6ed4c78f-a23e-49ad-b5fd-369af0c2107f
http://www.hanselman.com/blog/UsefulVisualStudioExtensionWebEssentialsFromMadsKristensen.aspx
Saturday, November 5, 2011
Cool Tips to speed up in visual studio 2010 - Short keys
There are some hot key which are beneficial to your daily programing , practice on that
Ctrl+M , M – Fold/Unfold the current code block
Ctrl+M, L – Unfold all
Ctrl+M, P – Stop outlining
Ctrl+M, O – Fold all
Line No in Code – Tools>Options>Text Editor>All Languages>General>Line numbers.
Ctrl+Alt+L – Solution Explorer
Ctrl+Alt+O – Output Window
Ctrl+Alt+K – Task List
Ctrl+Shift+Space – intellisense window.
Ctrl+R – Word Wrap
Ctrl+K, K – Create/Remove Bookmark
Ctrl+K, N - Move to next bookmark
Ctrl+K, P – Move to previous bookmark
Ctrl+K, L – Clear all bookmarks
Code Format:
Ctrl+K, F – Auto-format selection
Ctrl+U - Convert to lower case
Ctrl+Shift+U – Convert to upper case
Ctrl+K, C – Comment selection
Ctrl+K, U - Uncomment selection
Running/Debugging:
F5 - Start Application in debug Mode
Ctrl+F5 – Start Without debugging
F11 – Step into
F10 – Step over.
Shift + F11 – Step Out.
Shift + F5 – Stop debugging.
Ctrl+Shift+F5 - Restart Debugging.



