dotnet / dotnet/msbuild

<Sdk> element does not respect Conditions

Open
#4,249 8 comments 1 reaction 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

### Steps to reproduce

Project file
```xml


```

Command line
```
msbuild
```

### Expected behavior
Successful build

### Actual behavior
Error similar to:
```
E:\tmp\test\Test.proj : error : C:\Program Files\dotnet\sdk\2.1.601\Sdks\DoesNotExist\Sdk not found. Check that a recent enough .NET Core SDK is installed and/or increase the version specified in global.json.
```

### Environment data
`msbuild /version` output:
```
Microsoft (R) Build Engine version 16.0.450+ga8dc7f1d34 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

16.0.450.56488
```
OS info: Win10

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.