SaveProjectAs

Ok...After hearing some complaints on this these boards about not having a "Project Save As" that saves the entire project to a new destination and name...I created this addin for VS05 that does just that.

The addin creates a 'Save Project As' menu item off of the file menu and allows the user to select a VB or C# project file and then select a new destination directory and a new name for the project. All standard dialogs used.

you can download the xcopy deployment files from:

http://codegallery.gotdotnet.com/SaveProjectAs

The zip file contains two files:

SaveProjectAs.AddIn and SaveProjectAs.dll and all you have to do to get it to work is to unzip the files into your addin directory...

Please use this thread or the gotdotnet codegallery for feedback, feature request and IF you find any bugs




Answer this question

SaveProjectAs

  • Ultrawhack

    Thanks nobugz...this is exactly what I've been hearing in several other threads and forums...I pointed that thread here

  • phyton3D

    Typically you have several default add-in locations...if you open tools...options...add-in/macro security you will see options to load add-in and option to add and remove addin folder locations....for ease create a folder in your VS05 directroy called add-ins and add it to the list shown...make sure you have "Allow Add-in components to load" selected...so if your Visual Studio is located at C:\Visual Studio then create and add the C:\Visual Studio\Add-in directory to the list...then put the two files in that directory

  • Matthijs Koopman

    Way To Go !!!!!!!!!!!!!!!!!!!!!!

    Xcopy project files



  • MMMalik

    I'd guess only the members of the Visual Studio team could make the call. You've got new "powers" with your recent MVP award, try to get in touch with the team though Ed Hickey. Joe Morel could also be resource, he's in the DevDiv team, trying to come up with useful add-ins. You've made a great feature, knowing it isn't going to bite some inopportune day would be the cherry on top.


  • Xi0N

    Yea that is basically what it does...an xcopy of the project directory and a renaming of the project file

  • dnenadd

    Thanks a lot for your effort, but unfortunately I cannot get it to work. On my computer there is no addin folder. The nearest thing I can find is \Windows\addins (note addins - not addin) and if I place the two files in this folder it does not work. I get no "Save project as" menu point under the file menu.

    Where can I find the right addin folder Is it a hidden folder


  • Behrooz PB

    Well, the Save"Project"As is pretty straight forward...if there are other references to the project name ...I have made no accomodations for that...it simply creates a new directory of the users choice and copies the directories and files over and then renames the project file...I have found no adverse effects in doing this, and have had no reports of users having any difficulties or problems(other than the express versions not being able to accomodate add-ins)...the app also does not work with solution files unless they are located in the same directory as the project file...and in that case they are only copied to the new location...no renaming of the .sou file. If you or any other user out there does notice a problem with not actually editing the project file..please let me know and I'll look into it.

  • Troy Lundin

    I could find no where in the documentation about VB express supporting add-ins so I finally downloaded it and checked it out myself...to my dismay I found out that VB express does not support add-ins nor does it have a Macro environment...This week end I will spend some time converting the addin to an executable that can be used as an external tool in the Express versions...which is located at "Tools...External Tools"....I will post back here when it becomes available

  • Michael Vanhoutte

    DMan1

    Sorry, but I can't get your small executable to work. I made an "ExternalTools" directory under c:\Programmer\Microsoft Visual Studio 8\Common 7\IDE\ and put the .exe file there (c:\Programmer\Microsoft Visual Studio 8\Common 7\IDE\ExternalTools\SaveProjectExternalTool.exe) as I thought this was the right place to put an add-in tool for the IDE (Save Project As ought to be a part of the File menu). In Tools...External Tools I named it Save Project As and set the Command to point to the .exe file. However, when I open a project and select Tools...Save Project As I get the following error message:

    File c:\Documents and Settings\Carsten Kanstrup\Dokumenter\Visual Studio 2005\Project\NewProjectNameISelect does not exist. Verify that the correct file name was given.

    Any idears of what I am doing wrong Shall anything be specified for "Arguments" and/or "Initial Directory" when I add the tool


  • The Last Muskateer

    Standalone executable now available that can be used as an external tool with the express versions of vb and c#...

    http://codegallery.gotdotnet.com/SaveProjectAs



  • Cptkirkh

    Thanks a lot for your great effort. I am sure that this option is missed by almost all programmers.
  • QWERTYtech

    Check this thread...


  • Vladimir Bougay

    Not what I meant. Note the observations, I found the old project name back in the .suo solution file, the OP found the old name back in the assembly. No idea what that means but a bit spooky.


  • Joe Hanna

    Sorry, but there is no add-in/macro security menu point in tools...options. Also I can't find any "Allow Add-in components to load" check box. Maybe the add-in option is only available in the full version In the help files under add-in, Visual studio is shown i square brackets [Visual Studio]. This could also indicate that this option is not available in the Express Edition.

    If the add-in option is also available in the Express Edition, where shall I make the add-in library and where can I find the "Allow Add-in components to load" checkbox

    The Library structure on my computer is:

    c:\Programmer(in english: programs)\Microsoft Visual Studio 8\

    In that folder there are several folders:

    Common 7

    Microsoft MSDN 2005 Express Edition - ENU

    Microsoft Visual Basic 2005 Express Edition - ENU

    MSDN Express Library

    SDK

    VB

    VC

    XML


  • SaveProjectAs