You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/shared_libraries.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Two package ecosystems align to Defra's primary technology choices.
8
8
9
9
**npm** packages are used in JavaScript projects. They are hosted on [npmjs.com](https://www.npmjs.com) and installed using the `npm` command. Packages can be scoped to an organisation, such as `@defra/your-package`.
10
10
11
-
**NuGet** packages are used in .NET projects. They are hosted on [nuget.org](https://www.nuget.org) and installed using the `dotnet add package` command. Packages are grouped under an organisation, such as `DefraDigital.YourPackage`.
11
+
**NuGet** packages are used in .NET projects. They are hosted on [nuget.org](https://www.nuget.org) and installed using the `dotnet add package` command. Packages are grouped under an organisation, such as `Defra.YourPackage`.
12
12
13
13
## When a shared library can be useful
14
14
@@ -181,11 +181,11 @@ The first publish of any `@defra`-scoped package must be done by a Defra npm org
181
181
182
182
Publish NuGet packages to [nuget.org](https://www.nuget.org) under the [Defra NuGet organisation](https://www.nuget.org/profiles/Defra).
183
183
184
-
The `Defra` package ID prefix is reserved on NuGet.org and package IDs using it may be rejected. Use the `DefraDigital` prefix instead:
184
+
The `Defra` package ID prefix is reserved on NuGet.org for the `Defra` organisation and should be used for all packages. Examples of valid package IDs include:
185
185
186
186
```text
187
-
DefraDigital.YourPackage
188
-
DefraDigital.Team.Component
187
+
Defra.YourPackage
188
+
Defra.Team.Component
189
189
```
190
190
191
191
For onboarding, contact [`#nuget-support`](https://defra-digital.slack.com/archives/C0B9RF36WTH) in Slack. A Defra NuGet org admin will add you as a Collaborator to the Defra organisation on NuGet.org.
@@ -203,7 +203,7 @@ Contact `#nuget-support` in Slack with:
203
203
- your NuGet.org username
204
204
- your team name
205
205
- the GitHub repository that will publish the package
206
-
-the proposed package ID (for example `DefraDigital.YourPackage`)
206
+
the proposed package ID (for example `Defra.YourPackage`)
207
207
- confirmation the package is suitable for public publishing
208
208
209
209
Make sure your NuGet.org account uses a secure Microsoft account with MFA enabled.
@@ -213,29 +213,29 @@ Make sure your NuGet.org account uses a secure Microsoft account with MFA enable
213
213
Create a new GitHub repository under the DEFRA organisation, then create a solution, class library and test project:
0 commit comments