dotnet core 3.0 and netstandard 2.1

darrell.tunnell's Avatar

darrell.tunnell

24 Mar, 2019 03:03 AM

I am trying to build a project on the vs2019 preview image, that targets .NET Standard 2.1.
It's failing with:

> C:\Program Files\dotnet\sdk\3.0.100-preview-009812\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(158,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Standard 2.1. Either target .NET Standard 2.0 or lower, or use a version of the .NET SDK that supports .NET Standard 2.1.

I have a slightly newer version of the dotnet 3.0.0 sdk installed locally, and can build the project:

> 3.0.100-preview3-010431 [C:\Program Files\dotnet\sdk]

I am assuming the image will need this newer sdk version installed.

What's the best way to do this?

  1. 1 Posted by darrell.tunnell on 24 Mar, 2019 03:07 AM

    darrell.tunnell's Avatar

    Thinking about this.. adding the following to my yml file should hopefully solve my issue:

    > install:
      - cmd: choco install dotnetcore-sdk --pre

  2. Support Staff 2 Posted by Owen McDonnell on 01 Apr, 2019 05:38 AM

    Owen McDonnell's Avatar

    Did the chocolatey install work for you?

  3. 3 Posted by Darrell Tunnell on 01 Apr, 2019 08:51 PM

    Darrell Tunnell's Avatar

    Yep

  4. Owen McDonnell closed this discussion on 01 Apr, 2019 10:20 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac