Azure / usql

U-SQL Examples and Issue Tracking
http://usql.io
MIT License
234 stars 685 forks source link

Provide NUGET packages for customization related assemblies #11

Open ddobric opened 8 years ago

ddobric commented 8 years ago

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.

tomkerkhove commented 8 years ago

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

saveenr commented 8 years ago

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

tomkerkhove commented 8 years ago

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

saveenr commented 8 years ago

Tom, feel free to open it up.

tomkerkhove commented 8 years ago

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

ddobric commented 8 years ago

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?

tomkerkhove commented 8 years ago

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.

mwinkle commented 8 years ago

@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