relationship between C# compiler and .net core sdk
does a preview version of .net core use a preview version of the compiler? What is the relationship there?

dotnet build will switch to that compiler. the package versions there correspond to visual studio versions, mostly, so 4.9.2 would correspond to the compiler in VS 17.9, and that is not previewglobal.json for thatdotnet new globaljson <tons of args> --forceglobal.json only during that runinstall dotnet from sdk to explicitly install a speciifc 9.x-previewUseDotNet@2 to install a specific 9.x preview <TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net8.0;</TargetFrameworks>dotnet build4.9.2global.jsonglobal.jsondotnet new globaljson <tons of args> --forceinstall dotnet from sdkUseDotNet@2{
"sdk": {
"allowPrerelease": true,
"rollForward": "major",
"version": "8.0.200"
}
} - task: UseDotNet@2
displayName: "Install .NET Core SDK from global.json"