How do I create a pre-build step for a javascript metro app in VS11?
问题 I want to run some custom batch code just before every build. In a VS<11/C# app I could set the pre-build events in the project settings. I can't find similar settings in a javascript metro VS11 solution. Anyone know where it is, or if the option is gone (!) what kind of workaround I can do in its place? 回答1: You can use the BeforeBuild target in the Visual Studio .jsproj file to accomplish this: <Target Name="BeforeBuild"></Target> <Target Name="AfterBuild"></Target> To get here: Right-click