Discussion:
[Nant-users] Licensing issue
James Texter
2003-05-28 16:16:56 UTC
Permalink
I have an application in C# that utilizes the DevComponents DotNetBar
control. I have put together a NANT build file which builds the file
just fine, but apparently the control does a runtime licensing check,
and when I compile my app with NANT, I get a nag screen saying the
component isn't registered. I have tried using the license task, but
have gotten stuck with it. I have the <license> task creating a
.license file, but what do I do with it after that? Is anyone else
using this particular 3rd party component? If so, how did you get
around this? Any help is greatly appreciated.



Thanks,



James Texter

Amcat

Software Engineer

Amcat Office: 800-364-5518, ext 412

Email: ***@amcat.com

www.amcat.com
Sascha Andres
2003-05-28 16:51:07 UTC
Permalink
Hello,
Post by James Texter
have gotten stuck with it. I have the <license> task creating a
.license file, but what do I do with it after that? Is anyone else
using this particular 3^rd party component? If so, how did you get
around this? Any help is greatly appreciated.
We're using this component too. And we're having great
problems with the licx file. Well indeed the <license> task
makes errors. It says he can't find the types defined in the
dll from dotnetbar.

Can you post your license task definition?

I think then you must include the license as a resource.

Bye,

Sascha
--
sa at programmers-world dot com
http://www.livingit.de
Bookmarks online: http://www.mobile-bookmarks.info
Soon available in english

... Logically incoherent, semantically incomprehensible, and
legally ... impeccable!
James Texter
2003-05-28 18:42:36 UTC
Permalink
Here is my license task(watch for word wrap). One thing to note is that
I get no errors, it just doesn't seem to get embedded into the EXE.
I've tried adding in SampleApp.exe.licenses as a source, a reference, a
resource, and a module. Each time I try to add it in, I get compiler
errors.

<license input="C:\Development\SampleApp\licenses.licx"
output="C:\Development\SampleApp\bin\debug\SampleApp.exe.licenses"
target="C:\Development\SampleApp\bin\debug\SampleApp.exe.licenses">
<assemblies>
<includes name="C:\Program
Files\DotNetBar\v3.0.0.0\DevComponents.DotNetBar.dll"/>
<includes name="C:\Program
Files\Infragistics2003\UltraWinEditors\v2.00.5000\Infragistics.Win.Ultra
WinEditors.v2.dll"/>
<includes name="C:\Program
Files\Infragistics2003\UltraWinTree\Infragistics.Win.UltraWinTree.v2.dll
"/>
<!--<includes name="C:\Program
Files\Infragistics2003\UltraWinGrid\v2.00.5000\"/>-->
</assemblies>
</license>

James Texter
Amcat
Software Engineer
Amcat Office: 800-364-5518, ext 412
Email: ***@amcat.com
www.amcat.com


-----Original Message-----
From: Sascha Andres [mailto:***@programmers-world.com]
Sent: Wednesday, May 28, 2003 11:51 AM
To: nant-***@lists.sourceforge.net
Subject: Re: [Nant-users] Licensing issue

Hello,
Post by James Texter
have gotten stuck with it. I have the <license> task creating a
.license file, but what do I do with it after that? Is anyone else
using this particular 3^rd party component? If so, how did you get
around this? Any help is greatly appreciated.
We're using this component too. And we're having great
problems with the licx file. Well indeed the <license> task
makes errors. It says he can't find the types defined in the
dll from dotnetbar.

Can you post your license task definition?

I think then you must include the license as a resource.

Bye,

Sascha
--
sa at programmers-world dot com
http://www.livingit.de
Bookmarks online: http://www.mobile-bookmarks.info
Soon available in english

... Logically incoherent, semantically incomprehensible, and
legally ... impeccable!


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Sascha Andres
2003-05-28 20:05:16 UTC
Permalink
Hi,
Post by James Texter
Here is my license task(watch for word wrap). One thing to note is that
I get no errors, it just doesn't seem to get embedded into the EXE.
I've tried adding in SampleApp.exe.licenses as a source, a reference, a
resource, and a module. Each time I try to add it in, I get compiler
errors.
[...]
Okay, with your example I managed to compile the licenses
file and to get it in the exe. At least the verbose of the
<csc> Task tells me so.

Here's how mine looks (interesting, we're using The
Ultragrid too :)):


,----[ Sample.build ]-
| <license input="${project.sourcedrive}${nant.project.name}\licenses.licx" output="${build.dir}\Sample.exe.lincenses" licensetarget="Sample.exe">
| <assemblies>
| <includes name="${build.dir}\bin\${licenses.dotnetbar}"/>
| <includes name="${build.dir}\bin\${licenses.ultrawineditor}"/>
| <includes name="${build.dir}\bin\${licenses.ultrawingrid}"/>
| </assemblies>
| </license>
|
| <csc target="winexe" debug="${build.debug}" output="${build.dir}\bin\Sample.exe" verbose="true">
| <sources>
| <includes name="${project.sourcedrive}${nant.project.name}\*.cs" />
| </sources>
| <references>
| <includes name="${build.dir}\references\*.dll" />
| </references>
| <resources>
| <includes name="${project.sourcedrive}${nant.project.name}\*.resx" />
| <includes name="${project.sourcedrive}${nant.project.name}\GUIV2.dotNetBarManager.xml" />
| <includes name="${build.dir}\*" />
| </resources>
| </csc>
`----

This compiles, but when starting the Not registered Form
pops up :(

If I get faster I'll post it.

Sascha
--
sa at programmers-world dot com
http://www.livingit.de
Bookmarks online: http://www.mobile-bookmarks.info
Soon available in english

A fool-proof method for sculpting an elephant: first, get a huge block
of marble; then you chip away everything that doesn't look like an
elephant.
Swann, Eric
2003-05-28 20:17:41 UTC
Permalink
I'm also struggling with this same issue. If anybody figures out how to
make this work, please let us know.

Thanks,
Eric Swann
Technical Architect
IronRhino Inc.

-----Original Message-----
From: Sascha Andres [mailto:***@programmers-world.com]
Sent: Wednesday, May 28, 2003 3:05 PM
To: nant-***@lists.sourceforge.net
Subject: Re: [Nant-users] Licensing issue

Hi,
Post by James Texter
Here is my license task(watch for word wrap). One thing to note is
that
Post by James Texter
I get no errors, it just doesn't seem to get embedded into the EXE.
I've tried adding in SampleApp.exe.licenses as a source, a reference,
a
Post by James Texter
resource, and a module. Each time I try to add it in, I get compiler
errors.
[...]
Okay, with your example I managed to compile the licenses
file and to get it in the exe. At least the verbose of the
<csc> Task tells me so.

Here's how mine looks (interesting, we're using The
Ultragrid too :)):


,----[ Sample.build ]-
| <license
input="${project.sourcedrive}${nant.project.name}\licenses.licx"
output="${build.dir}\Sample.exe.lincenses" licensetarget="Sample.exe">
| <assemblies>
| <includes
name="${build.dir}\bin\${licenses.dotnetbar}"/>
| <includes
name="${build.dir}\bin\${licenses.ultrawineditor}"/>
| <includes
name="${build.dir}\bin\${licenses.ultrawingrid}"/>
| </assemblies>
| </license>
|
| <csc target="winexe" debug="${build.debug}"
output="${build.dir}\bin\Sample.exe" verbose="true">
| <sources>
| <includes
name="${project.sourcedrive}${nant.project.name}\*.cs" />
| </sources>
| <references>
| <includes name="${build.dir}\references\*.dll" />
| </references>
| <resources>
| <includes
name="${project.sourcedrive}${nant.project.name}\*.resx" />
| <includes
name="${project.sourcedrive}${nant.project.name}\GUIV2.dotNetBarManager.
xml" />
| <includes name="${build.dir}\*" />
| </resources>
| </csc>
`----

This compiles, but when starting the Not registered Form
pops up :(

If I get faster I'll post it.

Sascha
--
sa at programmers-world dot com
http://www.livingit.de
Bookmarks online: http://www.mobile-bookmarks.info
Soon available in english

A fool-proof method for sculpting an elephant: first, get a huge block
of marble; then you chip away everything that doesn't look like an
elephant.


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Sascha Andres
2003-05-29 09:21:20 UTC
Permalink
Hi,
Post by Swann, Eric
I'm also struggling with this same issue. If anybody figures out how to
make this work, please let us know.
[...]
I got the answer from devcomponents.com to copy the dll in
the same directory as lc.exe. Well, it did not help me (when
compiling there araises an exception about string name
verification). Compiling with Visual Studio brought the
unlicensed component up.

Sascha
--
sa at programmers-world dot com
http://www.livingit.de
Boomarks online: http://www.mobile-bookmarks.info
Soon available in english
Sascha Andres
2003-05-29 11:15:36 UTC
Permalink
Hi,

in a sample I got from devcomponents.com they put all the
code and a compile bat in one dir. The license.licx file
looks like this:

DevComponents.DotNetBar.DotNetBarManager,
DevComponents.DotNetBar

The lc call in the compile.bat they provided looks like
this:

<path_to_lc>\lc.exe /target:WindowsApplication4.exe
/complist:licenses.txt /i:devcomponents.dotnetbar.dll

This turns out fully functional, but if I try to use this
tip when building to another directory then the
sourcedirectory, it blows up...

Ciao Sascha
--
sa at programmers-world dot com
http://www.livingit.de
Bookmarks online: http://www.mobile-bookmarks.info
Soon available in english

"Do you think what we're doing is wrong?"
"Of course it's wrong! It's illegal!"
"I've never done anything illegal before."
"I thought you said you were an accountant!"
Sascha Andres
2003-05-29 11:36:58 UTC
Permalink
Hi,
Post by Sascha Andres
This turns out fully functional, but if I try to use this
tip when building to another directory then the
sourcedirectory, it blows up...
I had a typo. I created a Sample.exe.linceses file which
cannot function as a license. After correcting this, all
compiles well.

Bye,
Sascha
--
sa at programmers-world dot com
http://www.livingit.de
Bookmarks online: http://www.mobile-bookmarks.info
Soon available in english

Certainly there are things in life that money can't buy, but it's very funny--
Did you ever try buying them without money?
-- Ogden Nash
Loading...