dotnet / dotnet/msbuild

[Bug]: Unable to remove projects with dynamic platform resolution

Open
#8,890 1 comment 0 reactions 1 assignee Assigned to @MIchaelRShea View on GitHub
bug triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Issue Description

The current behavior for dynamic platform resolution is that if a project is unable to determing what a dependent should be built as, it simply builds that dependency with a blank global platform value, allowing that dependency to build as its default platform. In cases like traversal projects, this is not the behavior wanted. instead there should be an option to remove the dependency from the graph if platform is unable to be negotiated.

### Steps to Reproduce

Create a project with dynamic platform resolution enabled that builds as x64 and a dependent project that only builds as x86. Make sure there is not mapping defined

### Expected Behavior

You should be able to choose if this dependent project is kept in the graph

### Actual Behavior

the project is kept in the graph every time without option.

### Analysis

_No response_

### Versions & Configurations

_No response_

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.