sdk icon indicating copy to clipboard operation
sdk copied to clipboard

TargetFramework is (incorrectly) passed to its dependencies

Open jgoshi opened this issue 10 years ago • 2 comments

The following branch contains the repro: https://github.com/dotnet/cli/tree/dev/jgoshi/switchToCsproj

If you try to run: dotnet restore3 Microsoft.DotNet.Cli.Utils.csproj dotnet build3 Microsoft.DotNet.Cli.Utils.csproj

It fails because Microsoft.DotNet.Cli.Utils is built with netstandard1.5 but its dependent project Microsoft.DotNet.ProjectModel is supposed to be built with netstandard1.3 (and TargetFramework is incorrectly passed as netstandard1.5).

jgoshi avatar Oct 19 '16 20:10 jgoshi

Investigating now

nguerrera avatar Oct 19 '16 20:10 nguerrera

It looks like you're using an old version of the SDK. The repro is pulling down 1.0.0-alpha-20161012-3, which is a week old and doesn't have this fix: https://github.com/dotnet/sdk/pull/260

nguerrera avatar Oct 19 '16 22:10 nguerrera