运行gulp时VSO构建的“noexcept”警告

时间:2015-10-28 20:36:50

标签: tfs msbuild gulp azure-devops

我最近在我的VSO版本上启用了gulp,但我看到它在构建时输出了一堆警告,例如。

'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc [xxxxx.WebClient\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate\build\validation.vcxproj]
'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc [xxxxx.WebClient\node_modules\karma\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj]

如何解决这些警告,或至少禁用它们。

1 个答案:

答案 0 :(得分:1)

这是一篇博客,提供了有关向Visual Studio Online XAML Builds添加gulp的详细步骤,您可以按照它来添加构建内容:http://blogs.msdn.com/b/nicktrog/archive/2015/03/05/adding-gulp-to-visual-studio-online-builds.aspx

博客摘要:

您需要在Web应用程序项目中添加一个文件夹“js”,该项目将包含您的客户端JavaScript代码。

然后,您需要通过向Web应用程序项目添加3个文件来为您的Web应用程序配置gulp,以便在构建前脚本和后构建脚本中调用grunt / gulp / bower命令:

•gulpfile.js:包含描述需要执行的所有构建任务的gulp脚本。

•package.json:包含gulp脚本的列表包依赖项

•clientcompile.bat(注意:您也可以使用PowerShell):安装依赖包然后调用gulp命令的批处理脚本

之后,在VSO中对构建进行排队。

希望这会对你有所帮助。