Module Manager - Nuget Issue

Use this forum to ask questions before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
timstspry17
Posts: 31
Joined: Sun Sep 06, 2015 9:31 pm

Module Manager - Nuget Issue

Post by timstspry17 » Sat Aug 25, 2018 2:40 pm

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.
Attachments
SapienModuleManagerIssue.png
SapienModuleManagerIssue.png (8.94 KiB) Viewed 15636 times

User avatar
mxtrinidad
Site Admin
Posts: 294
Joined: Sun Mar 03, 2013 12:42 pm

Re: Module Manager - Nuget Issue

Post by mxtrinidad » Sat Aug 25, 2018 5:13 pm

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!

User avatar
timstspry17
Posts: 31
Joined: Sun Sep 06, 2015 9:31 pm

Re: Module Manager - Nuget Issue

Post by timstspry17 » Sun Aug 26, 2018 1:36 pm

That did the trick. Thank you so much for your help!