summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Framework/UpdateData
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-07 22:19:48 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-07 22:19:48 -0400
commit238045ba9c5937f684cad3c55a8f9b9c2733e45f (patch)
tree97e32e6b0f1ce1d6b7dc40587d29b63d01bbd123 /src/SMAPI.Toolkit/Framework/UpdateData
parentdf955c0d3e0110be0893082de0c82187de63d9d2 (diff)
downloadSMAPI-238045ba9c5937f684cad3c55a8f9b9c2733e45f.tar.gz
SMAPI-238045ba9c5937f684cad3c55a8f9b9c2733e45f.tar.bz2
SMAPI-238045ba9c5937f684cad3c55a8f9b9c2733e45f.zip
reverse mod build package migration to .NET 5 (#837)
The migrated package didn't work consistently in VIsual Studio, so this suppresses nullable annotations in .NET Standard instead.
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/UpdateData')
-rw-r--r--src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs b/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
index d40d8f2b..4c9ca2ff 100644
--- a/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
+++ b/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
@@ -16,7 +16,9 @@ namespace StardewModdingAPI.Toolkit.Framework.UpdateData
public ModSiteKey Site { get; }
/// <summary>The mod ID within the repository.</summary>
+#if NET5_0_OR_GREATER
[MemberNotNullWhen(true, nameof(LooksValid))]
+#endif
public string? ID { get; }
/// <summary>If specified, a substring in download names/descriptions to match.</summary>