Skip to content

Behavior differs from VisualStudio if bulid/xxx.targets and bulid/native/xxx.targets are present #4304

@keroiber

Description

@keroiber

Hello,

I use paket for many years now and really like it.

However, now I have problems with a nuget package (openssl-native 3.5.x).
This package contains two targets files that are imported into the .vcxproj by paket:

build/openssl-native.targets and build/native/openssl-native.targets

If I add that package directly in VisualStudio, only build/native/openssl-native.targets is imported.
The problem is that build/openssl-native.targets is for dotnet projects and issues an error when imported in the c++ project.

A quick search revealed, that this behavior is not officially documented, but it makes packages that work with the VisualStudio built in NuGet mechanism incompatible with paket.

I think it would make sense that paket behaves the same as VisualStudio.

Thanks
Bernhard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions