Licensing

U_Jake

New member
Joined
Aug 29, 2006
Messages
1
Programming Experience
1-3
Hello


I wrote a program that generates and compiles classes (using CodeDOM), which results in a DLL-file.
Suppose a developper bought a license for this program and generates a file test.DLL

Then i want this developper to be able to write new programs himself, using this test.DLL in it. This developping will only be able on his own machine (the one he bought a license for). He's able to distribute his program, together with his test.DLL
Once it is installed (or even just copied) to another machine, the test.DLL will of course still work in together with the application this developper wrote, but it will not be possible to design new programs with it on this machine.

Or: when somebody adds test.DLL to his references (and/or makes a build with test.DLL in his references), then the build will only succeed when the machine has a license. Preferably not only in Visual Studio.

I tried to distinguish these 2 cases using
System.ComponentModel.LicenseContext.UsageMode
and
Me.DesignMode (only when inheriting from Component)

None of these worked.
Does anyone has a clue on how i can test if a build is going on? Or perhaps any other suggestions?


Thanks in advance,
Jan
 
Back
Top