Rajeeshcv.com

Sharing my knowledge

Workaround for Web Essentials to support TypeScript 0.8.1.0

If you have installed the latest version of TypeScript(0.8.1.0) ,  Web Essentials extension you have installed on the VS 2012 may not be working correctly. Here is a work around to get it working

  1. Open command prompt as an administrator and go the TypeScript installation directory. In my case it is C:\Program Files (x86)\Microsoft SDKs\TypeScript.
  2. If the older version of TypeScript (0.8.0.0 or below) is there in that directory, delete it
    Create a symbolic of the older version, which points to the new version using the following command
    mklink /D 0.8.0.0  0.8.1.0
  3. Now open VS 2012 and go to Tools -> Options -> Web Essentials -> TypeScript. Set “Compile all TypeScript files on build” to “False”

Attach to Any ASP.NET Web Server from Visual Studio in One Click

This is an update to my previous blog post Attach to Visual Studio Development Server with One Click.

The Visual Studio Macro from previous article doesn’t support IISExpress or IIS; it only supported the Visual Studio Development Server, more over it doesn’t detect latest Development Web Server “WebDev.WebServer40.exe”.

Now I have updated the Macro so that it will automatically detect the Web Server setting from the project properties and attach it accordingly.

Read more...

Attach to Visual Studio Development Server with One Click

Update: Enhanced version of the Macro created here is available in the new article -  Attach to Any ASP.NET Web Server from Visual Studio in One Click

In my day to day work, during the development I had to attach an ASP.NET application to the development server (Cassini) several times in order to debug and fix a problem.

This task is little bit time consuming because this is how we normally do it

  1. Click on the “Attach to Process” menu under the Debug menu
  2. Select the correct process from the list of available processes
  3. Either double click on the select process or click the “Attach” button

You can reduce these into two steps, if you assign a short cut key to the “Attach to Process” command.

What I found is most of the time is lost in finding and selecting the correct process from the available list of processes in the “Attach to Process” dialog.

Read more...