AArnott / Library.Template

A template for a NuGet package with tests, stylecop, fxcop, versioning, and Azure Pipelines build ready to go.
MIT License
131 stars 26 forks source link

Add support for TargetFrameworks of the form netXX #107

Closed SteveBush closed 3 years ago

SteveBush commented 3 years ago

Add support for TargetFrameworks of the form netXX to the Dotnet SDK installer script. I'm working on a project where I want tests to support the net5 and net6 target frameworks. When I set global.json to net6, the runtimes for the test projects fail to pick up net5. This fix adds support for detecting target framework runtimes of the form netXX.