Skip to content

Paket removes System.ComponentModel.Composition reference #376

Closed

Description

@JonCanning

I'm using Paket to install RavenDB.Client, and a call to:

Raven.Client.Indexes.IndexCreation.CreateIndexes

in my code requires that System.ComponentModel.Composition is manually referenced. However, whenever I run paket update the reference is removed

Create an empty library and replace the class that's created with this

type Class1() = 
  member this.X = Raven.Client.Indexes.IndexCreation.CreateIndexes(System.Reflection.Assembly.GetExecutingAssembly(), null)

and reference System.ComponentModel.Composition

You may have to paket update a couple of times to see the problem

Activity

  1. forki commented on Nov 20, 2014

    @forki
    Member

    Ok this is a new fucked up situation. RavenDB.Client nuspec says

    <frameworkAssemblies>
      <frameworkAssembly assemblyName="System.ComponentModel.Composition" targetFramework=".NETFramework4.0" />
    </frameworkAssemblies>
    

    So we think it's only for net4.

    we need a way to.keep these

  2. forki commented on Nov 20, 2014

    @forki
    Member

    we could introduce a Paket-keep flag, but this would mean manually editing of csproj file

  3. forki commented on Nov 21, 2014

    @forki
    Member

    we could also add a syntax to the references file. Like

    frameworkAssembly System.ComponentModel.Composition
    
  4. JonCanning commented on Nov 21, 2014

    @JonCanning
    ContributorAuthor

    Why does paket remove the references?

  5. forki commented on Nov 21, 2014

    @forki
    Member

    The original idea is to remove duplicates.
    The nuspec in question requires the assembly framework reference. So we add
    it. Then you have two references. Which is also a bug.

    But your question hints to a better strategy. Maybe we should not
    remove/replace existing references. Instead we could just update our model.

    This may actually work and solve another problem. Sometimes the easy
    solutions are hard to see.
    On Nov 21, 2014 3:39 PM, "Jon Canning" [email protected] wrote:

    Why does paket remove the references?

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

  6. forki commented on Nov 22, 2014

    @forki
    Member

    My local version seems to handle this case now. Will need to make it more robust.

  7. forki commented on Nov 22, 2014

    @forki
    Member

    It would be cool if you could test 0.16 alpha version if it works for you.

  8. JonCanning commented on Nov 22, 2014

    @JonCanning
    ContributorAuthor

    Looks good!

  9. added a commit that references this issue on Nov 22, 2014
  10. JonCanning commented on Nov 22, 2014

    @JonCanning
    ContributorAuthor

    Just paket'd (and FAKE'd!) another more complicated project that was losing numerous references. All good now.

  11. added 2 commits that reference this issue on Nov 23, 2014
    b111134
    926d988
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