-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/cpm migration #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
04f2bfd
76742dc
e386c92
d39672f
6b58a88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ on: | |
| - "Tests/**" | ||
| - "Resources/**" | ||
| - "NtoLib.sln" | ||
| - "Directory.Packages.props" | ||
| - "global.json" | ||
| - ".editorconfig" | ||
| - "!**.md" | ||
|
|
@@ -19,6 +20,7 @@ on: | |
| - "Tests/**" | ||
| - "Resources/**" | ||
| - "NtoLib.sln" | ||
| - "Directory.Packages.props" | ||
| - "global.json" | ||
| - ".editorconfig" | ||
| - "!**.md" | ||
|
Comment on lines
+6
to
28
|
||
|
|
@@ -45,18 +47,8 @@ jobs: | |
| with: | ||
| global-json-file: global.json | ||
|
|
||
| - name: setup NuGet | ||
| uses: NuGet/setup-nuget@v2 | ||
|
|
||
| # NtoLib.csproj uses packages.config with MSBuild <Import> of | ||
| # ..\packages\Serilog.4.3.0\build\Serilog.targets — dotnet restore does | ||
| # not populate packages/ for old-style projects, so nuget.exe restore | ||
| # runs first. dotnet restore then covers the Tests project's | ||
| # PackageReference graph. | ||
| - name: restore | ||
| run: | | ||
| nuget restore NtoLib.sln | ||
| dotnet restore NtoLib.sln | ||
| run: dotnet restore NtoLib.sln | ||
|
|
||
| - name: build | ||
| run: dotnet build NtoLib.sln -c Release --no-restore | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,19 +6,37 @@ via `netreg.exe`. | |||||
|
|
||||||
| - **Framework:** .NET Framework 4.8, C# 10, Nullable enabled | ||||||
| - **Solution:** `NtoLib.sln` — two projects: `NtoLib` (main library) and `Tests` (xUnit) | ||||||
| - **csproj style:** Old-style with explicit `<Compile Include>` entries (no wildcards) | ||||||
| - **csproj style:** SDK-style (`<Project Sdk="Microsoft.NET.Sdk">`) with explicit | ||||||
| `<Compile Include>` entries — default item globs are disabled | ||||||
| (`EnableDefaultCompileItems=false`, `EnableDefaultEmbeddedResourceItems=false`, | ||||||
| `EnableDefaultNoneItems=false`) so the "no wildcards" rule still holds. | ||||||
| - **NuGet:** `PackageReference` only; versions centrally managed in | ||||||
| `Directory.Packages.props` at the repo root (Central Package Management). | ||||||
|
|
||||||
| ## Build | ||||||
|
|
||||||
| ```powershell | ||||||
| dotnet build NtoLib.sln | ||||||
| Build/Package.ps1 # build + ILRepack merge + archive | ||||||
| dotnet build NtoLib.sln # un-merged DLL (used by tests) | ||||||
| dotnet build NtoLib.sln -p:RunILRepack=true # merged DLL (used for deployment) | ||||||
| Build/Package.ps1 # build + test + ILRepack merge + archive | ||||||
| Build/Deploy.ps1 # build + merge + copy to target machine | ||||||
|
||||||
| Build/Deploy.ps1 # build + merge + copy to target machine | |
| Build/deploy.ps1 # build + merge + copy to target machine |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This document references
Build/Deploy.ps1, but the repository file isBuild/deploy.ps1(lowercase). Consider updating the path so it matches the actual script name.