- Clone the repo
- Build the library in
net8.0-lib
dotnet build -c Release .\net8.0-lib -bl
- Check the created binary log with the MSBuild Structured Log Viewer
- Check
net8.0-lib\obj\project.assets.json
- Check the output of
dotnet nuget why
:
dotnet nuget why .\net8.0-lib\ "System.Text.Encoding"
dotnet new classlib -o net8.0-lib -f net8.0
dotnet add net8.0-lib package "Microsoft.EntityFrameworkCore.SqlServer"
Enable the usage of lock file for package restore by setting this property in the net8.0-lib\net8.0-lib.csproj
:
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>