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!

newbie - why and how to put a project file in when using code sample

Status
Not open for further replies.

Gzk2010

Programmer
Aug 17, 2010
48
US
newbie - why and how to put a project file in when using code sample


I of course know how to create a project file but as I was learning LINQ the sample folder did not have a project file or solution file, just lots of files.

there has to be an easier way than to create a new project and slowly add like class1.cs and all the other files one by one.

thanks in advance
 
Project files (and solution files) are metadat for the VS IDE and MS Build. they have nothing to do with the text files or compiled binary.

The bare minimum to compile .net code is a simple text editor (notpad) and the .net SDK. granted this requires much more manual labor on the developer's part to get the code to successfully compile and run, but it's possible.

Incorporating files into a project is very easy.
1. launch VS
2. create/open a solution
3. create/open the project
4. right click the project and select Add Existing Item
5. Navigate to the file you want to include and VS will copy the file to the project's directory.

Another way to do this
1. Copy the file to the project's directory in windows explorer.
2. Within the VS IDE you can click the "show all files" button on the solution explorer
3. Right click the excluded file
4. Select Include File In Project.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top