PC Review


Reply
Thread Tools Rate Thread

Automatically move file with assembly.

 
 
=?Utf-8?B?RXJpYyBFaWNrZQ==?=
Guest
Posts: n/a
 
      9th Feb 2007
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
 
Reply With Quote
 
 
 
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      9th Feb 2007
Hi,

"Eric Eicke" <(E-Mail Removed)> wrote in message
news:8B1D5BE6-ED25-471F-87AC-(E-Mail Removed)...
| 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.


--
Ignacio Machin
machin AT laceupsolutions com


 
Reply With Quote
 
Mattias Sjögren
Guest
Posts: n/a
 
      9th Feb 2007
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

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
=?Utf-8?B?RXJpYyBFaWNrZQ==?=
Guest
Posts: n/a
 
      10th Feb 2007
Is that the same as making the Build Action of an item you project to be
Cotent?

"Mattias Sjögren" wrote:

> 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
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

 
Reply With Quote
 
=?Utf-8?B?RXJpYyBFaWNrZQ==?=
Guest
Posts: n/a
 
      10th Feb 2007
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!!



"Mattias Sjögren" wrote:

> 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
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
move fill automatically to another file reza Microsoft Excel Worksheet Functions 1 15th Oct 2009 06:43 PM
automatically move data to another file reza Microsoft Excel Misc 1 7th Oct 2009 01:34 PM
How to move sent items automatically to archive file =?Utf-8?B?QWJkdWxsYWhBYnVBc2JlaA==?= Microsoft Outlook Discussion 1 11th May 2005 09:36 AM
Word2K File open dialog will automatically move to first file in l =?Utf-8?B?VG9tIEJlYXR5?= Microsoft Word Document Management 1 25th Oct 2004 08:55 PM
manifest for non-assembly file in a Multi-file Assembly scenario... Dan Microsoft Dot NET Framework 4 7th Jan 2004 10:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:19 PM.