Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

error NETSDK1045 on Azure DevOps: “The current .NET SDK does not support targeting .NET Core 2.2” #49

Closed
BryanWilhite opened this issue Jan 9, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@BryanWilhite
Copy link
Owner

2019-01-08T22:43:47.9791019Z          C:\Program Files\dotnet\sdk\2.1.402\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 2.2.  Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2. [D:\a\1\s\Songhay.Blog.Repository.Tests\Songhay.Blog.Repository.Tests.csproj]
@BryanWilhite BryanWilhite added the bug Something isn't working label Jan 9, 2019
@BryanWilhite BryanWilhite self-assigned this Jan 9, 2019
@BryanWilhite
Copy link
Owner Author

This issue addresses the problem: https://developercommunity.visualstudio.com/content/problem/411400/nuget-restore-task-is-failing-on-azure-devops-afte.html

the agent running the build does not come with .NET 2.2.x:
image

@BryanWilhite
Copy link
Owner Author

BryanWilhite commented Jan 9, 2019

adding this build step:

- task: DotNetCoreInstaller@0
  displayName: 'Use .NET Core sdk 2.2.102'
  inputs:
    version: 2.2.102

#13 (comment)

@BryanWilhite
Copy link
Owner Author

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant