MSBUILD löst Fehler aus: Der angegebene SDK 'microsoft.net.sdk' konnte nicht gefunden werdenC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 MSBUILD löst Fehler aus: Der angegebene SDK 'microsoft.net.sdk' konnte nicht gefunden werden

Post by Anonymous »

Ich versuche, eine Lösung mit der MSBuild -Befehlszeile zu erstellen, und erhalte immer wieder diesen Fehler: < /p>

Code: Select all

error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.< /code> < /p>

Die Version von MSBuild ist die neueste von Microsoft Visual Studio 2017 Tools. Ich verwende Windows Server 2012 R2 und das Projekt verwendet .NET Core 2.0.msbuild.exe /p:Configuration=Release /t:restore C:\Projects\MyProject.sln< /code> < /p>

Komplettes Protokoll: < /p>

    Microsoft (R) Build Engine version 15.3.409.57025 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 9/16/2017 3:09:03 PM.
Project "C:\Projects\MyProject.sln" on node 1 (restore target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Project "C:\Projects\MyProject.sln" (1) is building "C:\Projects\Kernel\Kernel.csproj" (2) on node 1 (restore target(s)).
C:\Projects\MyProject.sln" (1) is building "C:\Projects\Kernel\Kernel.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
Done Building Project "C:\Projects\MyProject.sln" (1) is building "C:\Projects\Kernel\Kernel.csproj" (restore target(s)) -- FAILED.

Build FAILED.
"C:\Projects\MyProject.sln" (restore target) (1) ->
"C:\Projects\Kernel\Kernel.csproj" (restore target) (2) ->
C:\Projects\Kernel\Kernel.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.

0 Warning(s)
11 Error(s)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post