Skip to content

paket install (+update?) should not overwrite EmbedInteropTypes flag #910

Closed

Description

@agross

We have a nuget-packaged dependency that requires to be referenced with the EmbedInteropTypes set to true. I know that nuget's install.ps1 could be used to set the flag and that paket doesn't support PowerShell (which is a good thing):

<Reference Include="Interop.Foobar">
  <HintPath>..\packages\Interop.Foobar.dll</HintPath>
  <EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>

While we can certainly set the flag ourselves, paket install (even without --hard) will remove the flag.

It would be great if EmbedInteropTypes was kept.

Activity

  1. forki commented on Jul 1, 2015

    @forki
    Member

    does this thingy have <paket>true</paket>?

  2. agross commented on Jul 1, 2015

    @agross
    ContributorAuthor

    Yes, I just copied our pre-Paket reference.

  3. forki commented on Jul 1, 2015

    @forki
    Member

    ok. then try to set the flag to false.

    that said: I think we should add that to our settings, so that paket can generate that itself.

  4. agross commented on Jul 1, 2015

    @agross
    ContributorAuthor

    I think it'll probably be the best if paket migrates all custom flags and just manages the HintPath element. What do you think?

  5. forki commented on Jul 1, 2015

    @forki
    Member

    Maybe, but that's not really easy with the current design.

    Currently we do on every install:

    1. delete existing paket = true nodes
    2. add nodes for all packages where we can't find an existing node
      On Jul 1, 2015 12:38 PM, "Alexander Groß" [email protected] wrote:

    I think it'll probably be the best if paket migrates all custom flags and
    just manages the HintPath element. What do you think?

    —
    Reply to this email directly or view it on GitHub
    #910 (comment).

  6. agross commented on Jul 1, 2015

    @agross
    ContributorAuthor

    So if we just manually reference the DLL paket won't re-add the node with paket=true?

    (The dep doesn't need TargetFramework-specific nodes.)

  7. forki commented on Jul 1, 2015

    @forki
    Member

    Yes. At least as long as you don't use --hard. But I'm not completely sure
    about the other libs. I assume they will be ignored as well.
    On Jul 1, 2015 1:00 PM, "Alexander Groß" [email protected] wrote:

    So if we just manually reference the DLL paket won't re-add the node with
    paket=true?

    (The dep doesn't need TargetFramework-specific nodes.)

    —
    Reply to this email directly or view it on GitHub
    #910 (comment).

  8. matthid commented on Sep 3, 2017

    @matthid
    Member

    Closing as the interest doesn't seem to be high and new sdk things are different anyway.

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

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