usql icon indicating copy to clipboard operation
usql copied to clipboard

Provide NUGET packages for customization related assemblies

Open ddobric opened this issue 10 years ago • 8 comments

When implementing custom components (i.E extractors), we are required to implement specific interfaces. For example IExtractor. The implementation of interfaces is contained in assembly Microsoft.Analytics.Interfaces. Right now this assembly seems to be installed in following path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PublicAssemblies\

What is the recommended way to reference this and possibly other required assemblies? I'm surprised that this assembly is not contained in the NuGet package.

ddobric avatar Nov 04 '15 17:11 ddobric

I've had the same issue when I was building my solution with MyGet that couldn't find the DLLs.

tomkerkhove avatar Nov 04 '15 17:11 tomkerkhove

Great feedback. We will look into this for the assemblies required for building U-SQL extensions.

In the meanwhile, could anyone who would like NuGet support please vote for the feature here: https://feedback.azure.com/forums/327234-data-lake/suggestions/10549797-provide-nuget-packages-for-customization-related-a

saveenr avatar Nov 04 '15 18:11 saveenr

Currently I'm using a private temporary NuGet package that leverage these DLLs. If it is allowed I can open it up for now?

tomkerkhove avatar Nov 06 '15 18:11 tomkerkhove

Tom, feel free to open it up.

saveenr avatar Nov 06 '15 19:11 saveenr

Thanks, hope this helps you @ddobric.

You can install the extensibility DLLs with the following command. Install-Package TomKerkhove.Analytics.Extensibility

You can install the extensibility & testing DLLs with the following command. Install-Package TomKerkhove.Analytics.Extensibility.Testing

tomkerkhove avatar Nov 06 '15 19:11 tomkerkhove

Thanks Top. Will try. Btw. Is there any recommended testing tools or libraries? For example, to test extractor we need some kind of mocking host, which emulates kona. How do you do this guys?

ddobric avatar Nov 06 '15 19:11 ddobric

Here's a write-up of my fix - http://www.codit.eu/blog/2015/11/20/automated-builds-with-azure-data-lake-extensibility/

The tooling come with Unit Test templates that you can use at the moment. That's how I do it at the moment.

tomkerkhove avatar Nov 20 '15 13:11 tomkerkhove

@ddobric , I've added an item to the doc backlog for the unit testing guidance. We've build things in a way that everything should be mockable, and there is a local run capability (with debugging) that will be released very shortly

mwinkle avatar Nov 20 '15 16:11 mwinkle