Skip to content

Commit ea5850a

Browse files
authored
Document package validation handling (#9216)
* Document package validation handling * Move to contributing.md * Add title
1 parent 615494b commit ea5850a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/contributing.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,17 @@ Make sure you have started Docker before trying to run an Aspire app.
7575
For information on who can help in PRs and issues, see the [area owners](area-owners.md) page.
7676

7777
See the [tips and known issues](tips-and-known-issues.md) page.
78+
79+
### Package validation
80+
81+
When creating a new integration, package validation will automatically try to download a previous version of the package to ensure you didn't break compat. As a result you might get the following build error:
82+
83+
```shell
84+
error NU1101: Unable to find package [NEW PACKAGE NAME]. No packages exist with this id in source(s): dotnet-eng, dotnet-public, dotnet9, dotnet9-transport. PackageSourceMapping is enabled, the following source(s) were not considered: dotnet-libraries.
85+
```
86+
87+
To prevent this the new package needs this line to be added to the `.csproj`:
88+
89+
```xml
90+
<EnablePackageValidation>false</EnablePackageValidation>
91+
```

0 commit comments

Comments
 (0)