0

I couldnt find a way to do this:

i.e. i have myFuncions.cs file somewhere in my pc (i.e. D:\myFuncions.cs)

I might update this file everyday (add other methods). I want to include/reference that file in different solutions/projects (but not using "import" way, but always including that source file directly).

T.Todua
  • 53,146
  • 19
  • 236
  • 237

1 Answers1

2

When you add the file, in the VS add file window, you can click the drop down next to the “Add” button and choose to add as “Add as Link” instead. Then the file can be shared across multiple projects/solutions.

There is a similar answer here although the question is broader: How do you share code between projects/solutions in Visual Studio?

blins
  • 2,515
  • 21
  • 32