Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/AngleSharp.XPath.Tests/AngleSharp.XPath.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AngleSharp.Xml" Version="1.2.0" />
<PackageReference Include="AngleSharp.Xml" Version="1.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageReference Include="NUnit" Version="5.0.0" />
<PackageReference Include="NUnit3TestAdapter" Version="6.3.1" />
Expand Down
17 changes: 16 additions & 1 deletion src/AngleSharp.XPath/AngleSharp.XPath.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,23 @@
<LangVersion>default</LangVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' != 'netstandard2.0' And !$(TargetFramework.StartsWith('net4')) ">
<IsAotCompatible>true</IsAotCompatible>
</PropertyGroup>

<!-- IsAotCompatible makes the SDK reference Microsoft.NET.ILLink.Tasks implicitly, at the version
its KnownILLinkPack table lists per target (8.0.x for net8.0, 10.0.x for net10.0). Two versions
of one package in one project make Visual Studio's NuGet Consolidate tab report it, so every
target uses the trimmer of the SDK doing the build instead. Following the SDK's bundled version
keeps it current without pinning, and covers the next pair of targets too (net10.0 next to net11.0).
KnownILLinkPack is SDK-internal and undocumented: if an SDK renames or reshapes it, this goes
inert or fails the restore - drop it then, or once only one .NETCoreApp target is left. -->
<ItemGroup>
<KnownILLinkPack Update="Microsoft.NET.ILLink.Tasks" ILLinkPackVersion="$(BundledNETCoreAppPackageVersion)" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="AngleSharp" Version="1.8.6" />
<PackageReference Include="AngleSharp" Version="1.10.2" />
</ItemGroup>

<ItemGroup>
Expand Down