Creating your own PowerShell repository is, fortunately, not that hard. In order to create a simple testing environment with an Active Directory domain, a public key infrastructure, a SQL server and a web server, we are using the AutomatedLab
lab framework and a machine running Hyper-V. The framework can also use Azure or VMware. This environment more closely resembles an actual enterprise infrastructure.
Note
For a local testing guide without any infrastructure, see: https://github.com/NuGet/NuGetGallery. The readme.md
on the main page explains the basic steps.
While setting up the gallery this way requires the Windows operating system and the full .NET Framework, other NuGet Galleries might have different prerequisites.
In order to build a lab environment to test in, the following script can be used. It will require the Windows Server 2016 ISO as well as SQL Server 2017 as an ISO file:
$labName = 'NugetLab'
# Create a new lab definition - use your favorite hypervisor
New...