gpt4 book ai didi

azure-devops - 构建和发布错误 CS0234 : The type or namespace name 'Security' does not exist in the namespace 'Microsoft' (are you missing an assembly reference? )

转载 作者:行者123 更新时间:2023-12-03 09:08:55 24 4
gpt4 key购买 nike

当我将项目提交到 vsts 进行构建自动化时

有错误

Error CS0234: The type or namespace name 'Security' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

但是我的项目可以在本地使用 vs 运行

有人知道如何解决这个错误吗?

最佳答案

将 NuGet Restore 任务添加到您的构建/发布定义中。

  1. 将版本更改为 0.*
  2. 解决方案或packages.config的路径:***.sln
  3. 选择“还原”作为安装类型

关于azure-devops - 构建和发布错误 CS0234 : The type or namespace name 'Security' does not exist in the namespace 'Microsoft' (are you missing an assembly reference? ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44475766/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com