Failed to Install Umbraco CMS via Nuget Visual Studio 2012 - umbraco7

I'm new to Umbraco CMS, and I followed the tutorial from this site to install the umbraco cms in my visual studio.
https://our.umbraco.org/documentation/getting-started/setup/install/install-umbraco-with-nuget
However I got this error
Install-Package : Specified condition "$(WebProjectOutputDirInsideProject)" evaluates to "" instead of a boolean. C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets
At line:1 char:1
+ Install-Package UmbracoCMS
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidProjectFileException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Any idea how to solve this one? I use VS2012, .Net Framework 4.5, Nuget 2.8.6
Thanks to #JanR in the comment section disabled Resharper work for me. However when finish installing and try to run using F5 this error is happen.
Configuration Error :
<add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" useLegacyEncoding="true" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed"/>
Any idea to solve this?

Related

Nuget package manager: can not install/update packages in my visual studio solution

I try to install a nuget package in my software project in visual studio 2022 (Version 17.4.4) with PM-console with the command:
Install-Package Microsoft.Extensions.ObjectPool -ProjectName
I get the following error message:
Sorry the original error message is in german language
Install-Package : Ungültige Wiederherstellungseingabe. Die erforderliche Eigenschaft "ProjectName" fehlt.
Eingabedateien: Drive:<PathToProject><Another project in soulution>.csproj.
In Zeile:1 Zeichen:1
Install-Package Microsoft.Extensions.ObjectPool -ProjectName
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
The Error message means:
Install-Package : Invalid restore input. The required property "ProjectName" is missing.
Input files: Drive:<PathToProject><Another project in solution>.csproj.
In Line:1 Character:1
Nuget version please see here:
Name : Package Manager Host
Version : 6.4.0.111
InstanceId : 5d8e7bdb-2471-415d-9ea7-1f9d2084aa3c
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : de-DE
CurrentUICulture : de-DE
PrivateData : NuGetConsole.Host.PowerShell.Implementation.NuGetPSHost+Commander
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
This is not my first nuget package in my visual studio solution around 10 nuget packages.
The same issue appears wenn I try to install the package with VS NuGet Paket Manager.
Any idea how solve this problem, thanks for your efforts

Xamarin.Forms new project creation has countless errors. Something wrong with nuget?

I am new to Visual Studio.
creating a new project with Xamarin.Forms template gives countless errors, such as
"Can not resolve reference: Xamarin.Forms.Xaml, referenced by
App4. Please add a NuGet package or assembly reference for
Xamarin.Forms.Xaml, or remove the reference to App4. App4.Android"
"the referenced component "system.xml" could not be found." "the
reference component "system" could not be found."
I think something substantial is wrong with the installation; I have tried uninstalling, repairing, and tried VS 2017 and VS 2019. Nothing seems to work.
I tried to manually install the nuget packages, from the package manager and the console. The package manager indicates all the packages are uptodate, and does not let me install any new packages; from the console, installing any package results in this error:
"Install-Package Xamarin.Forms -Version 3.6.0.344457 Restoring
packages for
C:\Users\Navid\source\repos\App4\App4\App4.Android\App4.Android.csproj...
GET
https://www.nuget.org/packages/FindPackagesById()?id='System.Numerics.Vectors'&semVerLevel=2.0.0
GET
https://nuget.org/FindPackagesById()?id='System.Numerics.Vectors'&semVerLevel=2.0.0
NotFound
https://nuget.org/FindPackagesById()?id='System.Numerics.Vectors'&semVerLevel=2.0.0
121ms Retrying 'FindPackagesByIdAsyncCore' for source
'https://nuget.org/FindPackagesById()?id='System.Numerics.Vectors'&semVerLevel=2.0.0'.
Response status code does not indicate success: 404 (Not Found). GET
https://nuget.org/FindPackagesById()?id='System.Numerics.Vectors'&semVerLevel=2.0.0
NotFound
https://www.nuget.org/packages/FindPackagesById()?id='System.Numerics.Vectors'&semVerLevel=2.0.0
168ms Install-Package : Failed to retrieve information about
'System.Numerics.Vectors' from remote source
'https://nuget.org/FindPackagesById()?id='System.Numerics.Vectors'&semVerLevel=2.0.0'.
Response status code does not indicate success: 404 (Not Found). At
line:1 char:1
+ Install-Package Xamarin.Forms -Version 3.6.0.344457
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Time Elapsed: 00:00:01.0871186"

MVC 4 with EF6 on Visual Studio 2013 Scaffolding Error

I have just started using Visual Studio 2013 with EF6 and I have created a demo application with MVC 4. I tried to scaffold a controller but i keep getting an error. I have installed MVCScaffolding from the Package Manager Console and everything installed correctly including T4Scaffolding, T4Scaffolding.Core... however I keep getting this error. Please help me out
Invoke-Scaffolder : A positional parameter cannot be found that accepts argument 'Student'.
At line:1 char:1
+ Scaffold Controller Student -Repository
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-Scaffolder], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,T4Scaffolding.Cmdlets.InvokeScaffolderCmdlet
Please tell me what I am doing wrong. Thanks A lot
I had a similar problem. Try with MVC 5.
Thank you for the suggestions. I solved this by using this command instead. Worked like a charm.
Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre
I got it from this another question

How to resolve "Install-Package : The current environment doesn't have a solution open."

I have a solution having 1 project.
Open Package Manager Console, run Install-Package MSBuildTasks
But it gave me an error below:
Install-Package : The current environment doesn't have a solution open.
At line:1 char:16
+ Install-Package <<<< MSBuildTasks
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationExcep
tion
+ FullyQualifiedErrorId : NuGetNoActiveSolution,NuGet.PowerShell.Commands.InstallPackage
Command
I don't understand why it comes. Kindly suggest me waiting for reply. Thanks
I usually get this error because I created or opened a project (.csproj or other) that doesn't have a saved solution (.sln) associated with it.
If you go to File->Save All it should offer to save the solution somewhere. Save it and that makes the error go away for me.

Error Setting Default Scaffolder

I have a solution that uses NuGet to manage packages, and I also use the Package Manager Console for Entity Framework Migrations. Everything has worked fine for around a year.
This morning I removed a few projects from the solution as part of a reorganization. Now when I open the Package Manager Console, I am greeted with the error message
Set-DefaultScaffolder : Object reference not set to an instance of an object.
At E:\Dev\survey\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 char:9
+ Set-DefaultScaffolder -Name CustomTemplate -Scaffolder
T4Scaffolding.Cus ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], NullR
eferenceException
+ FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
What is causing this, and how can I fix it?
I installed Visual Studio 2012 SP2 a day or so after posting this issue, and it resolved itself.
Unsure whether SP2 fixed the underlying issue or just reset something, but either way the problem is resolved.

Resources