Skip to content

[X#3] VSIntegration : CPM (Central Package Management) not working for .xsproj in VS — NU1008 #1998

Description

@baramuse

Hi,

Found a build issue with XSharp 3 and NuGet Central Package Management in Visual Studio.

Setup:

Directory.Build.props sets ManagePackageVersionsCentrally=true and defines a property XSharpPackageVersion=3.0.0.6
Directory.Packages.props defines
.xsproj has — no Version, which is the correct CPM pattern
Result:

dotnet build → succeeds, 0 errors
VS right-click Build → NU1008: The following PackageReference items cannot define a value for Version: XSharp.VOSDK. Projects using Central Package Management must define a Version value on a PackageVersion item.

I've attached a solution illustrating

XSharpCpmRepro.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions