After upgrading to a csproj to use Visual Studio 2017 and Microsoft.NET.Sdk, my \"BeforeBuild\" and \"AfterBuild\" targets are no longer running. My file looks like this:
The associated MSBuild git issue recommends not using BeforeBuild/AfterBuild as task names going forward, instead name the task appropriately and wiring up against targets
net46
This gets you an idiomatic VS 2017 project file, but which targets you trigger before/after is still a matter of some debate at this time