Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build with NuGet-based SDK #8

Closed
jeremyVignelles opened this issue Nov 11, 2018 · 1 comment
Closed

Unable to build with NuGet-based SDK #8

jeremyVignelles opened this issue Nov 11, 2018 · 1 comment

Comments

@jeremyVignelles
Copy link

jeremyVignelles commented Nov 11, 2018

Steps to reproduce

Project file

<Project Sdk="MSBuild.Sdk.Extras/1.6.46">
  <PropertyGroup>
    <TargetFrameworks>netstandard2.0</TargetFrameworks>
  </PropertyGroup>
</Project>

Command line

msbuild > build.txt

Expected behavior

The build should complete fine (granted, without files, it won't do much, but still...)

Actual behavior

The build fails with these messages:

Microsoft (R) Build Engine version 15.8.0.0 ( Tue Nov  6 14:11:13 UTC 2018) for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 11/11/2018 2:31:46 PM.
/data/projects/dotnet/testMsbuild/TestMsbuild.csproj : error : /usr/share/dotnet/sdk/2.1.403/Sdks/MSBuild.Sdk.Extras/Sdk not found. Check that a recent enough .NET Core SDK is installed and/or increase the version specified in global.json.
Project "/data/projects/dotnet/testMsbuild/TestMsbuild.csproj" on node 1 (default targets).
/data/projects/dotnet/testMsbuild/TestMsbuild.csproj : error MSB4236: The SDK 'MSBuild.Sdk.Extras/1.6.46' specified could not be found.
Done Building Project "/data/projects/dotnet/testMsbuild/TestMsbuild.csproj" (default targets) -- FAILED.

Build FAILED.

  /data/projects/dotnet/testMsbuild/TestMsbuild.csproj : error : /usr/share/dotnet/sdk/2.1.403/Sdks/MSBuild.Sdk.Extras/Sdk not found. Check that a recent enough .NET Core SDK is installed and/or increase the version specified in global.json.


"/data/projects/dotnet/testMsbuild/TestMsbuild.csproj" (default target) (1) ->
  /data/projects/dotnet/testMsbuild/TestMsbuild.csproj : error MSB4236: The SDK 'MSBuild.Sdk.Extras/1.6.46' specified could not be found.

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:00.16

Environment data

msbuild /version output:

15.8.0.0
Installed with these instructions for 18.04. (version 15.8+xamarinxplat.2018.07.31.22.43-0xamarin6+ubuntu1804b1)

OS info:

Ubuntu MATE 18.10

@jeremyVignelles
Copy link
Author

Fixed by #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant