all groups > visual studio .net ide > december 2004 >
You're in the

visual studio .net ide

group:

Custom Project - Linked files


Custom Project - Linked files Marc Jennings
12/20/2004 5:16:21 PM
visual studio .net ide: 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
RE: Custom Project - Linked files v-garych NO[at]SPAM online.microsoft.com
12/21/2004 9:24:50 AM
Hi Marc,

[quoted text, click to view]

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

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Re: Custom Project - Linked files Marc Jennings
12/21/2004 4:22:15 PM
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.

On Tue, 21 Dec 2004 09:24:50 GMT, v-garych@online.microsoft.com (Gary
[quoted text, click to view]
Re: Custom Project - Linked files v-garych NO[at]SPAM online.microsoft.com
12/22/2004 2:44:51 AM
[quoted text, click to view]

Great! Marc,

Thanks for sharing this tip with us, happy holidays!


Best regards,

Gary Chang
Microsoft Online Partner Support

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