Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to copy entire Visual C# solution?

Status
Not open for further replies.

thedougster

Programmer
Jan 22, 2009
56
US
Is there any way to copy an entire Visual C# solution in such a way that it works? If you just copy it and rename it, it gives an error message that it's been renamed and therefore it refuses to work.
 
open the sln and cs/vbproj files in a text editor and adjust as necessary. you can also create a new project/sln and use the add existing file open to import the files into the new project.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
jmeckley:

As Bill Murray said in Ghostbusters: "Let's pretend that I'm NOT an expert in medieval metallurgy...".

What I mean is: there's nothing in either one of those files that remotely intelligible to me.
 
sln and proj files are just xml which tells VS what files to display/compile etc. it's a good idea to get familiar with these files as they are the root of all VS projects.

the sln file keeps references to associated projects and global build configurations. note the Guid for projects.

proj files keep references to external assemblies and source files for the project. the Guid of the projects is referenced in the sln file.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top