Link to home
Create AccountLog in
Avatar of panJames
panJames

asked on

Using existing file without copying it

Hello experts.

I have some files I want to use across two applications.

By adding existing file I actually copy the file across and keep new copy of it.

How can I use the same file in two applications without making a new copy of it?

Thank you

panJames
Avatar of ingriT
ingriT
Flag of Netherlands image

What do you mean by using the same file? You can ofcourse open the file from the original location.

Your question does not provide enough information to help you.
Avatar of panJames
panJames

ASKER

I have a FILE with some methods in it.

I want to use it in application AAA.

I add existing item (my FILE) to AAA.

I can use it now.

Problem is that I copied FILE to AAA folder and I do not want to copy it, I want to use it without copying.

How can I achieve it?

panJames

SOLUTION
Avatar of ingriT
ingriT
Flag of Netherlands image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Is there any easier method?
Something like adding path to the file?

Is it possible to add such a path to "using" directive?
Only with DLL's, not the 'raw' .cs files.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
My own solution was the best one.