Skip to content

VB.Net (4.7.2) WPF Application Build Failure using version 8.1 #589

@mithrandyr

Description

@mithrandyr

Describe the bug

Upgraded MVVM toolkit to 8.1.
Build application (WPF VB.NET target .NET 4.7.2) gives the following error:

The expression "[MSBuild]::VersionGreaterThanOrEquals('', 4.3)" cannot be evaluated. Version string was not in a correct format.

Reverting MVVM toolkit to 8.0 resolves the error and the build will complete.

Regression

8.0

Steps to reproduce

Given the following environment:
- Visual Studio Community 2022 (64-bit) version 17.4.1
- Application Type: WPF
- Language: VB.NET
- Target Framework: .NET 4.7.2

Using "CommunityToolkit.MVVM" 8.1
Build the application (will get error above)

Revert to "CommunityToolkit.MVVM" 8.0
Rebuild the application (success, no error)

Expected behavior

I would expect the build to work without getting an error. This happens on 8.0, but not 8.1

Screenshots

No response

IDE and version

VS 2022

IDE version

17.4.1

Nuget packages

  • CommunityToolkit.Common
  • CommunityToolkit.Diagnostics
  • CommunityToolkit.HighPerformance
  • CommunityToolkit.Mvvm (aka MVVM Toolkit)

Nuget package version(s)

8.1

Additional context

No response

Help us help you

No, just wanted to report this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛An unexpected issue that highlights incorrect behaviormvvm-toolkit 🧰Issues/PRs for the MVVM Toolkit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions