Comments (6)
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.
It looks like nuget.org isn't in the nuget.config file you have?
from msbuildsdkextras.
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.
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.
None of the above works for me. Can somebody please post a working yaml ?
from msbuildsdkextras.
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)
- SDK folder for UAP not found HOT 2
- Update to Microsoft.NETCore.UniversalWindowsPlatform 6.2.12 HOT 2
- Per-RID project is only built once when referenced from another (non-Extras) project HOT 1
- MSB4057: GetCopyToPublishDirectoryItems missing for per-RID project
- Support Xamarin.Mac FullFramework projects
- Does Xamarin.iOS10 use IOS14 SDK? Is there a list of all the supported TFMs
- Unable to add reference to netstandard through Visual Studio UI
- Failures with GetDirectoryName HOT 1
- Do I still need MSBuild.Sdk.Extras with .net6? HOT 3
- NET6_0 constants not properly defined HOT 3
- Visual Studio 2019 hangs when loading project using MSBuild.Sdk.Extras HOT 1
- Could not use with F#
- VS2022 Preview 5 Mac - unable to find the SDK (SDK not found error) HOT 2
- NETFX_CORE not working with the latest version
- MSBuild.Sdk.Extras cannot build the TargetFrameworks Xamarin.iOS and net6.0-ios together HOT 6
- Is it possible to build a different output for the same TargetFramework
- UWP references fail when setting TargetPlatformMinVersion HOT 1
- Readme references a site sporting a database error.
- The name 'InitializeComponent' does not exist in the current context HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msbuildsdkextras.