473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Automatically move file with assembly.

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
Feb 9 '07 #1
4 1898
Hi,

"Eric Eicke" <Er*******@discussions.microsoft.comwrote in message
news:8B**********************************@microsof t.com...
| 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
Feb 9 '07 #2
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.
Feb 9 '07 #3
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.
Feb 10 '07 #4
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.
Feb 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Yogi_Bear_79 | last post by:
Visual Studio .NET started complaing when the array was around 4000. I found that if I pasted the array in via notepad then opened Visual Studio it would work. Now my array is over 26,000 and...
6
by: cpnet | last post by:
I've authored a custom web component (a non-ui component kinda like a DataSet) and so far it's working. When my web component is added to the web form in the designer from the toolbox, the...
3
by: Paul | last post by:
Just wondering when you create a .net dll from say a .net web application does it automatically have public key encryption that will prevent substituting another assembly with the same name for the...
4
by: PAPutzback | last post by:
Message Exception: The process cannot access the file "K:\EDI DATA\ANS\OUTBOUND\ARCHIVE\IPHC20041207.TXT" because it is being used by another process. StackTrace Exception: at...
111
by: Nate | last post by:
Hello, I am looking for a method to automatically declare variables in C. I'm not sure if there is a good way to do this, but I had something like this in mind... int i; for(i = 1; i < 4;...
1
by: Jedufa | last post by:
following of thread: "Adding namespaces to code behind automatically" Hello, I had quite the same problem and got further in the right direction with your suggestions, thanks. Nevertheless, I...
0
by: DNB | last post by:
One of our web application suddenly stopped working. After doing some investigation I did find that following section has been added to web.config file. After removing this section it was...
2
by: Peter | last post by:
Is there a way to automatically update a Windows .NET service, kind of like Click-Once or put a file in the directory and the service would restart it's self and replace the executables or at least...
0
balabaster
by: balabaster | last post by:
Hi all, I'm creating a class factory and a bunch of adapters to allow in house applications to communicate with mobile applications over different cellular networks. I've got my class...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.