We have introduce TFS in our company with a separated build server.
I have problems to get the build up and running now.
Within my solution I have one (or more) Project(s) with the model only and one with the context. All created with the wonderful templates by you.
In the root solution directory there is a directory named "packages" where I put my NuGet packages in and so also the Telerik components.
So my question is, how can I organize my OA dll's etc. like I can compile on remote machines where OA isn't installed.
I have already read THAT - but I do not understand I think...sorry...MSBuild isn't my friend (yet).
Would be nice to hear from you,
7 Answers, 1 is accepted
You can install OpenAccess in your project using NuGet. Just look for our package under the name OpenAccess.CodeFirst. It should contain most of the assemblies you need (plus the enhancer), and you will be able to add whatever assemblies you need as well.
Do let us know if that works for you (hopefully it should). We would be happy to provide assistance if you need any.
the Telerik team
thank you for answering.
I can't get it done. I deleted all references from OA and installed NUGet package. On my working copx I can build perfectly.
I think all assemblies are referenced by the packages directory.
But...when I want to build my solution I can't - you can take a look to the log-file.
It is in german - but perhaps it helps.
I have also installed OA in the most recent version...
I have no plan what is the problem...
Please note that I'm using OA in all projects because I do not use DTO's.
Regards and thank you
I think I'm not the only developer to have problems with that...
Maybe for TFS, SVN an step by step tut... ;-)
Thank you for your wonderful work,
Normally all you need to build the project is the nuget package. Have you added to TFS the whole (SolutionDir)\packages\OpenAccess.CodeFirst.2012.2.628.2 folder, so it can be downloaded on other machines? The error seems like the Telerik.OpenAccess.dll is not present at OpenAccess.CodeFirst.2012.2.628.2\tools\enhancer. It is needed there because the enhancer references it, as well as the Telerik.OpenAccess.SDK assembly.
the Telerik team
sorry, the Telerik.OpenAccess Assembly in enhancer directory wasn't checked in so far...
No matter why?!
Now it works fine - really awesome!
But, when I would use the designer without the OA installation - would it work? Or am I limited to the fluent API?
The Telerik.OpenAccess assembly is in fact copied to the enhancer directory when the nuget package is installed. I guess that Visual Studio has filtered it when you added the new folder to TFS, by default it filters .dll, .exe and some other file types, so you need to include them manually.
I am afraid that you will not be able to use the designer or any other part of our Visual Studio integration without installing OpenAccess. Please note that you can develop your project on a machine which has OpenAccess installed (and use the designer) but still build it on another machine without OpenAccess, using the exact same approach as with the fluent mapping.
the Telerik team
thank you very much!
Yeah, Im using the designer locally and build it remotely - works great!
best regards and go on,