Is there something like the AfterBuild Target in msbuild with .NET Core in Visual Studio 2017 RC?
I tried to add the following snipped to the .csproj file, but it is not excuted during a build (Contrary to VS2015 where it does work).
<Target Name="AfterBuild">
<Message Importance="High" Text="This is a test" />
</Target>
Another interesting discovery: As I thought that the AfterBuild target might have been removed - running msbuild <project.csproj> /t:AfterBuild
doesn't seem to call the added target. If I rename the target to "Test" an call it with msbuild <project.csproj> /t:Test
it works just fine.
Additionally, is there any documentation on the msbuild version (and possibly the .NET Core build scripts) shipping with Visual Studio 2017 RC?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…