473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How can I "save as" a solution??

I have been using C# 2005 Express to make class libraries for use in another
software program. Each version of this software has a different .NET API, so
maintaining multiple solutions of the same project for each version of the
software is neccessary.

How can I do a save as of the entier project? THe option seems to exist to
save as the .sln file, but that doesn't bring all the resources, source
files, and other files with it.

Maybe I am just missing something, but is there a way to make a complete
independent copy of a project without starting a new project and adding
copies of all the original project files?

Thanks in advance.
Oct 18 '06 #1
5 5894
Not to sound like a jerk or anything, but have you considered just copying
the entire project folder?

The solution has a relative path to the project file, and the project file
is XML with all relative paths. Whenever I need to make changes that I
don't want affecting my live copy of the code, I just copy the entire folder
to another location and work on it. Microsoft's own source control doesn't
keep track of where a file was on the original system and lets you specify
where to check stuff out at. At least with 2003 and above (I'm assuming
it's been this way since day one, or at least the last many versions), paths
are relative so you can just copy the tree to another folder, another
computer, etc; without having to worry about path issues.
>>Matt S.<Ma***@discussions.microsoft.com18/10/2006 18:06 >>>
I have been using C# 2005 Express to make class libraries for use in another

software program. Each version of this software has a different .NET API,
so
maintaining multiple solutions of the same project for each version of the
software is neccessary.

How can I do a save as of the entier project? THe option seems to exist to

save as the .sln file, but that doesn't bring all the resources, source
files, and other files with it.

Maybe I am just missing something, but is there a way to make a complete
independent copy of a project without starting a new project and adding
copies of all the original project files?

Thanks in advance.
Oct 19 '06 #2
WHile this technically does work, I would like to name my files and classes
such that they are related to the version of the software, so that if I jsut
copy the folder, the file naming isn't really consistent.

I suppose this is rather trivial, but it makes it easier to keep track of in
the project explorer if the solutions have different names, and since I have
multiple projects that need to span multiple versions, I would like a way to
keep track of everything.

"Ross Nelson" wrote:
Not to sound like a jerk or anything, but have you considered just copying
the entire project folder?

The solution has a relative path to the project file, and the project file
is XML with all relative paths. Whenever I need to make changes that I
don't want affecting my live copy of the code, I just copy the entire folder
to another location and work on it. Microsoft's own source control doesn't
keep track of where a file was on the original system and lets you specify
where to check stuff out at. At least with 2003 and above (I'm assuming
it's been this way since day one, or at least the last many versions), paths
are relative so you can just copy the tree to another folder, another
computer, etc; without having to worry about path issues.
>Matt S.<Ma***@discussions.microsoft.com18/10/2006 18:06 >>>
I have been using C# 2005 Express to make class libraries for use in another

software program. Each version of this software has a different .NET API,
so
maintaining multiple solutions of the same project for each version of the
software is neccessary.

How can I do a save as of the entier project? THe option seems to exist to

save as the .sln file, but that doesn't bring all the resources, source
files, and other files with it.

Maybe I am just missing something, but is there a way to make a complete
independent copy of a project without starting a new project and adding
copies of all the original project files?

Thanks in advance.
Oct 19 '06 #3
"Matt S." <Ma***@discussions.microsoft.comwrote in message
news:56**********************************@microsof t.com...
WHile this technically does work, I would like to name my files and
classes
such that they are related to the version of the software, so that if I
jsut
copy the folder, the file naming isn't really consistent.
Then you'll need to rename those files and classes after you copy the
folder. As far as I know, there's no one-command method for doing what you
want. But Visual Studio 2005 does a great job (IMHO, relative to past
versions) of allowing you to rename practically anything.

Since you want different names for everything anyway, and since even a "Save
As..." command wouldn't be likely to rename most things (I could see it
renaming the things directly tied to the solution name, but otherwise
everything else would be left alone anyway), it's not like it'd even be that
much more work to do it manually. You'd still have to go through the
solution and rename most things as needed anyway.

So, do that. Copy the whole folder for your solution, and then open the new
copy of the solution and rename things as you see fit.

There may be ways to automate the renaming part too, if you find it too
tedious to do everything. Whether that involves using the compiler-related
components in .NET or not, I don't know. Never tried to do it myself.

Pete
Oct 19 '06 #4
Matt S. wrote:
WHile this technically does work, I would like to name my files and
classes such that they are related to the version of the software, so
that if I jsut copy the folder, the file naming isn't really
consistent.

I suppose this is rather trivial, but it makes it easier to keep
track of in the project explorer if the solutions have different
names, and since I have multiple projects that need to span multiple
versions, I would like a way to keep track of everything.
You are aware of the problems you make for yourself using only naming
conventions for versioning, aren't you? It is a solution that does not scale
very well, to say the least.

For keeping track of versions, whether it is for development progress or for
different capabilities, I'd strongly suggest using a Source Code Management
tool such as Subversion http://subversion.tigris.org. And since you are
obviously working in MS Windows, take a good look at
http://tortoisesvn.tigris.org as well.

Ebbe
Oct 19 '06 #5
"Peter Duniho" <Np*********@NnOwSlPiAnMk.comwrote in message
news:12*************@corp.supernews.com...
But Visual Studio 2005 does a great job (IMHO, relative to past versions)
of allowing you to rename practically anything.
God, yes. I remember the hours-long nightmares involved in simply renaming a
project in VC++ 6.0 and earlier.

///ark
Oct 19 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dariusz | last post by:
I have the following code which executes successfully to call the browsers "save as" box... //Screensavers if ($FileType == 'scr') { // We'll be outputting a screensaver header('Content-type:...
2
by: RickL | last post by:
I have an ASP application that uploads a specified file to the server. To retrieve the file, I simply assign the filepath and file to a hyperlink on the page. When you click "Save Target As" for...
27
by: Curious Angel | last post by:
I have a resume in PDF format and I want anyone who LEFT-OR-RIGHT clicks the link to force the file to be saved, and in any event _not_ opened. Since the PDF will be in his cache in any event, I...
1
by: J. Koskey | last post by:
Background: We have hundreds of codes = specific departments, but there are frequent changes/additions to the info. For users to look up definitions, we had set up a way in Access to create a...
4
by: Richard | last post by:
Hi I'm new to ASP/Web programming so any help would be appreciated... Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. ...
5
by: Paul Sullivan | last post by:
We are a state agency that views protected medical information via our intranet. The screens even have privacy shields. Alarmingly, uses can "Print" and "Save As" which destroys the protection of...
6
by: Ryan | last post by:
I have a windows form that I want to force validation on controls (text boxes) when the user clicks a "Save" button. The only way I've found to do this is to cycle through every control and call...
0
by: lety28 | last post by:
I have a script "licence.cgi" write in python which generate text files and I would like that the user click on a button and he can download this file. _1er solution:_ I found in my research that...
1
by: bhushan097 | last post by:
hi , if you control user to right clik on page then why not is is possible to disable "save as" in file menu ? plz suggest solution Bhushan.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.