Skip to content

[BUG] error : The expression "[System.Version]::Parse('')" cannot be evaluated. Version string portion was too short or too long. #1770

@ruffin--

Description

@ruffin--

Describe the bug
Installed via nuget into Framework 4.8.1 project. Appeared to say this version should be 4.8.1 compatible.

Issues on installation. On reboot, project no longer opens.

<package id="coverlet.collector" version="6.0.4" targetFramework="net481" developmentDependency="true" />

To Reproduce
Install via nuget into XUnit project running Framework 4.8.1.

Expected behavior
App still builds.

Actual behavior

In Solution output window on solution load:

C:\Projects\MyApp\MyApp.csproj : error  : The expression "[System.Version]::Parse('')" cannot be evaluated. Version string portion was too short or too long.  C:\Projects\MyApp\packages\coverlet.collector.6.0.4\build\netstandard2.0\coverlet.collector.targets

Configuration (please complete the following information):
Please provide more information on your .NET configuration:

  • Which coverlet package and version was used?
    • 6.0.4
    • Also occurs with 3.2.0
  • Which version of .NET is the code running on?
    • 4.8.1
  • What OS and version, and what distro if applicable?
    • Microsoft Windows [Version 10.0.26120.6760]
  • What is the architecture (x64, x86, ARM, ARM64)?
    • x64
  • Do you know whether it is specific to that configuration?
    • I do not.

Additional context
Add any other context about the problem here.

❗ Please also read Known Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedTo be investigated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions