From: xgqt@gentoo.org
To: gentoo-dev@lists.gentoo.org
Cc: dotnet@gentoo.org, "Maciej Barć" <xgqt@gentoo.org>
Subject: [gentoo-dev] [PATCH 2/2] eclass/nuget: add eclassdoc that describes how to generate the NUGETS list
Date: Wed, 20 Nov 2024 22:50:59 +0100 [thread overview]
Message-ID: <20241120215226.86454-2-xgqt@gentoo.org> (raw)
In-Reply-To: <20241120215226.86454-1-xgqt@gentoo.org>
From: Maciej Barć <xgqt@gentoo.org>
Some users asked for it. Also add a link to the Gentoo Wiki with more
specific examples.
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
eclass/nuget.eclass | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass
index 4efbeb909f..3ad22fda2b 100644
--- a/eclass/nuget.eclass
+++ b/eclass/nuget.eclass
@@ -71,6 +71,24 @@ export NUGET_PACKAGES
# @DESCRIPTION:
# String containing all NuGet packages that need to be downloaded.
#
+# To generate the "NUGETS" list use the "gdmt restore" tool from the
+# "dev-dotnet/gentoo-dotnet-maintainer-tools" package. To see all "gdmt restore"
+# options invoke it with the "--help" flag. The Gentoo Wiki page
+# Dotnet/Devguide (https://wiki.gentoo.org/wiki/Dotnet/Devguide) contains
+# examples and special cases to be beware of.
+#
+# Generally you will want to invoke "gdmt restore" form within a (clean) tagged
+# checkout of a given .NET-based project. The invocation will look something
+# like this: gdmt restore --sdk-ver SDK-VER --cache "$(pwd)/.cache" --project PROJECT
+# Where:
+# * "SDK-VER" is a .NET version (6.0, 8.0), mind the full version, "8" is not allowed,
+# * "PROJECT" is a given project file (.csproj or .fsproj) or a directory containing it.
+# So, for example:
+# gdmt restore --sdk-ver 8.0 --cache "$(pwd)/.cache" --project src/App/App.csproj
+#
+# When formatting the "NUGETS" list it is better to not indent it,
+# but it can be indented with single tab.
+#
# Used by "_nuget_uris".
#
# Example:
--
2.45.2
next prev parent reply other threads:[~2024-11-20 21:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-20 21:50 [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base: disable MSBUILDTERMINALLOGGER for new .NET 9.0 pkgs xgqt
2024-11-20 21:50 ` xgqt [this message]
2024-11-20 22:46 ` [gentoo-dev] [PATCH 2/2] eclass/nuget: add eclassdoc that describes how to generate the NUGETS list James Le Cuirot
2024-11-21 0:09 ` Matt Jolly
2024-11-21 9:24 ` Maciej Barć
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241120215226.86454-2-xgqt@gentoo.org \
--to=xgqt@gentoo.org \
--cc=dotnet@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox