将项目升级到 Dot Net 7 后,Azure Pipeline“.Net Core Publish”任务太慢。
\n之前使用 Dot Net6 只花了不到 8 分钟。升级到 dot net 7 后需要 50 分钟以上,如果在 60 分钟内未完成,大多数情况下都会失败
\n项目类型:Blazor WebAssembly DotNet 托管
\n框架:.NET 7
\n代理:windows-latest(也在ubuntu-latest中尝试过)
\n\n用于发布步骤的 Yaml:
\n#Your build pipeline references an undefined variable named \xe2\x80\x98BuildConfiguration\xe2\x80\x99. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972\n\nsteps:\n- task: DotNetCoreCLI@2\n displayName: Publish\n inputs:\n command: publish\n publishWebProjects: false\n projects: \'**/Server/Agfund.Server.csproj\'\n arguments: \'--configuration $(BuildConfiguration) …Run Code Online (Sandbox Code Playgroud) azure-pipelines-build-task azure-pipelines blazor-webassembly .net-7.0