I am having a lot of performance issues with the new .NET SDK project system. The globbing pattern resolution done by MSBuild is too slow for my directory layout and makes Visual Studio freeze very frequently.
Is there a way to disable the globbing system or is it possible to use ASP.NET Core with the old project system?
Unless your application has specific reasons for earlier SDKs or runtimes, you may safely remove older versions.
. NET Core and . NET 5 and later projects are associated with a software development kit (SDK). Each project SDK is a set of MSBuild targets and associated tasks that are responsible for compiling, packing, and publishing code. A project that references a project SDK is sometimes referred to as an SDK-style project.
To remove the unuseful version of the SDKs and runtimes, you can use the dotnet-core-uninstall tool. Once you've installed it, you can use the following command to see the list with the . NET SDKs and runtimes that can be removed. You can also perform a what-if analysis of an uninstall.
The CopyLocalLockFileAssemblies property is useful for plugin projects that have dependencies on other libraries. If you set this property to true , any NuGet package dependencies are copied to the output directory. That means you can use the output of dotnet build to run your plugin on any machine.
You can disable most default globs with this property.
<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>
See https://docs.microsoft.com/en-us/dotnet/core/tools/csproj#default-compilation-includes-in-net-core-projects and https://aka.ms/sdkimplicititems for more details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With