Giter VIP home page Giter VIP logo

Comments (6)

robintschroeder avatar robintschroeder commented on June 11, 2024 3

OK - now I am embarrassed... but hopefully this post helps someone else...

Added this to my nuget.config and the pipeline finds MSBuild.Sdk.Extras just fine - duh!
<add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />

from msbuildsdkextras.

clairernovotny avatar clairernovotny commented on June 11, 2024

It looks like nuget.org isn't in the nuget.config file you have?

from msbuildsdkextras.

shawyunz avatar shawyunz commented on June 11, 2024

Just ran into this when building a xamarin android project.
My solution: updated the restore command in yml before building.

  - task: NuGetCommand@2
    displayName: 'NuGet restore'
    inputs:
      command: 'restore'
      restoreSolution: '$(RestoreSolution)'
      feedsToUse: 'config'

  - task: VSBuild@1
    displayName: 'Build Droid'
    ...

from msbuildsdkextras.

kvpt avatar kvpt commented on June 11, 2024

Something has changed recently in either Net5.0 SDK or MSBuild 16.9.
Now it only check for the first nuget source and fail after that if the sdk is not present in this source.
In my Azure DevOps the first source seems to be "Microsoft Visual Studio Offline Package" which of course doesn't contain the SDK.
Adding a step to remove this source before nuget restore fixed the issue for me.

 - script: dotnet nuget remove source "Microsoft Visual Studio Offline Packages"

from msbuildsdkextras.

joer33304 avatar joer33304 commented on June 11, 2024

None of the above works for me. Can somebody please post a working yaml ?

from msbuildsdkextras.

tomspilman avatar tomspilman commented on June 11, 2024

FYI.

I came across this thread after having the same issue with Xamarin and VS2022 on my local PC.

The fix that worked was changing my project from <Project Sdk="MSBuild.Sdk.Extras"> to <Project Sdk="MSBuild.Sdk.Extras/3.0.23">.

from msbuildsdkextras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.