how to add default csproj lines

I want <DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports> to be added to PropertyGroup in any and all csproj files created when I use Rider.

How do I accomplish this?

EDIT: to clarify, I want to not allow these implicit using statements to happen anymore for any project I create in rider:

// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
 

0
1 comment

Rider supports adding custom .NET project templates. You could refer to this guidance to create your own project templates and then add them in Rider.

Here is the guidance for managing global usings in Rider.

0

Please sign in to leave a comment.