I am trying to upgrade my umbraco project (version 4.11.10) with uCommerce (version 3.2.3.13009) to umbraco (version 6.0) with ucommerce (for version of umbraco). but when I run the upgrade package of uCommerce after upgrading umbroco project to version 6.0. I get the following error:
"AppHostBase.Instance has already been set"
Please advice what should be done in this regard?
Related
While installing the package Microsoft.EntityFrameworkCore.Tools for using EF in my project using Nuget, I'm persistently running into the below error. Notice I didn't get any error while installing other related packages used for EF core
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.Relational
Microsoft.EntityFrameworkCore.SqlServer
Here is the location of the file ef.exe
Basically the intention behind installing this package is to use EF command-line tools. I'm currently on Windows 10 and the .NET SDK installed on my machine is 3.1. I had previously 2 SDK's installed on my system(3.1 & 5.0). As per microsoft's documentaion, "The .NET CLI must choose an SDK version for every dotnet command. It uses the latest SDK installed on the machine by default." Therefore I went ahead and uninstalled .NET 5.0 SDK
Here are some of the solutions that I tried:
Deleting the package folder from '.nuget/packages/microsoft.entityframeworkcore.tools' & thereby the executable i.e. 'ef.exe' and reinstalling the same.
Installing the same package using dotnet cli.
Running Visual Studio 2019 as admin.
Deleted the folder "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions"
I have also tried some of the steps mentioned here on github: https://github.com/NuGet/Home/issues/1138
. Any kind of help would be really appreciated.
I have answered the detailed description of the solution here on microsoft's .NET Q&A platform.
'EntityFramework.Core.Tools' nuget package installation error
I created a hosted WASM Blazor app using the Blazor client template in Visual Studio. I am trying to upgrade the Microsoft.AspNetCore.Components.WebAssembly package in the Client project from 3.2.1 to 5.0. I get this error:
Package Microsoft.AspNetCore.Components.WebAssembly 5.0.0 is not compatible with netstandard2.1 (.NETStandard,Version=v2.1). Package Microsoft.AspNetCore.Components.WebAssembly 5.0.0 supports: net5.0 (.NETCoreApp,Version=v5.0) BlazorApp1.Client
The client project is targeting .NET Standard 2.1. I am not clear about the difference between targeting .NET standard and targeting .Net Core. I thought .NET Core 5.0 implements all of .NET Standard 2.1. Only .NET Standard target options are available.
How does one upgrade that package?
Also, there's no version 5.0 of Microsoft.AspNetCore.Components.WebAssembly.Build. Did the package get obsoleted?
Although you can reference netstandard2.1 packages in a .NET5 application (targeting net5.0), to upgrade your Blazor app to 5.0.0 (.NET5) you also have to change target framework to net5.0 since it depends on it, as you have noticed.
But other than this, there are more changes to be made to get it fully upgraded. The MS Docs on how to Migrate from ASP.NET Core 3.1 to 5.0 (as Brian already pointed out) should help get the job done.
I'm facing a build issue after migration to AndroidX. I encountered following error when build android project:
Error NU1107 Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.1 directly to project WhiteLabel.Mobile.App.Android to resolve this issue.
Project.Mobile.App.Android -> Xamarin.Essentials 1.2.0 -> Xamarin.Android.Support.Compat (>= 28.0.0.1)
Project.Mobile.App.Android -> CarouselView.FormsPlugin 5.2.0 -> Xamarin.Android.Support.v4 25.4.0.2 -> Xamarin.Android.Support.Compat (= 25.4.0.2). Project.Mobile.App.Android C:\mprojects\mproject-xamarin\Project.Mobile.App\Project.Mobile.App.Android\Project.Mobile.App.Android.csproj
I tried to resolve this with installing latest stable version of Xamarin.Android.Support.Compat package with version 28.0.0.3. However, install failed with rolling back package changes in xamarin android project. As of now, I still have no clues on how to fix this, does anyone has any ideas?
Microsoft Visual Studio Enterprise 2019 version 16.6.2
Compile using Android version (Target Framework): Android 10.0(Q)
Minimum Android version: Android 7 (API level 24 - Nougat)
Target Android version: Android 10.0 (API Level 29 - Q)
Xamarin.Forms: 4.6.0.800
Xamarin.Android Sdk: 10.3.1.4
Xamarin.iOS: 13.18.2.1
You could search the Xamarin.Android.Support.Compat nuget,then could see its Dependencies.You could try to install the dependencies it needs according different mono android versions first,then install the Xamarin.Android.Support.Compat nuget.
At first, I built up a ASP.NET5/MVC6 project with .netcore in VS2015 community, everything was OK. With going deeper and deeper. I have to use session or tempdata, but after I add microsoft.netcore.session package, package restore will fail and all my existing package got NU1002 error said: NU1002 the dependency XXXX in project XXXX does not support framework DNX, version=v4.5.1. Like the picture.
Error on all packages
But if I uninstall the session package, eveything is OK. What's wrong with this ? My sdk version in global.json is 1.0.0-rc1-update1 and I have removed DNX5.0 from project.json. Does anyone could help me?
According to your screenshot you are using DNX framework in your project, which should be the old version ASP.NET 5 project framework. After ASP.NET 5 upgrade to .NET Core, the framework is now called .NETCoreApp. And the SDK version now is 1.0.0-preview2-003121. The error message also means the dependency does not support framework DNX. I have installed the Microsoft.AspNetCore.Session package successful in my Visual Studio 2015 with latest .NET Core SDK version.
So I suggest you download the latest .NET Core SDK installer from below link and then create a new .NET Core application and then move your original project files to the new project and then install the session package.
https://www.microsoft.com/net/download
If your project is create by ASP.NET 5 RC1 project template, please refer to following article to migrate it to ASP.NET Core 1.0.
https://docs.asp.net/en/latest/migration/rc1-to-rtm.html
I'm using Xamarin Studio version 5.5.3 to build my ASP.NET MVC Application. When I create a MVC APP, is created with the version 5.2, however this version isn't totally supported and I need downgrade the package to some version < 5. I have to run the command "PM> Install-Package AspNetMvc -Version 4.0.20710" on package console, but it is readonly (as viewed on picture).
Someone have any idea to solve this problem?
The Package Console that ships with Xamarin Studio currently is read-only and only shows messages from NuGet.
There is a PowerShell console available as a separate addin but it is still an alpha release.
Alternatively you can install a specific version from the Add Packages dialog by running a search for all versions of a NuGet package:
Microsoft.AspNet.Mvc version:*
This will return all versions in the Add Packages dialog and you can then pick the version you want to install.