fsprojects / fsprojects/Paket

How can I manually overwrite a dll?

Open
#1,650 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

I use a package with several dlls, one of which I need to manually replace with a custom-built version. There are a few spots like this in our app.

I have tried the following:

  1. paket.references
The.Package
   exclude The.Package.Something.dll
  1. MyApp.csproj
    <Reference Include="The.Package.Something">
      <HintPath>..\..\lib\The.Package.Something.dll/HintPath>
    </Reference>

When I run package install with the above, it not only excludes the package's dll, but it also removes the manual reference from the csproj.

Help!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the paket.references and MyApp.csproj examples, then reproduce the behavior with package install. Investigate why excluding The.Package.Something.dll also removes the manual reference; done means the package DLL is excluded while the custom MyApp.csproj reference remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.