【问题标题】:"noexcept" warning on VSO build when running gulp运行 gulp 时 VSO 构建上的“noexcept”警告
【发布时间】:2015-10-28 20:36:49
【问题描述】:

我最近启用了在我的 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]

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

【问题讨论】:

  • 您使用的是 vNext 构建还是 XAML 构建?

标签: tfs msbuild gulp azure-devops


【解决方案1】:

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

博客摘要:

"

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

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

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

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

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

之后,在 VSO 中排队构建。

"

希望对你有所帮助。

【讨论】:

  • 谢谢。我之前遇到过那个帖子并关注了它,我已经 gulp 运行了,只是我收到了这些警告——它们并没有使构建失败,但无论如何都希望能够解决它们,
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-03-29
  • 2019-06-17
  • 1970-01-01
  • 2023-03-13
  • 1970-01-01
  • 2013-09-22
  • 2012-08-11
相关资源
最近更新 更多