Sample-Microsoft.NET.Sdk If you run dotnet test without the file Directory.Build.props, it works fine. If you run dotnet test with the file Directory.Build.props, you get error: Get projects properties with MSBuild didn't execute properly with exit code: 1.