dotnet / dotnet/msbuild

Cannot evaluate [MSBuild]::VersionLessThan with wildcards

Open
#10,995 4 comments 0 reactions 0 assignees View on GitHub
gathering-feedback Priority:2 triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Issue Description

MSBuild can't evaluate `[MSBuild]::VersionLessThan` when the version contains a wilcard, e.g. `[MSBuild]::VersionLessThan(9.0.*, 8.2.0)`.

### Steps to Reproduce

Call `[MSBuild]::VersionLessThan` with a version that contains a wildcard.

### Expected Behavior

That it evaluates when the version contains a wildcard (uses the latest version that matches the wildcard).

### Actual Behavior

It fails to evaluate.

### 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.