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 / IDE / December 2004

Tip: Looking for answers? Try searching our database.

Custom Project - Linked files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marc Jennings - 20 Dec 2004 17:13 GMT
Hi There,

I am in the process of creating custom project types for ther commonly
used assemblies that I create.

What I'd like to be able to do it to automatically add a *linked* file
(AssemblyInfo.cs) to each of my new Class Library objects.

I can add a templated version easily enough (in C:\Program
Files\Microsoft Visual Studio .NET
2003\VC#\VC#Wizards\CustomClass_1\Templates\1033\Templates.inf), but I
cannot find how to add a linked file on project creation.  Can anyone
help with this, please?

Thanks
Marc.
Gary Chang[MSFT] - 21 Dec 2004 09:24 GMT
Hi Marc,

> What I'd like to be able to do it to automatically add a *linked* file
> (AssemblyInfo.cs) to each of my new Class Library objects.

What's the meaning of the *linked* here, compliles or referenced one?

By the way, do you have tried the AddFromFile Method?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/ht
ml/vxlrfaddfromfilemethodprojectitemsobject.asp

Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Marc Jennings - 21 Dec 2004 16:19 GMT
OK, I figured out a solution to most of my problems.

I had not previously realised that you could specify a template file
to create a new project from.  I created the project, and added the
links (Add exiting item > open as link) and opened the project file in
Notepad.  I then copied the bits I needed (linked files, settings and
references, etc.) into a copy of the default project.csproj file, and
away I go.

I shall be blogging the steps later, so I can post the link if anyone
is interested?

Marc.

>Hi Marc,
>
[quoted text clipped - 17 lines]
>This posting is provided "AS IS" with no warranties, and confers no rights.
>--------------------
Gary Chang[MSFT] - 22 Dec 2004 02:44 GMT
> OK, I figured out a solution to most of my problems.
> ...

Great! Marc,

Thanks for sharing this tip with us, happy holidays!

Best regards,

Gary Chang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

Rate this thread:







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.