Skip to content
Merged
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
13 changes: 13 additions & 0 deletions src/Serialize.Linq/Serialize.Linq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,19 @@
<WarningLevel>7</WarningLevel>
</PropertyGroup>

<!--
Reference the .NET Framework reference assemblies explicitly for the
net48/net481 targets. On non-Windows build hosts the SDK pulls this package
in implicitly (the reference assemblies aren't installed), but on Windows
they come from the OS and no package is added. Declaring it explicitly keeps
packages.lock.json identical across build operating systems so locked-mode
restores don't fail in CI. PrivateAssets="all" keeps it build-only and out
of the published package's dependencies.
-->
<ItemGroup Condition=" '$(TargetFramework)' == 'net48' or '$(TargetFramework)' == 'net481' ">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
</ItemGroup>

Expand Down
Loading