What you can also do if you donโt find a solution, binds the directory to your project manually, and let the project automatically find all the .cs files in this directory when it loads.
This is easy to do by modifying the MSBuild file as follows:
<ItemGroup> <Compile Include="SomeDirectory\**\*.cs"/> </ItemGroup>
It will take all .cs files in SomeDirectory and include them in the project. This is very useful if a lot of files are added to the project. However, this may break on some machines that add useless files. Therefore, I would recommend only an external project that is not edited in your workspace.
source share