Commit 130afb2
authored
Feature/hotfix fixing release and package issues (#157)
* #154 Update packaging and build process for CryptoNet
- Set `<IsPackable>false</IsPackable>` in `CryptoNet.ExtShared.csproj`
and `CryptoNet.Models.csproj` to prevent NuGet packaging.
- Bump version in `CryptoNet.csproj` from `3.0.0` to `3.1.9`.
- Add `<IncludeReferencedProjects>true</IncludeReferencedProjects>`
to include referenced project outputs in the NuGet package.
- Add a target to explicitly include referenced DLLs in the package.
- Modify asset handling for `CryptoNetLogo-icon.png` to prevent
copying to the output directory.
- Update `Directory.Build.Props` to conditionally set `<PathMap>`
only when `$(SolutionDir)` is defined, avoiding malformed paths.
* #154 Update dependencies and project configurations
- Upgraded `Microsoft.CodeAnalysis.NetAnalyzers` to `10.0.100`.
- Upgraded `System.Text.Json` to `10.0.0` across all projects.
- Updated test dependencies: `Microsoft.NET.Test.Sdk`, `NUnit3TestAdapter`,
`ReportGenerator`, `SharperHacks.CoreLibs.IO`, `CliWrap`, and `NUnit.Analyzers`.
- Added `Microsoft.Build` to `CryptoNet.UnitTests.csproj`.
- Enabled embedded debugging with `<DebugType>embedded</DebugType>`.
- Re-enabled `<GenerateDocumentationFile>` in `CryptoNet.csproj`.
- Centralized versioning in `Directory.Build.Props` and set version to `3.2.0`.
- Updated `TargetFramework` to `net8.0` in `Directory.Build.Props`.
- Adjusted project references and metadata for consistency.
* #154 Improve packaging, debugging, and validation processes
- Set `<IsPackable>false</IsPackable>` in `CryptoNet.ExtShared.csproj`
and `CryptoNet.Models.csproj` to prevent standalone NuGet packing.
- Added `<DebugType>portable</DebugType>` and `<Deterministic>true</Deterministic>`
for portable PDBs and deterministic builds.
- Downgraded `Microsoft.CodeAnalysis.NetAnalyzers` to 9.0.0 and
`System.Text.Json` to 9.0.8 in `CryptoNet.ExtShared.csproj` for compatibility.
- Included `.pdb` and `.xml` files for `CryptoNet.ExtShared` and
`CryptoNet.Models` in the NuGet package if they exist.
- Added NuGet validation script in `run_nuget_validation.ps1` to
ensure package quality using `dotnet-validate`.
* #154 Enhance build settings and NuGet packaging metadata
Updated project files to improve NuGet packaging and SourceLink integration:
- Added `<IsPackable>false</IsPackable>` to prevent standalone NuGet packaging.
- Included repository metadata (`<RepositoryUrl>` and `<PublishRepositoryUrl>`).
- Enabled SourceLink and deterministic build settings with `<EmbedUntrackedSources>` and `<ContinuousIntegrationBuild>`.
Refined dependencies:
- Added `Microsoft.SourceLink.GitHub` (v8.0.0) for GitHub SourceLink support.
- Retained `Microsoft.CodeAnalysis.NetAnalyzers` (v9.0.0) for static analysis.
Removed obsolete properties and comments:
- Removed `_SkipUpgradeNetAnalyzersNuGetWarning` and outdated comments.
Updated `run_nuget_validation.ps1`:
- Added `dotnet clean`, `dotnet build`, and `dotnet pack` commands.
- Integrated `dotnet-validate` for NuGet package validation.
* #154 Simplify project build settings
Removed `<DebugType>portable>`, `<Deterministic>`,
`<ContinuousIntegrationBuild>`, and `<EmbedUntrackedSources>`
from `CryptoNet.ExtShared.csproj` and `CryptoNet.Models.csproj`.
These changes simplify the build configuration by removing
explicit settings for debug information, deterministic builds,
CI build flags, and SourceLink validation. Adjustments may
reflect a shift to default or external configurations.
* Update dependencies, versions, and target framework
- Updated `CryptoNet.ConsumerTest.csproj` to use `CryptoNet` version `3.1.12-preview.20251129.2241`.
- Removed the `<Version>` tag from `CryptoNet.ExtPack.csproj` (was `3.0.0`).
- Upgraded Visual Studio version in `CryptoNet.sln` to `18.3.11222.16`.
- Added `Directory.Build.Props` with updated versioning:
- `<Version>`: `3.2.0` → `3.2.5`
- `<FileVersion>`: `3.2.0.0` → `3.2.5.0`
- `<AssemblyVersion>`: `3.2.0.0` → `3.2.5.0`
- Updated target framework in `Directory.Build.Props` to `net8.0`.
* Refactor preview tag format and add release script
Updated `cd-release-preview.yml` to simplify the regex for preview tag matching. Adjusted `run_release.ps1` to make `PreviewId` and `TagName` NuGet-compliant by removing dots and using the format `vX.Y.Z-previewYYYYMMDDHHmm`. Improved error messaging for version validation. Added `run_release.ps1` to the `DevOps` project in `CryptoNet.sln`.1 parent fa6324f commit 130afb2
File tree
7 files changed
+17
-14
lines changed- .github/workflows
- CryptoNet.ConsumerTest
- CryptoNet.ExtPack
- CryptoNet
7 files changed
+17
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | | - | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments