Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Azure构建代理不能´;找不到类库参考_C#_Azure Devops_Portable Class Library_Visual Studio 2019 - Fatal编程技术网

C# Azure构建代理不能´;找不到类库参考

C# Azure构建代理不能´;找不到类库参考,c#,azure-devops,portable-class-library,visual-studio-2019,C#,Azure Devops,Portable Class Library,Visual Studio 2019,我已经创建了一个C#类库,希望将其添加到webapp中。当我在AzureDevOps上的构建代理上构建webapp时,会发生此错误。生成代理找不到类库。我曾尝试将类库项目添加到解决方案中,但从未出现过源代码管理选项。我还尝试只添加类库的.dll。但是没有运气 VS 2019中文件资源管理器的图像: 以下是生成代理日志: [command]"C:\Program Files\dotnet\dotnet.exe" build d:\a\1\s\OneCalendar\OneCalenda

我已经创建了一个C#类库,希望将其添加到webapp中。当我在AzureDevOps上的构建代理上构建webapp时,会发生此错误。生成代理找不到类库。我曾尝试将类库项目添加到解决方案中,但从未出现过源代码管理选项。我还尝试只添加类库的.dll。但是没有运气

VS 2019中文件资源管理器的图像:

以下是生成代理日志:

    [command]"C:\Program Files\dotnet\dotnet.exe" build d:\a\1\s\OneCalendar\OneCalendar.csproj --configuration release
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Skipping project "d:\a\1\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj" because it was not found.
  Skipping project "d:\a\1\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj" because it was not found.
  Restoring packages for d:\a\1\s\OneCalendar\OneCalendar.csproj...
  Restore completed in 872.26 ms for d:\a\1\s\OneCalendar\OneCalendar.csproj.
C:\Program Files\dotnet\sdk\2.2.105\Microsoft.Common.CurrentVersion.targets(1879,5): warning : The referenced project '..\..\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj' does not exist. [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(11,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(1,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Services\AccountService.cs(1,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Services\JwtService.cs(1,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Startup.cs(3,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Context\UserContext.cs(15,28): warning CS0108: 'UserContext.Users' hides inherited member 'IdentityUserContext<User, string, IdentityUserClaim<string>, IdentityUserLogin<string>, IdentityUserToken<string>>.Users'. Use the new keyword if hiding was intended. [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(372,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(72,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(79,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(86,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(34,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(78,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(122,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(160,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(199,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(271,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(322,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(375,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]

Build FAILED.

C:\Program Files\dotnet\sdk\2.2.105\Microsoft.Common.CurrentVersion.targets(1879,5): warning : The referenced project '..\..\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj' does not exist. [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Context\UserContext.cs(15,28): warning CS0108: 'UserContext.Users' hides inherited member 'IdentityUserContext<User, string, IdentityUserClaim<string>, IdentityUserLogin<string>, IdentityUserToken<string>>.Users'. Use the new keyword if hiding was intended. [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(11,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(1,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Services\AccountService.cs(1,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Services\JwtService.cs(1,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Startup.cs(3,7): error CS0246: The type or namespace name 'CaseSolutionsTokenValidationParameters' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(372,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(72,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(79,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(86,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(34,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(78,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(122,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(160,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(199,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(271,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(322,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(375,29): error CS0103: The name 'TokenValidationConstants' does not exist in the current context [d:\a\1\s\OneCalendar\OneCalendar.csproj]
    2 Warning(s)
    17 Error(s)

Time Elapsed 00:00:03.18
##[error]Error: The process 'C:\Program Files\dotnet\dotnet.exe' failed with exit code 1
##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\1\s\OneCalendar\OneCalendar.csproj
##[section]Finishing: Build
[命令]“C:\Program Files\dotnet\dotnet.exe”生成d:\a\1\s\OneCalendar\OneCalendar.csproj--配置发布
Microsoft(R)针对.NET Core构建引擎版本15.9.20+g88f5fadfbe
版权所有(C)微软公司。版权所有。
正在跳过项目“d:\a\1\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj”,因为找不到该项目。
正在跳过项目“d:\a\1\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj”,因为找不到该项目。
正在还原d:\a\1\s\OneCalendar\OneCalendar.csproj的包。。。
d:\a\1\s\OneCalendar\OneCalendar.csproj的还原在872.26毫秒内完成。
C:\Program Files\dotnet\sdk\2.2.105\Microsoft.Common.CurrentVersion.targets(1879,5):警告:引用的项目“..\..\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj”不存在。[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(11,7):错误CS0246:找不到类型或命名空间名称“CaseSolutionsTokenValidationParameters”(是否缺少using指令或程序集引用?[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(1,7):错误CS0246:找不到类型或命名空间名称“CaseSolutionsTokenValidationParameters”(是否缺少using指令或程序集引用?[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Services\AccountService.cs(1,7):错误CS0246:找不到类型或命名空间名称“CaseSolutionsTokenValidationParameters”(是否缺少using指令或程序集引用?[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Services\JwtService.cs(1,7):错误CS0246:找不到类型或命名空间名称“CaseSolutionsTokenValidationParameters”(是否缺少using指令或程序集引用?[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Startup.cs(3,7):错误CS0246:找不到类型或命名空间名称“CaseSolutionsTokenValidationParameters”(是否缺少using指令或程序集引用?[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Context\UserContext.cs(15,28):警告CS0108:'UserContext.Users'隐藏继承的成员'IdentityUserContext.Users'。如果要隐藏,请使用新关键字。[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(372,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(72,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(79,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(86,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(34,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(78,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(122,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(160,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(199,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(271,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(322,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(375,29):错误CS0103:当前上下文中不存在名称“TokenValidationConstants”[d:\a\1\s\OneCalendar\OneCalendar.csproj]
生成失败。
C:\Program Files\dotnet\sdk\2.2.105\Microsoft.Common.CurrentVersion.targets(1879,5):警告:引用的项目“..\..\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters\CaseSolutionsTokenValidationParameters.csproj”不存在。[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Context\UserContext.cs(15,28):警告CS0108:'UserContext.Users'隐藏继承的成员'IdentityUserContext.Users'。如果要隐藏,请使用新关键字。[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\AuthController.cs(11,7):错误CS0246:找不到类型或命名空间名称“CaseSolutionsTokenValidationParameters”(是否缺少using指令或程序集引用?[d:\a\1\s\OneCalendar\OneCalendar.csproj]
Controllers\CalenderController.cs(1,7):错误CS0246:找不到类型或命名空间名称“CaseSolutionsTokenValidationParameters”(是否缺少using指令或程序集