From 5fdcc1b520c69d576b7ab9f1e044d7cde8afc6a7 Mon Sep 17 00:00:00 2001 From: Hadrian Tang Date: Thu, 11 Jun 2020 16:05:09 +0800 Subject: [PATCH 1/2] GitHub package registry doesn't support build metadata properly --- Directory.Build.props | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index d682576c..087f9d52 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -63,7 +63,9 @@ - + + + From f8a2c726ba195cda9c6547dea566a157ca62b67a Mon Sep 17 00:00:00 2001 From: Hadrian Tang Date: Thu, 11 Jun 2020 16:16:46 +0800 Subject: [PATCH 2/2] How to opt into the nightly feed --- ReadMe.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/ReadMe.md b/ReadMe.md index 14206c5d..a10ff532 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -262,6 +262,37 @@ Analyzing an expression | Solving an equation # [Documentation](https://github.com/verybadcat/CSharpMath/wiki/Documentation-of-public-facing-APIs-of-CSharpMath.Rendering,-CSharpMath.SkiaSharp-and-CSharpMath.Forms-MathViews) +# Opting in to the nightly feed + +For those who wish to be even more updated than prereleases, you can opt in to the nightly feed which is updated whenever the master branch has a new commit. + +1. Log in to GitHub +2. Generate a new token (a 40-digit hexadecimal number) in https://github.com/settings/tokens/new with the `read:packages` scope +3. Create a new file called `NuGet.Config` or `nuget.config` in the same folder as your solution with content +```xml + + + + + + + + + + + + +``` +4. Replace `USERNAME` in the above file with your GitHub username and `TOKEN` with your generated token. +5. Open a package webpage in https://github.com/verybadcat/CSharpMath/packages +6. Insert the following into your `.csproj`: +```xml + + + +``` +7. Replace `PACKAGE` in the above file by the package name in the webpage, e.g. `CSharpMath.SkiaSharp`, and `VERSION` by the version in the webpage, e.g. `0.4.2-ci-9db8a6dec29202804764fab9d6f7f19e43c3c083`. The 40-digit hexadecimal number at the end of the version is the Git commit that was the package was built on. CI versions are after the current version, aka `0.4.1-ci-xxx` → `0.4.2` → `0.4.2-ci-xxx`. + # Project structure