I am trying to build a project on .Net Core 3.0, using Azure Pipelines, however during the build, I encounter multiple errors in the Core project with the error The type 'XXXXXX' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.AspNetCore.Identity, Version=3.1.0.0. However, I am unable to find a Microsoft.AspNetCore.Identity package that is version 3.1.0.0.
Please advise on how to resolve this.
Thank you in advance!
5 Answer(s)
-
0
Hi @dexter.cunanan
It seems like .Net Core 3.1 SDK is not on your pipeline. Could you try https://stackoverflow.com/a/59243634 ?
Thanks,
-
0
Thanks for the response @ismcagdas.
I have tried adding Use .Net Core 3.1 and still receive the same error. To be specific, the SDK of our project is 3.1.2.
Let me know what else to try.
Thanks!
-
0
Could you share your pipeline steps ? Is this https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops the first step ?
-
0
-
0
Hi @dexter.cunanan
It seems fine. I suggest you to contact with Azure support. This seems to be related to Azure.