I tried intalling Mvc Mailer by entering the command "Install-Package MvcMailer" in the Package Manager Console, but I'm getting the following error message:
Successfully installed 'MvcMailer 1.1'.
Successfully added 'MvcMailer 1.1' to MatchesHorsConcours.
Install-Package : The term 'Set-DefaultScaffolder' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name
, or if a path was included, verify that the path is correct and try again.
At line:1 char:16
+ Install-Package <<<< MvcMailer
+ CategoryInfo : NotSpecified: (:) [Install-Package], CommandNotFoundException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Well, in fact, it istalls MvcMailer, but something goes wrong during the configuration I guess.
I already have these two packages installed:
T4Scaffolding 1.0.2
MvcScaffolding 1.0.2
I've also been using MVC mailer and encountered the same error.
I've fixed the issue by using the latest packages of T4Scaffolding and EntityFramework.
Go to your project (in your case MatchesHorsConcours) and start the PackageManager console (MatchesHorsConcours should be selected in the Default project dropdown of the PackageManager console).
Remove MVC mailer and its dependencies:
uninstall-package mvcmailer -RemoveDependencies
Install the latest EntityFramework package
install-package EntityFramework
Install the latest T4Scaffolding package
install-package T4Scaffolding
Now install MVCMailer
install-package MvcMailer
This should do the trick - let me know if you still encounter problems after doing this.
Related
I am trying to enable-migrations and add-migration in the project but getting error.
Anyone faced same issue please share your experience.
Visual Studio 2013
Entity Framework 6.4.4
Error:
PM> Add-Migration 'Intialize Database'
Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
Add-Migration 'Intialize Database'
+ CategoryInfo : ObjectNotFound: (Add-Migration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
You need to install Microsoft.EntityFrameworkCore.Tools nuget to access EF Core tools such Add-Migration:
Package Manager Console:
Install-Package Microsoft.EntityFrameworkCore.Tools
.NET CLI command:
dotnet add package Microsoft.EntityFrameworkCore.Tools
i'm trying to install "Install-Package Xamarin.Android.Support.Design" into Xamarin Visual Studio 2015, but after it starts downloading, this error occurs
Install-Package : Unable to find package 'Xamarin.Android.Support.Design'
At line:1 char:1
+ Install-Package Xamarin.Android.Support.Design
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
i don't understand any of that, what is wrong?
Ensure that you have a proper NuGet source defined. You can go to Tools -> Options -> NuGet Package Manager -> Package Sources to make sure. i.e.: https://api.nuget.org/v3/index.json
Secondly you should double check that your NuGet version is the latest. Go to Tools -> Extensions and Updates and update if you aren't on the latest version.
Finally you could also try to manually download the package from https://www.nuget.org/packages/Xamarin.Android.Support.Design/ and setup a local NuGet repository to ensure that works. Chances are one of the first bullets should fix this.
Source: https://github.com/NuGet/Home/issues/842
After running Install-Package Elmah.MVC, I get the following error in Visual Studio:
Install-Package : Unable to find package 'Elmah.MVC'.
At line:1 char:1
+ Install-Package Elmah.MVC
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
For my Package Source, I've tried both the following, to no avail. I've even tried Install-Package EntityFramework, and same error.
https://www.nuget.org/api/v2/
https://api.nuget.org/v3/index.json
You can try the following solutions to cope with your issue:
Solution # 1
Delete all the folders inside of the packages folder.
Update all packages in Nuget Package Manager.
Solution # 2
type in the package manager console Uninstall-Package EntityFramework -force, then delete the EntityFramework Folder in Package Folder, and then install it again Install-Package EntityFramework
Solution #3
Use the following link : https://docs.nuget.org/Release-Notes/Known-Issues
From the VS command prompt, run the following command:
regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VsLangproj.olb"
Solution #4
Clear the package Cache:
Tools->package Manager->Package Manager Settings-> Clear Package Cache
I hope one of the above methods will help you solve the issue.
Hi I'm trying to download the Google Calendar v3 API from nuget. When I type "Install-Package Google.Apis.Calendar.v3 -Pre" into the Package Manager console in Visual Studio 2010, I get this error:
PM> Install-Package Google.Apis.Calendar.v3 -Pre
Install-Package : A parameter cannot be found that matches parameter name 'Pre'.
At line:1 char:45
+ Install-Package Google.Apis.Calendar.v3 -Pre <<<<
+ CategoryInfo : InvalidArgument: (:) [Install-Package], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,NuGet.PowerShell.Commands.InstallPackageCommand
Not Sure where I went wrong. I'm pretty sure that is exactly what they tell you to do on NuGet's website. Any help would be appreciated.
Thanks.
could you please try with the latest NuGet from http://docs.nuget.org/docs/start-here/installing-nuget? it does not repro for me.
also, which project type are you trying to install the package to?
I just installed Windows 8 on my PC and downloaded Microsoft Visual Studio Express 2012 for Windows 8. Updated and everything, and when I try to install anything thru Package Manager Console, I get following error:
PM> Install-Package Parse
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.5.9)'.
Successfully installed 'Newtonsoft.Json 4.5.11'.
Successfully installed 'parse 1.0.5'.
Successfully uninstalled 'Newtonsoft.Json 4.5.11'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'Newtonsoft.Json'.
At line:1 char:1
+ Install-Package Parse
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Does anyone know how to fix this error?
Thanks, Jack
Check if you already have Newtonsoft.Json reference added in packages.config. If yes, delete Newtonsoft.Json entry and retry Install-Package.
Sometimes just removing it from packages.config might not be enough. I had to remove the Newtonsoft.Json directory from the packages-directory, after that installing worked.