Configuring build agent without install

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
luke_rdr
Posts: 1
Joined: Tue 29 Apr 2014 15:18

Configuring build agent without install

Post by luke_rdr » Tue 29 Apr 2014 15:52

Hi,
Please could you advise us on what steps are required to configure a build agent (TFS Team Build/MSBuild) to be able to build applications that use dotConnect for SQLite (code generation and assembly resource embedding from EDML files). Is there any way we can avoid having to run the installer, add assemblies into the GAC and alter the machine.config?
Thanks,
Luke

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Configuring build agent without install

Post by Shalex » Wed 30 Apr 2014 10:10

As you want to avoid installing dotConnect for SQLite on build server, you should:

1) compile the license resource manually on a development computer (where dotConnect for SQLite is installed), and then copy it to build server and attach it to your project as an Embedded Resource

2) create Devart Entity Model (*.edml) and generate code using a standalone Entity Developer (Start > All Programs > Devart Entity Developer > Entity Developer) on a development computer. Then add the generated code/mapping files instead of *.edml itself to your project on build server

3) copy the needed Devart.* assemblies to your project on build server

If this information doesn't help, please specify the exact text of the error and its call stack you are getting on your build server.

smuddasu
Posts: 9
Joined: Wed 16 Sep 2009 19:53

Re: Configuring build agent without install

Post by smuddasu » Tue 23 Feb 2016 15:18

What should be in the connectionString? should it still have the references to metadata ?
For example,
<add name="MeetingListEntitiesConnectionString" connectionString="metadata=res://MeetingListService/MeetingListModel.csdl|res://MeetingListService/MeetingListModel.ssdl|res://MeetingListService/MeetingListModel.msl;provider=Devart.Data.Oracle;provider connection string="User Id=demouser;Password=demopassword;Server=demoserver;Persist Security Info=True"" providerName="System.Data.EntityClient" />

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Configuring build agent without install

Post by Shalex » Wed 24 Feb 2016 05:44

to smuddasu

If you set Metadata Artifact Processing=Copy To Output Directory in your *.edml, the connection string would be:

Code: Select all

<add name="MeetingListEntitiesConnectionString" connectionString="metadata=.\MeetingListModel.csdl|.\MeetingListModel.ssdl|.\MeetingListModel.msl;provider=Devart.Data.Oracle;provider connection string="User Id=demouser;Password=demopassword;Server=demoserver;Persist Security Info=True"" providerName="System.Data.EntityClient" />

Post Reply