The type or namespace name 'OpenIdConnectOptions' could not be found while upgrading my ASP.NET Core 2.2 to 3.1 - asp.net-core-3.1

I am trying to upgrade my ASP.NET Core 2.2 to 3.1 but getting below error.
Not Sure how to resolve it.
I am getting below error
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'OpenIdConnect' does not exist
in the namespace 'Microsoft.AspNetCore.Authentication' (are you
missing an assembly reference?)
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'OpenIdConnectOptions' could
not be found (are you missing a using directive or an assembly
reference?)
Severity Code Description Project File Line Suppression State
Error CS1061 'AuthenticationBuilder' does not contain a definition for
'AddOpenIdConnect' and no accessible extension method
'AddOpenIdConnect' accepting a first argument of type
'AuthenticationBuilder' could be found (are you missing a using
directive or an assembly reference?)
Error CS0006 Metadata file 'C:....\bin\Debug\netcoreapp3.1\aa.dll' could not be found
I have this using directive in my solution.
using Microsoft.AspNetCore.Authentication.OpenIdConnect

run the following in your Package manager console
Install-Package Microsoft.AspNetCore.Authentication.OpenIdConnect -Version 6.0.4
For .Net 6

Related

Unity script error message namespace MonoBehaviour not found

I've been trying to write a script for my unity project, but the console gives the following error messages.
The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?
The type or namespace name 'Transform' could not be found (are you missing a using directive or an assembly reference?
Anyone got a clue?
https://i.stack.imgur.com/Ddy7J.png
https://i.stack.imgur.com/524pb.png
It's using.UnityEngine; small caps, the u in using is written in lowercase.

Mapbox not opening in unity?

I have the 2020.3.32f1 version of Unity and have tried to open Mapbox version 2.1.1 - the current one I am being told by the Mapbox website to download. It says I need Unity 2017 and higher so everything should be right, correct? Then why does it not load properly and I get the following errors:
Assets\GoogleARCore\SDK\Scripts\ARCoreBackgroundRenderer.cs(43,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
Assets\GoogleARCore\SDK\InstantPreview\Scripts\InstantPreviewManager.cs(32,23): error CS0234: The type or namespace name 'SpatialTracking' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
Assets\UnityARInterface\ARRemote\Scripts\ARRemoteEditorInterface.cs(40,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
Assets\UnityARInterface\Scripts\ARCoreInterface.cs(51,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
Assets\UnityARInterface\Scripts\ARKitInterface.cs(26,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
A polygon of Mesh 'cone' in Assets/Mapbox/Examples/2_AstronautGame/AstronautGame/Park/cone.FBX is self-intersecting and has been discarded.
Problem detected while importing the Prefab file: 'Assets/MapboxAR/Prefabs/AR.prefab'.
The file might be corrupt or have missing nested Prefabs. See details below.
Warnings:
Component at index 2 could not be loaded when loading game object 'ARCamera'. Removing it.
So yeah, no matter what I do, it won't load/open properly - the examples window from Mapbox doesn't open, nor does the Ampbox tab appear at the top of the Unity UI. It's really, really annoying, I can't even open the thing!!! I just need to get into it so I can start learning with the PocketDroid Go example if anyone knows that one... Please help it's been days and I am getting nowhere and it's literally step one: "open the package!" :(
Problem solved - Unity changed the name of ARBackgroundRenderer to ARCamera in like 2019 or something but Mapbox have never updated their SDK, hence the errors. If you use the April 2018 version of Unity, it works.
Have you tried using unity Unity 2017.1.0 instead of 2020.3.32f1? Their examples seem to be using that version of the editor.

When I build in Unity. I get an error called "error CS0246: The type or namespace name 'WebSocketSharp' could not be found"

Unity Version: 2019.4.9f1
Error:
Assets\Scripts\GirisEkranYoneticisi.cs(4,7): error CS0246: The type or namespace name 'WebSocketSharp' could not be found (are you missing a using directive or an assembly reference?)
https://prnt.sc/urzjh9
The issue is not in your code, its because mostly you are missing
websocket-sharp.dll
You need to download it and drop it into Asset/Plugins.
Hope this solves your issue

Microsoft Hosted Agent - Build Failing

We were trying to build a pipeline using MS Hosted agent with vmImage (vs2017-win2016) for a .net application, but build id is failing with following errors..Any ideas?
2020-08-20T08:05:28.3672056Z ##[error]Main\HPAlert\Service\HPAlertDataLayer\HPAlertDataLayer.cs(17,7): Error CS0246: The type or namespace name 'HP' could not be found (are you missing a using directive or an assembly reference?)
2020-08-20T08:05:28.3673605Z HPAlertDataLayer.cs(17,7): error CS0246: The type or namespace name 'HP' could not be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\Main\HPAlert\Service\HPAlertDataLayer\HPAlertDataLayer.csproj]
2020-08-20T08:05:28.3676838Z ##[error]Main\HPAlert\Service\HPAlertDataLayer\HPAlertDataLayer.cs(28,24): Error CS0246: The type or namespace name 'SQLmanager' could not be found (are you missing a using directive or an assembly reference?)
2020-08-20T08:05:28.3678129Z HPAlertDataLayer.cs(28,24): error CS0246: The type or namespace name 'SQLmanager' could not be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\Main\HPAlert\Service\HPAlertDataLayer\HPAlertDataLayer.csproj]
2020-08-20T08:05:28.3763287Z Done Building Project "D:\a\1\s\Main\HPAlert\Service\HPAlertDataLayer\HPAlertDataLayer.csproj" (default targets) -- FAILED.
2020-08-20T08:05:28.3789756Z Done Building Project "D:\a\1\s\Main\HPAlert\Service\HPAlert\HPAlert.csproj" (default targets) -- FAILED.
2020-08-20T08:05:28.3797456Z Done Building Project "D:\a\1\s\Main\HPAlert\Service\HPAlertServices.sln" (default targets) -- FAILED.
2020-08-20T08:05:28.3837956Z
2020-08-20T08:05:28.3839223Z Build FAILED.
Any suggestions?
Microsoft Hosted Agent - Build Failing
According to the error message:
Error CS0246: The type or namespace name 'HP' could not be found (are
you missing a using directive or an assembly reference?)
This is a common issue of missing references. The solution to this issue is the reference type you used when adding the reference.
If you are add those references HP SQLmanager by nuget, you need add a nuget restore task to restore those nuget packages.
If you are reference those dll files directly, you need to add those dll files into the solution/project and submit it to the repo.

Facing Issue When I build the MixedRealityToolkit-Unity (V2) sample project

I am facing issue when I build the MixedRealityToolkit-Unity(V2) sample project,I faced the following error :
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(418,73): error CS0246: The type or namespace name 'HandJointKind' could not be found (are you missing a using directive or an assembly reference?)
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(111,17): error CS0246: The type or namespace name 'HandMeshObserver' could not be found (are you missing a using directive or an assembly reference?)
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(382,33): error CS0246: The type or namespace name 'HandJointKind' could not be found (are you missing a using directive or an assembly reference?)
Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(412,26): error CS0246: The type or namespace name 'JointPose' could not be found (are you missing a using directive or an assembly reference?)
I am running on Windows 10 Insider preview with
OS build : 18362.30
Version : 1903
Also I double checked with build setting
Minimum SDK is 10.0.10240.0
Target SDK version is “Latest installed”
I am using mrtk_development branch for the MixedRealityToolkit-Unity.
Can any one help me or guide me if I am missing any steps here for the set-up.
Thanks.
These errors look like Unity is actually not using the latest installed SDK. Have you tried the following:
Restart your computer (not kidding).
Delete your old Build/UWP folder.
Delete Unity's Library folder (under YourProject/Library).
Re-open Unity, and try to build again.
Finally I am able to build MRTK-V2 into HoloLens :-) Just give it a try by adding Windows SDK 18362+ which is mention on Toolkit home page.
I thought I am running under insider build 18362.30 so I don't need to install this SDK, But seem like it is required anyway.