ailon's DevBlog: Development related stuff in my life

Using Symlinks to Ease Development with Visual Studio Express

11/21/2007 8:01:16 PM

As you probably know, since Visual Web Developer Express and Visual C# Express (or VB for that matter) are separate products and you can't create DLLs in VWD or build web sites in VCS it is painful to develop ASP .NET controls using the Express editions of Visual Studio.

There are several ways to workaround this limitation. Personally I prefer the one where you develop your control in App_Code directory of a test web site in VWD and then when you are ready you copy the .cs files to a project in Visual C# Express and build your DLL(s) from there.

vwd_spaw2

The problem with this approach is that you have 2 copies of your files and as it often happens sometimes you edit the files in one place then in the other dir and you have a mess.

Fortunately this problem can be solved using symbolic links - feature well known to *nix guys and now available in Windows Vista using mklink. As far as I understand you can get the same effect using linkd command in Windows Resource Kit for Windows 2000 and newer but mklink comes with Vista out of the box.

So, what I do is make a symbolic link in my Visual C# project directory which points to a subdirectory in my Visual Web Developer web site:

cmd_mklink

The syntax for mklink in our case is this:

mklink /D new_dir_path original_dir_path

Now we just need to include our newly created "fake" directory into Visual C# Express project and we are all set

vcs_spaw2

This approach can be used in many different scenarios. Currently I work on a couple of related web sites with a colleague. All of the sites originate from one "base" web site. The class files of this base web site are still under development (we update them from time to time). It's too early to compile them and include in our "inherited" web sites as DLLs, so we use the same technique to "include" these common files in our "child" projects.

kick it on DotNetKicks.com
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Related posts

Comments

11/21/2007 8:09:28 PM

trackback

Trackback from DotNetKicks.com

Using Symlinks to Ease Development with Visual Studio Express

DotNetKicks.com

11/22/2007 11:12:33 AM

pingback

Pingback from blog.solmetra.com

Solmetra Developer Blog » Blog Archive » Using Symlinks to Ease Development with Visual Studio Express

blog.solmetra.com

12/12/2007 1:55:44 PM

Sally, web designer

Quitr curious approach. I've never worked this way but after your post, may be, I will examine it. I haven't understood some aspects, so could you give me more detailed information or just inform where I can find it?

Sally, web designer us

12/17/2008 6:38:52 AM

Busby SEO Test

Using Symlinks to Ease Development with Visual Studio Express

Busby SEO Test us

12/20/2008 3:45:00 AM

log splitter review

I like visual studio express, it is kinda cool

log splitter review

12/23/2008 11:21:10 PM

hiking backpacks

Thanks for tips to workout ASP .NET limitation. Now I know the ways to solve it.

hiking backpacks us

12/25/2008 4:08:08 PM

Busby SEO Test Pinay

Esta gran conocer esta tecnología .. tener que decir esto .. esto es realmente agradable. gracias por este puesto. i love this.

Busby SEO Test Pinay us

12/28/2008 12:56:37 PM

bedding ensembles

So just need to include created "fake" directory into Visual C# Express project? Never thought it was so easy.

bedding ensembles us

1/11/2009 3:19:39 AM

inventory management software

Personally I prefer the one where you develop your control in App_Code directory of a test web site in VWD and then when you are ready you copy the .cs files to a project in Visual C# Express and build your DLL(s) from there.

inventory management software us

1/19/2009 8:06:32 PM

Busby SEO Test

Este tipo de correo que contengan realmente apreciada y que puede dar idea y el conocimiento para hacerlo .. gracias por compartir este tipo de correo.

best regards,
busbys

Busby SEO Test us

1/27/2009 10:57:01 PM

busby seo test case

Este tipo de correo que contengan realmente apreciada y que puede dar idea y el conocimiento para hacerlo .. gracias por compartir este tipo de correo.

best regards,
busbys

busby seo test case us

1/29/2009 2:03:56 PM

busby seo test

great post, i found it very useful.

busby seo test us

2/11/2009 4:30:47 PM

los angeles drunk driving attorney

I prefer the one where you develop your control in App_Code directory of a test web site in VWD

los angeles drunk driving attorney us

2/21/2009 10:54:14 PM

discount bodybuilding supplements

I like visual studio express, it's cool.

discount bodybuilding supplements

2/21/2009 10:58:56 PM

funny stuff

So just need to include created "fake" directory into Visual C# Express project? Seems pretty easily solution.

funny stuff

3/19/2009 10:03:16 AM

life



Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of presentation.

life us

Comments are closed
Copyright © 2003 - 2009 Alan Mendelevich
Powered by BlogEngine.NET 1.3.1.0