Module Manager - Nuget Issue

Use this forum to ask questions after your subscription maintenance expires or 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.
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
timstspry17
Posts: 45
Last visit: Tue Apr 18, 2023 2:49 pm

Module Manager - Nuget Issue

Post 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.
Attachments
SapienModuleManagerIssue.png
SapienModuleManagerIssue.png (8.94 KiB) Viewed 17294 times
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Module Manager - Nuget Issue

Post 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!
User avatar
timstspry17
Posts: 45
Last visit: Tue Apr 18, 2023 2:49 pm

Re: Module Manager - Nuget Issue

Post by timstspry17 »

That did the trick. Thank you so much for your help!
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.