dotnet / scenario-tests

Scenario testing for installed .NET Core SDKs
MIT License
5 stars 7 forks source link

Ensure SDK version can be overridden #88

Closed mthalman closed 4 months ago

mthalman commented 4 months ago

When calling the Test target, the NETCoreSdkVersion property is used to configure the test environment. In some cases, it's not possible for the caller to override that value because it is hardcoded by https://github.com/dotnet/installer/blob/bf738fd99f28f1d6b80cc6af97253dc7acf00a46/src/redist/targets/GenerateBundledVersions.targets#L534. This can prevent the tests from working in the VMR environment.

This is resolved by introducing a new overridable property, TestSdkVersion, that will default to NETCoreSdkVersion if not overridden.