Repository navigation
·
2 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Released package
- NuGet Smdn.MSBuild.ProjectAssets.Library version 1.18.2
- GitHub Packages Smdn.MSBuild.ProjectAssets.Library version 1.18.2
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2026-11-23 update package version
- 2026-11-23 fix GetLatestFramework to support OS-specific TFMs
Full changes
Full changes in this release:
diff --git a/src/Smdn.MSBuild.ProjectAssets.Library/Smdn.MSBuild.ProjectAssets.Library.csproj b/src/Smdn.MSBuild.ProjectAssets.Library/Smdn.MSBuild.ProjectAssets.Library.csproj
index 0fcb343..a851ef1 100644
--- a/src/Smdn.MSBuild.ProjectAssets.Library/Smdn.MSBuild.ProjectAssets.Library.csproj
+++ b/src/Smdn.MSBuild.ProjectAssets.Library/Smdn.MSBuild.ProjectAssets.Library.csproj
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
<Import Project="$(MSBuildThisFileDirectory)..\..\eng\ProjectSettings.NoAssemblies.props" />
<PropertyGroup>
- <VersionPrefix>1.18.1</VersionPrefix>
+ <VersionPrefix>1.18.2</VersionPrefix>
<VersionSuffix></VersionSuffix>
<DevelopmentDependency>true</DevelopmentDependency>
<PackageType>Dependency;MSBuildSdk</PackageType>
diff --git a/src/Smdn.MSBuild.ProjectAssets.Library/project/PackageReadmeFile.targets b/src/Smdn.MSBuild.ProjectAssets.Library/project/PackageReadmeFile.targets
index 7a53ef6..9874403 100644
--- a/src/Smdn.MSBuild.ProjectAssets.Library/project/PackageReadmeFile.targets
+++ b/src/Smdn.MSBuild.ProjectAssets.Library/project/PackageReadmeFile.targets
@@ -104,18 +104,20 @@ List of APIs exposed by assembly `$(AssemblyName)-$(InformationalVersion)` ($(La
?.Select(static item => item.ItemSpec)
?.Select(static moniker => {
if (moniker.StartsWith("netcoreapp", StringComparison.OrdinalIgnoreCase))
- return new { Moniker = moniker, Identifier = ".NETCoreApp", Version = new Version(moniker.Substring("netcoreapp".Length)) };
+ return new { Moniker = moniker, Identifier = ".NETCoreApp", Version = new Version(moniker.Substring("netcoreapp".Length)), Platform = (string)null };
if (moniker.StartsWith("netstandard", StringComparison.OrdinalIgnoreCase))
- return new { Moniker = moniker, Identifier = ".NETStandard", Version = new Version(moniker.Substring("netstandard".Length)) };
+ return new { Moniker = moniker, Identifier = ".NETStandard", Version = new Version(moniker.Substring("netstandard".Length)), Platform = (string)null };
- if (Regex.IsMatch(moniker, @"^net[0-9]+\.[0-9]", RegexOptions.IgnoreCase))
- return new { Moniker = moniker, Identifier = ".NETCoreApp", Version = new Version(moniker.Substring("net".Length)) };
+ var matchNetCoreApp = Regex.Match(moniker, @"^net(?<version>[0-9]+\.[0-9])(\-(?<platform>[a-z0-9\.]+))?", RegexOptions.IgnoreCase);
+
+ if (matchNetCoreApp.Success)
+ return new { Moniker = moniker, Identifier = ".NETCoreApp", Version = new Version(matchNetCoreApp.Groups["version"].Value), Platform = matchNetCoreApp.Groups["platform"].Value };
if (Regex.IsMatch(moniker, @"^net[1-4][0-9][0-9]?", RegexOptions.IgnoreCase))
- return new { Moniker = moniker, Identifier = ".NETFramework", Version = new Version(string.Join(".", moniker.Substring("net".Length).ToCharArray())) };
+ return new { Moniker = moniker, Identifier = ".NETFramework", Version = new Version(string.Join(".", moniker.Substring("net".Length).ToCharArray())), Platform = (string)null };
- return new { Moniker = moniker, Identifier = "unknown", Version = (Version)null };
+ return new { Moniker = moniker, Identifier = "unknown", Version = (Version)null, Platform = (string)null };
})
?.OrderBy(static f => f.Identifier switch {
".NETCoreApp" => 0,
@@ -124,9 +126,10 @@ List of APIs exposed by assembly `$(AssemblyName)-$(InformationalVersion)` ($(La
_ => int.MaxValue,
})
?.ThenByDescending(static f => f.Version)
+ ?.ThenBy(static f => f.Platform)
#if false
?.Select(/*static*/ (f, index) => {
- Log.LogMessage(MessageImportance.High, $"#{index}: Moniker={f.Moniker}, Identifier={f.Identifier}, Version={f.Version}");
+ Log.LogMessage(MessageImportance.High, $"#{index}: Moniker={f.Moniker}, Identifier={f.Identifier}, Version={f.Version}, Platform={f.Platform}");
return f;
})
?.ToList()Notes
Full Changelog: releases/Smdn.MSBuild.ProjectAssets.Library-1.18.1...releases/Smdn.MSBuild.ProjectAssets.Library-1.18.2