How can I use NuGet packages in my Azure Functions?

Yes! Although the Azure Functions portal does not currently provide a mechanism to add and manage NuGet packages, the runtime supports NuGet references and will make sure they are correctly used when compiling and executing your functions. In order to define your dependencies, you need to create a Project.json file with the required NuGet package … Read more

How to connect to MySQL Database?

Install Oracle’s MySql.Data NuGet package. using MySql.Data; using MySql.Data.MySqlClient; namespace Data { public class DBConnection { private DBConnection() { } public string Server { get; set; } public string DatabaseName { get; set; } public string UserName { get; set; } public string Password { get; set; } private MySqlConnection Connection { get; set;} private … Read more

Is it possible to change the location of packages for NuGet?

It’s now possible to control which folder the packages are installed into. http://nuget.codeplex.com/workitem/215 Edit: See Phil Haack’s comment on Dec 10 2010 at 11:45 PM (in the work item/the link above). The support is partially implemented in 1.0, but is not documented. According to @dfowler: Add a nuget.config file next to the solution with this: … Read more