I want some Moore

Blog about stuff and things and stuff. Mostly about SQL server and .Net
posts - 218, comments - 2281, trackbacks - 33

My Links

Advertisement

News

Hi! My name is 
Mladen Prajdić  I'm from Slovenia and I'm currently working as a .Net (C#) and SQL Server developer.

I also speak at local user group meetings and conferences like SQLBits and NT Conference
Welcome to my blog.
SQL Server MVP

My Books

SQL Server MVP Deep Dives 2
The Red Gate Guide to SQL Server Team based Development Free e-book

My Blog Feed via Email
Follow MladenPrajdic on Twitter


Users Online: who's online

Article Categories

Archives

Post Categories

Cool software

Other Blogs

Other stuff

SQL stuff

Adding one file to multiple projects in a .Net solution

There are times when you want to have one .cs file in multiple projects. However if you do Add existing item you’ll notice that the file is copied to each project’s folder. This is not what we want.

The solutions is of course pretty simple once you know where to look. In the Add existing item dialog you have to add the file as a Link as is shown on the picture:

 

AddCommonItem

And there you go. you can have one file in multiple projects.

kick it on DotNetKicks.com

Print | posted on Friday, June 05, 2009 4:03 PM | Filed Under [ .Net Back to Basics ]

Feedback

Gravatar

# re: Adding one file to multiple projects in a .Net solution

:) guess, never thought on checking what combo button does on Add Button...nice discovery... :)
6/7/2009 4:33 PM | Bojan Vrhovnik
Gravatar

# re: Adding one file to multiple projects in a .Net solution

Thanks for this tip

7/12/2009 6:14 AM | Simi Sreedharan
Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET