Automatically move file with assembly.

G

Guest

When I reference an assembly in vs.net it will move the .dll and xml comments
to the same directory as the application when it is compiled.

I wan't to cause the same behavior with a license file. So if the license
file is in the directory where my assembly is and vs.net moves a copy of the
assembly into the applications directory (bin\Debug for example) I want to he
license file to move just like the xml comments file does.

Is this possible. Is there some C# attribute I need to put on my class?

Thanks in advance,
Eric Eicke
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

| When I reference an assembly in vs.net it will move the .dll and xml
comments
| to the same directory as the application when it is compiled.
|
| I wan't to cause the same behavior with a license file. So if the license
| file is in the directory where my assembly is and vs.net moves a copy of
the
| assembly into the applications directory (bin\Debug for example) I want to
he
| license file to move just like the xml comments file does.
|
| Is this possible. Is there some C# attribute I need to put on my class?

I do not think this is possible.
 
M

Mattias Sjögren

Eric,
Is this possible. Is there some C# attribute I need to put on my class?

Not tested, but what happens if you add the license file as an
external resource to the assembly? See the /linkres compiler option.


Mattias
 
G

Guest

OK I used al.exe to link the lincense file to the .dll and now it copies it
automatically when referenced. (Even installs in to the GAC sweet!).

Thanks a lot Mattias!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top