2016-11-09 67 views
3

有没有办法在Visual Studio中添加dotnet的核心项目预生成/ postbuild选择?添加预生成或Postbuild到DOTNET核心项目

没有选择添加构建事件项目属性,因为它使用的是与标准点网项目standard dot net project properties

Dot net core projects with no build events option

+0

见http://stackoverflow.com/questions/37596115/how-to-run-scripts-based-on-solution-configuration-in-asp-net-core-rc2 – stuartd

+0

我创建了一个演示,测试里卡多丰塔纳的答案。有用。你解决你的问题?如果没有,请提供更多信息? –

+0

@ColeWu是的,它解决了这个问题。谢谢 – Dmehro

回答

3

the documentation,您可以添加命令,在scripts节,在project.json文件。

"scripts": { 
    "precompile": [ "echo before" ], 
    "postcompile": [ "echo after" ] 
} 
相关问题