Sitelet https://github.com/fsprojects/Paket/issues/1898
Skip to content

When setting framework restriction on nuget package with .props and .targets, elements in .csproj are moved to wrong location #1898

Description

@theggelund

Description

Added framework: net452, net46, net461 to specification in paket.dependencies

From

nuget DIPS.MultiTarget ~> 1.0.0 alpha

To

nuget DIPS.MultiTarget ~> 1.0.0 alpha framework: net452, net46, net461

Expected behavior

Should not change location of imports. .props import should be at the top, .targets should be at the bottom.

Actual behavior

image

Known workarounds

Solution to the issue is to not add framework restriction to package but then I need to add framework restriction to all other packages instead of just using framework restriction at the top

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions