If you want to add multiple files to a traditional Visual Studio project(not .NET Core), the default procedure is the following:
- Right click on your project. Choose Add –> Existing Item…
- Choose one or more items from the ‘Add Existing Item’ dialog and click Add.
A faster alternative instead of using ‘Add existing’ is the following trick:
- Right click on your project and choose Unload project
- Right click on the unloaded project and choose Edit csproj file.
- Now add the following line to the MSBuild file:
<Compile Include="**\*.cs" />
- Visual Studio will load all .cs files it found.