Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable globbing with the new .NET SDK project system?

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?

like image 617
Jason Avatar asked Jul 17 '17 22:07

Jason


People also ask

Is it safe to uninstall Microsoft .NET SDK?

Unless your application has specific reasons for earlier SDKs or runtimes, you may safely remove older versions.

What is Project SDK Microsoft NET SDK?

. 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.

How do I remove .NET runtime and SDK?

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.

What is CopyLocalLockFileAssemblies?

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.


1 Answers

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

like image 190
natemcmaster Avatar answered Sep 26 '22 15:09

natemcmaster