Azure / Azurite

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies
MIT License
1.83k stars 325 forks source link

Azurite nuget: clarify emulator startup #159

Open JohnPenney opened 5 years ago

JohnPenney commented 5 years ago

The README says that after installing the nuget package it will "immediately start [azurite] in a dedicated console window".

It's not clear from this when the emulator will start thereafter... when the project is loaded? Built? Run?

This is relevant to me because I want to control the emulator as part of a test: see this StackOverflow question

LubosKato commented 5 years ago

Got same issue its not starting Azurite on test execution in my Integration tests project using VS 2017

XiaoningLiu commented 5 years ago

I believe after Install-Package Azurite , Azurite will start immediately with a init.ps1 file.

"Init.ps1 runs the first time a package is installed in a solution. If the same package is installed into additional projects in the solution, the script is not run during those installations. The script also runs every time the solution is opened. For example, if you install a package, close Visual Studio, and then start Visual Studio and open the solution, the Init.ps1script runs again."

Better integration with Visual Studio is in our radar, especially after we refactored and release latest Azurite V3.

frankely commented 5 years ago

Is this only available for Visual Studio users, how about for JetBrains Rider users?

XiaoningLiu commented 5 years ago

@frankely I'm not famialir with JetBrain Rider ecosystem. Any suggestions?

frankely commented 4 years ago

@XiaoningLiu it would be nice if we could wrap this into a NuGet package that exposes some sort of class that allows us to decide when to start/stop the service so we can set it up or down during our tests. For example, this library Mongo2Go has done an excellent job doing that https://github.com/Mongo2Go/Mongo2Go

XiaoningLiu commented 4 years ago

Thanks @frankely We will evulate NuGet as Azurite V3's release channel.

jdom commented 1 year ago

Is this possible with some 1st or 3rd party nuget package already?