Connecting to Workflow Doctor Nuget
Installing Nuget CLI
- Download and latest nuget.exe from [
https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference](https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference) - Copy the downloaded exe file to C:\ProgramData\nuget\
Connecting Visual Studio
To connect the Workflow Doctor internal nuget repo to Visual Studio follow these steps:
- Open Visual Studio
- Go to Tools > Options > NuGet Package Manager > Package Sources
- Add a new package, setting the source to [
http://wfd-nuget.azurewebsites.net/nuget](http://wfd-nuget.azurewebsites.net/nuget)
Publishing a library to Nuget
Visual Studio
- Set your build configuration to release
- Right click the project file in the solution explorer and select 'Pack'
- Navigate in file explorer to the bin/Release folder for the project. In this folder you will now have a file named
*.*.nupkg - Open powershell or command line in the bin/release folder
- Run the following command, replacing the bold section with the correct filename
C:\ProgramData\nuget\nuget.exe push **
FileNameHere** 1b595c06-d66e-4954-8f6c-3decf15370af -Source [http://wfd-nuget.azurewebsites.net/nuget](`http://wfd-nuget.azurewebsites.net/nuget) - After a few seconds the package will be successfully pushed to the internal nuget repository