Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/281.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管道失败,原因是:rcz discover退出,代码为-2147450730_C#_Azure_Asp.net Core_Azure Pipelines - Fatal编程技术网

C# 我托管的Azure管道失败,原因是:rcz discover退出,代码为-2147450730

C# 我托管的Azure管道失败,原因是:rcz discover退出,代码为-2147450730,c#,azure,asp.net-core,azure-pipelines,C#,Azure,Asp.net Core,Azure Pipelines,我有两个aspnet core 3.1应用程序,并设置了两条azure管线: 一条管道正在精细地构建和测试我的项目,另一条管道(类似的结构和引用相同的项目)失败,错误如下: C:\hostedtoolcache\windows\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(404,5): warning RAZORSDK1006: Dete

我有两个aspnet core 3.1应用程序,并设置了两条azure管线: 一条管道正在精细地构建和测试我的项目,另一条管道(类似的结构和引用相同的项目)失败,错误如下:

C:\hostedtoolcache\windows\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(404,5): warning RAZORSDK1006: Detected Razor language version downgrade. This is typically caused by a reference to the Microsoft.AspNetCore.Razor.Design package. Consider removing this package reference. [d:\a\1\s\Sources\Web\Web.csproj] CSC : warning CS8034: Unable to load Analyzer assembly C:\Users\VssAdministrator\.nuget\packages\microsoft.aspnetcore.mvc.analyzers\2.2.0\analyzers\dotnet\cs\Microsoft.AspNetCore.Mvc.Analyzers.dll : Assembly with same name is already loaded [d:\a\1\s\Sources\Web\Web.csproj] C:\Users\VssAdministrator\.nuget\packages\microsoft.aspnetcore.razor.design\2.2.0\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(79,5): error : rzc discover exited with code -2147450730. [d:\a\1\s\Sources\Web\Web.csproj] 54 Warning(s) 1 Error(s) Time Elapsed 00:02:41.66 ##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1 Info: Azure Pipelines hosted agents have been updated to contain .Net Core 3.x SDK/Runtime along with 2.2 & 2.1. Unless you have locked down a SDK version for your project(s), 3.x SDK might be picked up which might have breaking behavior as compared to previous versions. Some commonly encountered changes are: If you're using `Publish` command with -o or --Output argument, you will see that the output folder is now being created at root directory rather than Project File's directory. To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting ##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\1\s\Sources\Web\Web.csproj C:\hostedtoolcache\windows\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.sdk.Razor\build\netstandard2.0\sdk.Razor.CurrentVersion.targets(404,5):警告RazordK1006:检测到Razor语言版本降级。这通常是由于引用了Microsoft.AspNetCore.Razor.Design软件包而导致的。考虑删除这个包引用。[d:\a\1\s\Sources\Web\Web.csproj] CSC:警告CS8034:无法加载分析器程序集C:\Users\VssAdministrator\.nuget\packages\microsoft.aspnetcore.mvc.analyzers\2.2.0\analyzers\dotnet\cs\microsoft.aspnetcore.mvc.analyzers.dll:已加载同名程序集[d:\a\1\s\Sources\Web\Web.csproj] C:\Users\VssAdministrator\.nuget\packages\microsoft.aspnetcore.razor.design\2.2.0\build\netstandard2.0\microsoft.aspnetcore.razor.design.CodeGeneration.targets(79,5):错误:rzc发现退出,代码为-2147450730。[d:\a\1\s\Sources\Web\Web.csproj] 54警告(s) 1个错误 时间流逝00:02:41.66 ##[错误]错误:进程“C:\hostedtoolcache\windows\dotnet\dotnet.exe”失败,退出代码为1 信息:Azure管道托管代理已更新为包含.Net Core 3.x SDK/Runtime以及2.2和2.1。除非您已经为您的项目锁定了SDK版本,否则可能会选择3.x SDK,与以前的版本相比,它可能具有破坏行为。 一些常见的更改包括: 如果使用带有-o或--Output参数的'Publish'命令,您将看到输出文件夹现在是在根目录而不是项目文件的目录中创建的。要了解更多此类更改和疑难解答,请参阅此处:https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#故障排除 ##[错误]Dotnet命令在以下项目上失败,退出代码为非零:d:\a\1\s\Sources\Web\Web.csproj 有人知道我能查什么吗?
好心的问候

好吧,突然间它就起作用了。修复了cshtml文件中的一些警告,但老实说,我不知道发生了什么,突然它起作用了。修复了cshtml文件中的一些警告,但老实说,我不知道发生了什么