asp.net核心从生成中排除文件

浮动猕猴桃

我试图将量角器添加到我的asp.net-core应用程序中。

我通过npm添加了它,并安装了包含一个文件的selenium-webdriver Page.aspx.cs这会导致生成错误,但是我的项目甚至不需要对其进行编译。

所以我试图使用project.json排除node_modules

"buildOptions": {
  "emitEntryPoint": true,
  "preserveCompilationContext": true,
  "compile": {
    "excludeFiles": "node_modules"
  }
},

给出Illegal characters in path

 "excludeFiles": ["node_modules"]

这似乎与_字符有关,但我无法弄清楚为什么这会成为问题。

谢谢

浮动猕猴桃

我设法使使用exclude而不是excludeFiles

"buildOptions": {
  "emitEntryPoint": true,
  "preserveCompilationContext": true,
  "compile": {
    "exclude": ["node_modules"]
  }
},

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章