Skip to content

Commit 10f7577

Browse files
authored
Merge pull request #95 from jongalloway/docs/local-package-troubleshooting
Add local package troubleshooting guidance
2 parents 0349653 + 9205558 commit 10f7577

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ To add a package to a project:
100100

101101
Permissive-OSS licenses only — MIT preferred, Apache-2.0 acceptable.
102102

103+
### Local package troubleshooting
104+
105+
If local testing behaves differently from the published NuGet package, check whether a stale local package source or cache is overriding the real package.
106+
107+
- Clear caches with `dotnet nuget locals all --clear`
108+
- Remove stale package folders such as `%USERPROFILE%\.nuget\packages\diagramforge\1.0.0`
109+
- Be careful with local sources like `artifacts/nupkg`, `--add-source`, or custom `NuGet.Config` entries
110+
- If needed, validate the published package explicitly by running `dotnet restore -p:RestoreSources=https://api.nuget.org/v3/index.json -p:RestorePackagesPath=./artifacts/isolated-packages` (or a similar isolated folder)
111+
112+
Matching package ID and version do not guarantee matching bits. When diagnosing package issues, compare package or DLL hashes before assuming the published package is wrong.
113+
103114
### Adding a parser
104115

105116
Implement `IDiagramParser`:

0 commit comments

Comments
 (0)