-
Notifications
You must be signed in to change notification settings - Fork 257
Slow compilation with .NET SDK 10.0.2xx and 10.0.3xx #370
ThomasHoevel
started this conversation in
General
With the update of Visual Studio 18.3.2 to 18.4.x, we noticed a massive slowdown of compilation of the PDFsharp.sln.
For a complete Rebuild Solution in VS 2026, we got the following timings:
- .NET SDK 10.0.108: 26,104 seconds
- .NET SDK 10.0.204: 01:38,440 minutes
- .NET SDK 10.0.300: 01:40,185 minutes
To get quick compile times with the latest VS 2026 versions (e.g. 18.6.2 or higher), you can do the following:
- Ensure that .NET SDK 10.0.108 is installed; at a command prompt, use
dotnet --list-sdksto list all SDKs - Create a
global.jsonfile in the repo folder (with the PDFsharp.sln file) or in any folder above it.
Here is my global.json file, allowing me to switch between different SDK versions:
{
"sdk": {
"version": "10.0.108"
// "version": "10.0.204"
// "version": "10.0.300"
}
}All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment