The purpose of this repository is to demonstrate a problem with using Microsoft.Build.Artifacts on Linux. The issue is captured at Microsoft.Build.Artifacts not working on Linux.
On a machine with the .NET 5 SDK installed, clone the repository and build the project:
dotnet build --configuration Release
On Windows 10, building will generate an artifacts folder in the repository root that contains ArtifactsIssue.1.0.0.nupkg. On Linux (tested on Ubuntu 20.04 LTS running on Windows 10 via WSL 2), executing the same command builds the project but does not create an artifacts folder and copy the NuGet package into it.
To clean up the folders between build attempts, run this:
git clean -fxd