• Blog
  • About
  • Contact
linkedin
twitter

Blog Post

21
NOV
2006

Visual Studio .NET Macro for nesting project items

tag : Visual studio
by : Christoph De Baene
comment : 5

This macro enables you to nest project items inside Visual Studio .NET. Until now, there is no easy way to nest project items through the Visual Studio IDE, you can only do it by manipulating the project (.csproj or .vbproj) file and adding the DependentUpon element.

Inside the IStaySharp.vsmacros file there is a macro called ‘Create Dependency’ which allows you to nest two selected items. I have even created a video to illustrate how to configure and use the macro.

About the Author

Social Share

    5 Comments

    1. Gabriel Lozano-Morán November 27, 2006 at 9:17 am Log in to Reply

      Hello p0l, a while ago I read the following blog post:

      http://extraview.co.uk/blog/PermaLink,guid,689818e8-817e-49d1-a33f-47decffa1700.aspx

      Which shows you how to associate a .js file with a .aspx which was very interesting. Does your macro support this is well?

    2. Christoph De Baene November 29, 2006 at 11:44 pm Log in to Reply

      Yes, the macro is not bound to any file extension and/or file structure.

    3. Grim January 4, 2007 at 2:27 pm Log in to Reply

      Thanks, I needed this.

      I’ve been trying to figure out for months why this doesn’t just work automatically with files named in certain patterns indicating partial class usage (Class1.cs, Class1.Static.cs). At least now I have a way to do it manually.

    4. Michael Norton January 9, 2007 at 3:30 am Log in to Reply

      How would you about doing the reverse?
      Removing the dependency using a Macro?

    5. Ann May 11, 2010 at 10:29 pm Log in to Reply

      @Michael Norton,
      you can use @http://mokosh.co.uk/vscommands/@vscommands addin from http://mokosh.co.uk/vscommands/ to do both nesting and unnesting.

    Leave a Reply Cancel reply

    You must be logged in to post a comment.

    Tag cloud

    .NET SDK Ajax Architecture ASP.NET ASP.NET Web API Code Generation Components Events Forms Hardware Modeling Neo4j Patterns & Practices Personal Roslyn Services Silverlight SQL Server Testing Tools Unity Utils & Tools Virtualization Visual studio Windows Live WPF

    Archive

    • April 2012
    • October 2011
    • August 2011
    • April 2011
    • March 2011
    • July 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • August 2008
    • March 2008
    • December 2007
    • November 2007
    • October 2007
    • March 2007
    • February 2007
    • January 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
    • August 2006
    • May 2006
    • April 2006
    • March 2006
    • February 2006
    • January 2006
    • November 2005
    • October 2005
    • September 2005
    • August 2005
    • July 2005
    • June 2005
    • May 2005
    • April 2005
    • March 2005
    • February 2005
    • September 2004
    • July 2004
    • June 2004
    • May 2004
    • April 2004
    • March 2004
      Copyright 2013, Christoph De Baene