Reputation: 34189
I have old .NET Core project. Under application properties the project's Target framework is
.NET Core 2.0
But on the build server We don't have 2.0 SDK installed. Instead we have other SDK versions, like 2.1, 2.2 etc
The application is building and working fine. Build server is using dotnet publish -c Release
command to build the application. But how do I know which version is being used to build the application. Is it using the latest version of 2.*, which in this case 2.2.402
?
Upvotes: 0
Views: 634
Reputation: 11974
I think you could check this document
As mentioned in the document:
The process for selecting an SDK version is:
dotnet searches for a global.json file iteratively reverse-navigating the path upward from the current working directory.
dotnet uses the SDK specified in the first global.json found.
dotnet uses the latest installed SDK if no global.json is found.
Upvotes: 0