Base solution for your next web application
Open Closed

You must add a reference to assembly 'Microsoft.AspNetCore.Identity, Version=3.1.0.0 #8706


User avatar
0
dexter.cunanan created

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!

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    dexter.cunanan created

    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!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    dexter.cunanan created

    Here are the screens for the pipeline build that got the error:

    Thanks!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dexter.cunanan

    It seems fine. I suggest you to contact with Azure support. This seems to be related to Azure.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)