You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build Error when following "Getting Started" steps in README.md with "Version 7.0.100-preview.5.22307.18 of the .NET SDK requires at least version 17.0.0 of MSBuild"
#6107
When following the "Getting Started" steps in the README.md for the main branch at commit #793113a. After running Build.cmd the build fails with the error that "Version 7.0.100-preview.5.22307.18 of the .NET SDK requires at least version 17.0.0 of MSBuild. The current available version of MSBuild is 16.11.2.50704." I am assuming that the instructions need to be updated and I have to install Visual Studio 2022 or at least a newer MSBuild version.
Steps To Reproduce
(Assuming this has to be done on a machine without Visual Studio 2022 or newer versions of MSBuild Installed)
Install Visual Studio 2019. I have version 16.11.18 installed
Clone the repository and checkout the main branch. Mine is on commit #793113a
Install .NET SDK version specified in .\global.json with "dotnet". That is version 7.0.100-preview.5.22307.18. When I run dotnet --list-sdks it responds:
Open a command prompt cmd and change directories to the repo directory
Run Build.cmd. the output I get is:
Determining projects to restore...
All projects are up-to-date for restore.
Attempting to install dotnet from public location.
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
dotnet-install: .NET Core Runtime with version '3.1.7' is already installed.
dotnet-install: Adding to current process PATH: "C:\_Code\_ThirdParty\roslyn-analyzers\.dotnet\". Note: This change will not be visible if PowerShell was run as a child process.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\Core\Roslyn.Diagnostics.Analyzers.csproj : error
: Version 7.0.100-preview.5.22307.18 of the .NET SDK requires at least version 17.0.0 of MSBuild. The current availabl
e version of MSBuild is 16.11.2.50704. Change the .NET SDK specified in global.json to an older version that requires t
he MSBuild version currently available.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\Core\Roslyn.Diagnostics.Analyzers.csproj : error
MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\UnitTests\Roslyn.Diagnostics.Analyzers.UnitTests
.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\Setup\Text.Analyzers.Setup.csproj : error MSB4236: The SDK 'Mi
crosoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\CSharp\Microsoft.CodeAnalysis.CSharp.Analyze
rs.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\Core\Microsoft.CodeAnalysis.Analyzers.csproj
: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\UnitTests\Microsoft.CodeAnalysis.Analyzers.U
nitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Test.Utilities\Test.Utilities.csproj : error MSB4236: The SDK 'Microsoft.NET.
Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\Setup\Roslyn.Diagnostics.Analyzers.Setup.csproj
: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\UnitTests\Text.Analyzers.UnitTests.csproj : error MSB4236: The
SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\Setup\Microsoft.CodeAnalysis.Analyzers.Setup
.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\CSharp\Roslyn.Diagnostics.CSharp.Analyzers.cspro
j : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\CSharp\Text.CSharp.Analyzers.csproj : error MSB4236: The SDK '
Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\Core\Text.Analyzers.csproj : error MSB4236: The SDK 'Microsoft
.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Utilities.UnitTests\Analyzer.Utilities.UnitTests.csproj : error MSB4236: The
SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Text.Analyzers\Text.Analyzers.Package.csproj : error MSB4236: The SDK 'Micr
osoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\Core\CodeFixes\Microsoft.CodeAnalysis.PublicApiAnalyzers.C
odeFixes.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.Analyzers\Microsoft.CodeAnalysis.Analyzers.Package.c
sproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\PerformanceSensitiveAnalyzers\Microsoft.CodeAnalysis.PerformanceSensitiveAn
alyzers.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\UnitTests\Microsoft.CodeAnalysis.PerformanceSen
sitiveAnalyzers.UnitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\PublicApiAnalyzers\Microsoft.CodeAnalysis.PublicApiAnalyzers.Package.csproj
: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\Core\Microsoft.CodeAnalysis.PerformanceSensitiv
eAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Roslyn.Diagnostics.Analyzers\Roslyn.Diagnostics.Analyzers.Package.csproj :
error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\TestReferenceAssembly\TestReferenceAssembly.csproj : error MSB4236: The SDK '
Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.BannedApiAnalyzers\Microsoft.CodeAnalysis.BannedApiA
nalyzers.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\Setup\Microsoft.CodeAnalysis.Banned
ApiAnalyzers.Setup.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\Setup\Microsoft.CodeAnalysis.PublicApiAnalyzers.Setup.cspr
oj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\Core\Microsoft.CodeAnalysis.NetAnalyzers.csproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\Metrics\Metrics.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' spe
cified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\UnitTests\Microsoft.CodeAnalysis.Ba
nnedApiAnalyzers.UnitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\Microsoft.CodeAnalysis.BannedA
piAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\UnitTests\Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTe
sts.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\Setup\Microsoft.CodeAnalysis.PerformanceSensiti
veAnalyzers.Setup.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.Metrics\Microsoft.CodeAnalysis.Metrics.Package.cspro
j : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\CSharp\Microsoft.CodeAnalysis.CShar
p.BannedApiAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\Setup\Microsoft.CodeAnalysis.NetAnalyzers.Setup.csproj : error M
SB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\CSharp\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.csproj : error
MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\ReleaseNotesUtil\ReleaseNotesUtil.csproj : error MSB4236: The SDK 'Micr
osoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\UnitTests\Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.csproj :
error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\RulesetToEditorconfigConverter\Source\RulesetToEditorconfigConverter.cs
proj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\RulesetToEditorconfigConverter\Tests\RulesetToEditorconfigConverter.Uni
tTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\Metrics\Metrics.Legacy.csproj : error MSB4236: The SDK 'Microsoft.NET.S
dk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\NetAnalyzers\Microsoft.CodeAnalysis.NetAnalyzers.Package.csproj : error MSB
4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\GenerateDocumentationAndConfigFiles\GenerateDocumentationAndConfigFiles
.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.RulesetToEditorconfigConverter\Microsoft.CodeAnalysi
s.RulesetToEditorconfigConverter.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be fou
nd.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.AnalyzerUtilities\Microsoft.CodeAnalysis.AnalyzerUti
lities.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.AnalyzerUtilities\Microsoft.CodeAnalysis.AnalyzerUtili
ties.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\CSharp\CodeFixes\Microsoft.CodeAnalysis.CSharp.
PerformanceSensitiveAnalyzers.CodeFixes.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be foun
d.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\GenerateDocumentationAndConfigFilesForBrokenRuntime\GenerateDocumentati
onAndConfigFilesForBrokenRuntime.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\GenerateAnalyzerNuspec\GenerateAnalyzerNuspec.csproj : error MSB4236: T
he SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator.VisualBasic\Microsoft.CodeAnalysis.ResxSourceGenerator.VisualBasic.csproj : error MSB4236: The SDK 'Microsoft.
NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator\Microsoft.CodeAnalysis.ResxSourceGenerator.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could
not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator.CSharp\Microsoft.CodeAnalysis.ResxSourceGenerator.CSharp.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' s
pecified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\Core\Analyzers\Microsoft.CodeAnalysis.PublicApiAnalyzers.c
sproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator.UnitTests\Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.
Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourc
eGenerator.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\CSharp\CSharpPerfUtilities.csproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\CSharp\Analyzers\Microsoft.CodeAnalysis.CSharp.
PerformanceSensitiveAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\ReferenceAssemblies\ReferenceAssemblies.csproj : e
rror MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\Common\CommonPerfUtilities.csproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Tests\PerformanceTests.csproj : error MSB4236: The SDK 'Micr
osoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\PerfDiff\PerfDiff.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' s
pecified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\VisualBasic\Text.VisualBasic.Analyzers.vbproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\VisualBasic\Roslyn.Diagnostics.VisualBasic.Analy
zers.vbproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\VisualBasic\VisualBasicPerfUtilities.csproj : erro
r MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\VisualBasic\Microsoft.CodeAnalysis.VisualBas
ic.Analyzers.vbproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\VisualBasic\Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers.vbpr
oj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\VisualBasic\Microsoft.CodeAnalysis.
VisualBasic.BannedApiAnalyzers.vbproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
Build FAILED.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\Core\Roslyn.Diagnostics.Analyzers.csproj : error
: Version 7.0.100-preview.5.22307.18 of the .NET SDK requires at least version 17.0.0 of MSBuild. The current availabl
e version of MSBuild is 16.11.2.50704. Change the .NET SDK specified in global.json to an older version that requires t
he MSBuild version currently available.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\Core\Roslyn.Diagnostics.Analyzers.csproj : error
MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\UnitTests\Roslyn.Diagnostics.Analyzers.UnitTests
.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\Setup\Text.Analyzers.Setup.csproj : error MSB4236: The SDK 'Mi
crosoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\CSharp\Microsoft.CodeAnalysis.CSharp.Analyze
rs.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\Core\Microsoft.CodeAnalysis.Analyzers.csproj
: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\UnitTests\Microsoft.CodeAnalysis.Analyzers.U
nitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Test.Utilities\Test.Utilities.csproj : error MSB4236: The SDK 'Microsoft.NET.
Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\Setup\Roslyn.Diagnostics.Analyzers.Setup.csproj
: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\UnitTests\Text.Analyzers.UnitTests.csproj : error MSB4236: The
SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\Setup\Microsoft.CodeAnalysis.Analyzers.Setup
.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\CSharp\Roslyn.Diagnostics.CSharp.Analyzers.cspro
j : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\CSharp\Text.CSharp.Analyzers.csproj : error MSB4236: The SDK '
Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\Core\Text.Analyzers.csproj : error MSB4236: The SDK 'Microsoft
.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Utilities.UnitTests\Analyzer.Utilities.UnitTests.csproj : error MSB4236: The
SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Text.Analyzers\Text.Analyzers.Package.csproj : error MSB4236: The SDK 'Micr
osoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\Core\CodeFixes\Microsoft.CodeAnalysis.PublicApiAnalyzers.C
odeFixes.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.Analyzers\Microsoft.CodeAnalysis.Analyzers.Package.c
sproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\PerformanceSensitiveAnalyzers\Microsoft.CodeAnalysis.PerformanceSensitiveAn
alyzers.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\UnitTests\Microsoft.CodeAnalysis.PerformanceSen
sitiveAnalyzers.UnitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\PublicApiAnalyzers\Microsoft.CodeAnalysis.PublicApiAnalyzers.Package.csproj
: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\Core\Microsoft.CodeAnalysis.PerformanceSensitiv
eAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Roslyn.Diagnostics.Analyzers\Roslyn.Diagnostics.Analyzers.Package.csproj :
error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\TestReferenceAssembly\TestReferenceAssembly.csproj : error MSB4236: The SDK '
Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.BannedApiAnalyzers\Microsoft.CodeAnalysis.BannedApiA
nalyzers.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\Setup\Microsoft.CodeAnalysis.Banned
ApiAnalyzers.Setup.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\Setup\Microsoft.CodeAnalysis.PublicApiAnalyzers.Setup.cspr
oj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\Core\Microsoft.CodeAnalysis.NetAnalyzers.csproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\Metrics\Metrics.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' spe
cified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\UnitTests\Microsoft.CodeAnalysis.Ba
nnedApiAnalyzers.UnitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\Microsoft.CodeAnalysis.BannedA
piAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\UnitTests\Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTe
sts.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\Setup\Microsoft.CodeAnalysis.PerformanceSensiti
veAnalyzers.Setup.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.Metrics\Microsoft.CodeAnalysis.Metrics.Package.cspro
j : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\CSharp\Microsoft.CodeAnalysis.CShar
p.BannedApiAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\Setup\Microsoft.CodeAnalysis.NetAnalyzers.Setup.csproj : error M
SB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\CSharp\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.csproj : error
MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\ReleaseNotesUtil\ReleaseNotesUtil.csproj : error MSB4236: The SDK 'Micr
osoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\UnitTests\Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.csproj :
error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\RulesetToEditorconfigConverter\Source\RulesetToEditorconfigConverter.cs
proj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\RulesetToEditorconfigConverter\Tests\RulesetToEditorconfigConverter.Uni
tTests.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\Metrics\Metrics.Legacy.csproj : error MSB4236: The SDK 'Microsoft.NET.S
dk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\NetAnalyzers\Microsoft.CodeAnalysis.NetAnalyzers.Package.csproj : error MSB
4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\GenerateDocumentationAndConfigFiles\GenerateDocumentationAndConfigFiles
.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.RulesetToEditorconfigConverter\Microsoft.CodeAnalysi
s.RulesetToEditorconfigConverter.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be fou
nd.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.AnalyzerUtilities\Microsoft.CodeAnalysis.AnalyzerUti
lities.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.AnalyzerUtilities\Microsoft.CodeAnalysis.AnalyzerUtili
ties.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\CSharp\CodeFixes\Microsoft.CodeAnalysis.CSharp.
PerformanceSensitiveAnalyzers.CodeFixes.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be foun
d.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\GenerateDocumentationAndConfigFilesForBrokenRuntime\GenerateDocumentati
onAndConfigFilesForBrokenRuntime.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\GenerateAnalyzerNuspec\GenerateAnalyzerNuspec.csproj : error MSB4236: T
he SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator.VisualBasic\Microsoft.CodeAnalysis.ResxSourceGenerator.VisualBasic.csproj : error MSB4236: The SDK 'Microsoft.
NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator\Microsoft.CodeAnalysis.ResxSourceGenerator.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could
not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator.CSharp\Microsoft.CodeAnalysis.ResxSourceGenerator.CSharp.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' s
pecified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PublicApiAnalyzers\Core\Analyzers\Microsoft.CodeAnalysis.PublicApiAnalyzers.c
sproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourceG
enerator.UnitTests\Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests.csproj : error MSB4236: The SDK 'Microsoft.NET.
Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\nuget\Microsoft.CodeAnalysis.ResxSourceGenerator\Microsoft.CodeAnalysis.ResxSourc
eGenerator.Package.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\CSharp\CSharpPerfUtilities.csproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceSensitiveAnalyzers\CSharp\Analyzers\Microsoft.CodeAnalysis.CSharp.
PerformanceSensitiveAnalyzers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\ReferenceAssemblies\ReferenceAssemblies.csproj : e
rror MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\Common\CommonPerfUtilities.csproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Tests\PerformanceTests.csproj : error MSB4236: The SDK 'Micr
osoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Tools\PerfDiff\PerfDiff.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' s
pecified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Text.Analyzers\VisualBasic\Text.VisualBasic.Analyzers.vbproj : error MSB4236:
The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Roslyn.Diagnostics.Analyzers\VisualBasic\Roslyn.Diagnostics.VisualBasic.Analy
zers.vbproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\PerformanceTests\Utilities\VisualBasic\VisualBasicPerfUtilities.csproj : erro
r MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.Analyzers\VisualBasic\Microsoft.CodeAnalysis.VisualBas
ic.Analyzers.vbproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\NetAnalyzers\VisualBasic\Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers.vbpr
oj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
C:\_Code\_ThirdParty\roslyn-analyzers\src\Microsoft.CodeAnalysis.BannedApiAnalyzers\VisualBasic\Microsoft.CodeAnalysis.
VisualBasic.BannedApiAnalyzers.vbproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
0 Warning(s)
68 Error(s)
Time Elapsed 00:00:02.46
Build failed with exit code 1. Check errors above.
Expected behavior
The build should succeed.
Actual behavior
Build error that "Version 7.0.100-preview.5.22307.18 of the .NET SDK requires at least version 17.0.0 of MSBuild" as detailed above.
Additional context
I'm on the trail of a possible other bug in the banned API analyzer so I was trying to clone the repo and see if I could create a unit test verifying the bug. Having basic build instructions be wrong is a huge discouragement to other people contributing.
The text was updated successfully, but these errors were encountered:
Describe the bug
When following the "Getting Started" steps in the README.md for the
main
branch at commit #793113a. After runningBuild.cmd
the build fails with the error that "Version 7.0.100-preview.5.22307.18 of the .NET SDK requires at least version 17.0.0 of MSBuild. The current available version of MSBuild is 16.11.2.50704." I am assuming that the instructions need to be updated and I have to install Visual Studio 2022 or at least a newer MSBuild version.Steps To Reproduce
(Assuming this has to be done on a machine without Visual Studio 2022 or newer versions of MSBuild Installed)
main
branch. Mine is on commit #793113a.\global.json
with "dotnet". That is version 7.0.100-preview.5.22307.18. When I rundotnet --list-sdks
it responds:cmd
and change directories to the repo directoryBuild.cmd
. the output I get is:Expected behavior
The build should succeed.
Actual behavior
Build error that "Version 7.0.100-preview.5.22307.18 of the .NET SDK requires at least version 17.0.0 of MSBuild" as detailed above.
Additional context
I'm on the trail of a possible other bug in the banned API analyzer so I was trying to clone the repo and see if I could create a unit test verifying the bug. Having basic build instructions be wrong is a huge discouragement to other people contributing.
The text was updated successfully, but these errors were encountered: