Skip to content

Commit 2336191

Browse files
Add RELEASING.md
1 parent b7817ae commit 2336191

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

RELEASING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# solvecaptcha-csharp package releasing
2+
3+
## Step 1. Build the package with the updated version
4+
5+
1. Open a terminal or command prompt and navigate to the directory where your project is located (the `SolveCaptcha.csproj` file).
6+
7+
2. Run the command to build the package in Release mode. For example:
8+
9+
10+
`dotnet pack --configuration Release`
11+
12+
13+
3. After successful execution of the command, the package will be created in the bin/Release/ folder. Check that the file name includes the new version, for example:
14+
15+
16+
`solvecaptcha-csharp.1.0.0.nupkg`
17+
18+
19+
## Step 2. Checking the created file
20+
21+
Make sure that:
22+
- The file is located in the `bin/Release/` folder.
23+
- The file name corresponds to the format `<PackageID>.<Version>`.nupkg (in your case it should be `solvecaptcha-csharp.1.0.0.nupkg`).
24+
- All updated metadata (including the version) is correctly reflected in the file.
25+
26+
## Step 3. Publishing on NuGet.org
27+
The next step is to publish the package. To publish, use the command:
28+
`dotnet nuget push bin/Release/solvecaptcha-csharp.1.0.0.nupkg --api-key YOUR_API_KEY --source https://api.nuget.org/v3/index.json`
29+
30+
- `YOUR_API_KEY` - is your API key created on NuGet.org.
31+
- The path to the file must be correct and point to the one you just created.the nupkg file.

0 commit comments

Comments
 (0)