Page 1 of 1

Module Manager - Nuget Issue

Posted: Sat Aug 25, 2018 2:40 pm
by timstspry17
To help you better we need some information from you.

*** Please fill in the fields below if you are currently using a Trial Version of the Product. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: Module Manager 1.0.1Beta
32 or 64 bit version of product:64 bit
Operating system:
32 or 64 bit OS:64 bit

*** Please add details and screenshots as needed below. ***

I have Nuget installed when I installed Visual Studio 2017 Enterprise Edition on my laptop. When I launch Module Manager, it displays a message that Nuget does not appear to be installed.

Re: Module Manager - Nuget Issue

Posted: Sat Aug 25, 2018 5:13 pm
by mxtrinidad
Keep in mind, Visual Studio Nuget installation is not related PowerShell. You need to register Nuget/PowerShellGet repository first in Windows PowerShell, And, preferably use the ".. Run as Administrator" when opening the console.

Use the following script code to register Nuget in PowerShell. At the PowerShell console prompt, execute the following code:

Code: Select all

function Verify-NugetRegistered
{
	[CmdletBinding()]
	Param ()
	# Microsoft provided code:
	# Register NuGet package source, if needed
	# The package source may not be available on some systems (e.g. Linux/Windows)
	if (-not (Get-PackageSource | Where-Object{ $_.Name -eq 'Nuget' }))
	{
		Register-PackageSource -Name Nuget -ProviderName NuGet -Location https://www.nuget.org/api/v2
	}
	else
	{
		Write-Host "NuGet Already Exist! No Need to install." -ForegroundColor Yellow;
	};
};

## - Execute:
Verify-NugetRegistered
After this is done, then reinstall Module Manager.

As this is a Preview version, we'll make a note to verify that Nuget is already register in Windows PowerShell.

Hope this will clear the issue!

Re: Module Manager - Nuget Issue

Posted: Sun Aug 26, 2018 1:36 pm
by timstspry17
That did the trick. Thank you so much for your help!