nuget/chocolatey request

Posts   
 
    
yowl
User
Posts: 266
Joined: 11-Feb-2008
# Posted on: 25-Oct-2018 19:09:40   

Following on from http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=24958 (I bought another license). Can you put cligenerator in nuget? In Devops you can configure an agent to install nuget and then restore packages. Using that I would avoid having to add cligenerator.exe (and its dependencies) or the llblgen installer to my source control. Or chocolatey, I see there's an old version there.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 26-Oct-2018 10:30:36   

For chocolatey, we removed it as we don't have a lite version anymore (the chocolatey version was the lite version). Installing it through chocolatey doesn't make much sense if you don't have a license so we removed it.

The code generator in general needs a registry key for the hint path for the runtime, however if you generate netstandard code, it will pull nuget packages so the hint path isn't needed. This means you can just copy/paste the files (or unzip a zip) in the installation folder to a folder and run the code generator.

Frans Bouma | Lead developer LLBLGen Pro
yowl
User
Posts: 266
Joined: 11-Feb-2008
# Posted on: 26-Oct-2018 14:59:54   

I found that I didn't need a registry key. I'm using .Net 4.5.2 as the Platform (with adapter+MS SQL Server+LLBGen Framework), I had an issue with .netstandard, lack of TransactionScope I think. Agree the license file will always be an issue, I've just added the CI license to source control in the cligenerate.exe folder which may be a distribution violation, but I need to get it to the CI server in the cloud somehow. Maybe you have something you want to add around what is permissible here? I also had a minor issue with the preferences54.xml file. For what it's worth here is my command script which is working for me now in Azure DevOps in case its of interest to anyone else


mkdir %AppData%\"LLBLGen Pro"

cp ..\lib\llcoolj\cligenerator\Preferences54.xml %AppData%\"LLBLGen Pro"\
cd ..\lib\llcoolj\cligenerator

cligenerator %BUILD_REPOSITORY_LOCALPATH%\src\TheHub.Entities.llblgenproj .\TheHub.Entities\ 0

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 26-Oct-2018 17:33:46   

yowl wrote:

I found that I didn't need a registry key. I'm using .Net 4.5.2 as the Platform (with adapter+MS SQL Server+LLBGen Framework), I had an issue with .netstandard, lack of TransactionScope I think.

From what I read this should be usable when using .net core 2.2 (which is released later this year) but haven't tested any code myself on 2.2 yet so can't confirm that this indeed works (knowing what's needed for transactionscope to actually work, I doubt it)

Agree the license file will always be an issue, I've just added the CI license to source control in the cligenerate.exe folder which may be a distribution violation, but I need to get it to the CI server in the cloud somehow. Maybe you have something you want to add around what is permissible here?

for the generator in a CI system, that's ok. The things we want to prevent are: - people sharing a single license on a terminal server - people using the generator/templates system in their own application, generating code at the backend.

I wished I could just give the cligenerator and it would just work, but point 2 above has bitten us a couple of times so we won't do that.

So hereby: if you need to distribute the license to the CI system through sourcecontrol, it's OK to do so, if the license is used by the code generator in the CI system only. (I think that's the way you use it). HTH.

I also had a minor issue with the preferences54.xml file. For what it's worth here is my command script which is working for me now in Azure DevOps in case its of interest to anyone else


mkdir %AppData%\"LLBLGen Pro"

cp ..\lib\llcoolj\cligenerator\Preferences54.xml %AppData%\"LLBLGen Pro"\
cd ..\lib\llcoolj\cligenerator

cligenerator %BUILD_REPOSITORY_LOCALPATH%\src\TheHub.Entities.llblgenproj .\TheHub.Entities\ 0

Thanks for sharing simple_smile (hehe llcoolj)

Frans Bouma | Lead developer LLBLGen Pro
yowl
User
Posts: 266
Joined: 11-Feb-2008
# Posted on: 26-Oct-2018 18:23:28   

Thanks, I'm fine with that. Thanks also for the info on 2.2.