Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / December 2004

Tip: Looking for answers? Try searching our database.

How to add directory to project from template?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WXS - 09 Dec 2004 21:13 GMT
I have created a C# project template that adds files like:
New.bmp
Myimage.jpg

I want them to appear in a folder under the project as

"Resources\New.bmp"
and
"Resources\Myimage.jpg"

relative to the current project directory.

Any idea how I can accomplish this?  something I need to change
in the default.js file?

Thanks,
Dave
back2grid - 09 Dec 2004 21:29 GMT
i would recommand creating a template project. If you custom project is a web
application, then create a generic web app, then add all you custom file,
references etc to the project.
Now everytime you want to make a new custom project just use this .csproj as
the reference and use the AddFromTemplate method.

if you want to just add an item to a specific folder then
use

prj.ProjectItems.Item(IDEObject.SelectedItems.Item(1).Name).ProjectItems.AddFromTemplate(myFile","MyfileName);

> I have created a C# project template that adds files like:
> New.bmp
[quoted text clipped - 13 lines]
> Thanks,
> Dave

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.