In .NET Core and .NET Standard projects, if you put files and folders within the project directory, they are automatically picked up by Visual Studio; essentially they are p
Open the project in Visual Studio, and right click the files and folders in Solution Explorer. Choose Exclude from Project.
Exclude from Project
That's exactly what you do for projects targeting .NET Framework.