You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request. Would really like to see an extension to the global.json SDK entry that allows me to specify that the SDK must match exactly what is in global.json.
The ability to specify a sdk version in global.json is only useful if it can guarantee that I have an SDK of at least the version specified. The behavior today allows for SDKs with a lower version to be chosen even when a higher SDK is available. This means that I cannot use global.json to ensure that I'm using an sdk which has the bug fixes necessary to build my repository.
The current behavior leads to issues like #3070 which will be closed as "By Design". There are bug fixes our repository absolutely depends on. Yet even though I have specified the correct minimum SDK, and have SDKS on the machine of a higher version, dotnet inexplicably silently picks a lower one. Instead of a polite error message about missing SDKs I have to close my console window because there are so many errors that even Ctrl-C is ineffective.
I'm guessing this is a compat problem at this point. Hence I recommend extending the entry something like the following:
I reopened #3070. My quick reading of "enforceVersion" was that it should never pick anything but exact version (this has been on the table before), but #3070 shows a case where a roll-backward occured and that shouldn't happen regardless of flags.
This is a feature request. Would really like to see an extension to the global.json SDK entry that allows me to specify that the SDK must match exactly what is in global.json.
The ability to specify a sdk version in global.json is only useful if it can guarantee that I have an SDK of at least the version specified. The behavior today allows for SDKs with a lower version to be chosen even when a higher SDK is available. This means that I cannot use global.json to ensure that I'm using an sdk which has the bug fixes necessary to build my repository.
The current behavior leads to issues like #3070 which will be closed as "By Design". There are bug fixes our repository absolutely depends on. Yet even though I have specified the correct minimum SDK, and have SDKS on the machine of a higher version,
dotnet
inexplicably silently picks a lower one. Instead of a polite error message about missing SDKs I have to close my console window because there are so many errors that even Ctrl-C is ineffective.I'm guessing this is a compat problem at this point. Hence I recommend extending the entry something like the following:
The text was updated successfully, but these errors were encountered: