Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it easy to include NetCore-only and NetFx-only files (#10572)
This migrates a change from Razor tooling and makes it available for all the Razor repo. Essentially, this allows a C# file to be compiled for just .NET Framework or .NET Core by its name or the name of the folder its contained in. 1. Naming a C# file as `.NetCore.cs` or `.NetFx.cs` it will compile _only_ for NetCore or NetFx, respectively. 2. C# files placed in a folder called `NetCore` or `NetFx` will compile _only_ for NetCore or NetFx, respectively. 3. C# files placed in a folder whose name ends in `_NetCore` or `_NetFx` will compile _only_ for NetCore or NetFx, respectively. This makes it clear from the Solution Explorer if there are files that only compile for one target or another without having to open them and look at `#if..#endif` blocks.
- Loading branch information