Title: C# build failing on LGTM · Issue #14306 · PowerShell/PowerShell · GitHub
Open Graph Title: C# build failing on LGTM · Issue #14306 · PowerShell/PowerShell
X Title: C# build failing on LGTM · Issue #14306 · PowerShell/PowerShell
Description: https://lgtm.com/projects/g/PowerShell/PowerShell/logs/languages/lang:csharp /opt/out/snapshot: Running in /opt/dist: [/opt/dist/tools/linux64/java/bin/java, -jar, /opt/lgtm-worker-tools.jar, interpretConfig, /opt/lgtm-worker-tools.jar, ...
Open Graph Description: https://lgtm.com/projects/g/PowerShell/PowerShell/logs/languages/lang:csharp /opt/out/snapshot: Running in /opt/dist: [/opt/dist/tools/linux64/java/bin/java, -jar, /opt/lgtm-worker-tools.jar, inter...
X Description: https://lgtm.com/projects/g/PowerShell/PowerShell/logs/languages/lang:csharp /opt/out/snapshot: Running in /opt/dist: [/opt/dist/tools/linux64/java/bin/java, -jar, /opt/lgtm-worker-tools.jar, inter...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14306
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C# build failing on LGTM","articleBody":"https://lgtm.com/projects/g/PowerShell/PowerShell/logs/languages/lang:csharp\r\n\r\n```log\r\n/opt/out/snapshot: Running in /opt/dist: [/opt/dist/tools/linux64/java/bin/java, -jar, /opt/lgtm-worker-tools.jar, interpretConfig, /opt/lgtm-worker-tools.jar, csharp, /opt/out/lgtm.effective.yml]\r\n[2020-12-02 04:29:42] [build] Configuration file:\r\n[2020-12-02 04:29:42] [build] extraction:\r\n[2020-12-02 04:29:42] [build] csharp:\r\n[2020-12-02 04:29:42] [build] index:\r\n[2020-12-02 04:29:42] [build] build_command: \"pwsh -Command \\\"Import-Module ./build.psm1; Start-PSBuild\\\"\"\r\n/opt/out/snapshot: Running in /opt/dist: [/opt/work/lgtm-workspace/lgtm/extract.sh]\r\n[2020-12-02 04:29:45] [build] prepare:\r\n[2020-12-02 04:29:45] [build] index:\r\n[2020-12-02 04:29:46] [build-err] /opt/out/snapshot: Running in /opt/src: [/opt/dist/csharp/tools/autobuild.sh]\r\n[2020-12-02 04:29:48] [build] [2020-12-02 04:29:48] [build] CodeQL C# autobuilder\r\n[2020-12-02 04:29:48] [build] [2020-12-02 04:29:48] [build] Working directory: /opt/src\r\n[2020-12-02 04:29:49] [build] [2020-12-02 04:29:49] [build] Attempting to download .NET Core 5.0.100\r\n[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] Running chmod u+x dotnet-install.sh\r\n[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] Exit code 0\r\n[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] Running ./dotnet-install.sh --channel release --version 5.0.100 --install-dir /opt/src/.dotnet\r\n[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:\r\n[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.\r\n[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.\r\n[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.\r\n[2020-12-02 04:29:53] [build] [2020-12-02 04:29:53] [build] dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100/dotnet-sdk-5.0.100-linux-x64.tar.gz\r\n[2020-12-02 04:29:55] [build] [2020-12-02 04:29:55] [build] dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100/dotnet-sdk-5.0.100-linux-x64.tar.gz\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: Adding to current process PATH: `/opt/src/.dotnet`. Note: This change will be visible only when sourcing script.\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: Note that the script does not resolve dependencies during installation.\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install, select your operating system and check the \"Dependencies\" section.\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: Installation finished successfully.\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Exit code 0\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Running rm dotnet-install.sh\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Exit code 0\r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Running /opt/work/lgtm-workspace/lgtm/index_build_command.sh \r\n[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build-err] + pwsh -Command 'Import-Module ./build.psm1; Start-PSBuild'\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Using configuration 'Debug'\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Using framework 'net5.0'\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Using runtime 'linux-x64'\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Top project directory is /opt/src/src/powershell-unix\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Run dotnet restore /opt/src/src/powershell-unix --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Welcome to .NET 5.0!\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] ---------------------\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] SDK Version: 5.0.100\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] ----------------\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Installed an ASP.NET Core HTTPS development certificate.\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Learn about HTTPS: https://aka.ms/dotnet-https\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] ----------------\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Write your first app: https://aka.ms/dotnet-hello-world\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Find out what's new: https://aka.ms/dotnet-whats-new\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Explore documentation: https://aka.ms/dotnet-docs\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Report issues and find source on GitHub: https://github.com/dotnet/core\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli\r\n[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] --------------------------------------------------------------------------------------\r\n[2020-12-02 04:31:45] [build] [2020-12-02 04:31:45] [build] Done restoring /opt/src/src/powershell-unix\r\n[2020-12-02 04:31:45] [build] [2020-12-02 04:31:45] [build] Run dotnet restore /opt/src/src/TypeCatalogGen --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet\r\n[2020-12-02 04:31:49] [build] [2020-12-02 04:31:49] [build] Done restoring /opt/src/src/TypeCatalogGen\r\n[2020-12-02 04:31:49] [build] [2020-12-02 04:31:49] [build] Run dotnet restore /opt/src/src/ResGen --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet\r\n[2020-12-02 04:31:53] [build] [2020-12-02 04:31:53] [build] Done restoring /opt/src/src/ResGen\r\n[2020-12-02 04:31:53] [build] [2020-12-02 04:31:53] [build] Run dotnet restore /opt/src/src/Modules --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet\r\n[2020-12-02 04:32:01] [build] [2020-12-02 04:32:01] [build] Done restoring /opt/src/src/Modules\r\n[2020-12-02 04:32:01] [build] [2020-12-02 04:32:01] [build] Run ResGen (generating C# bindings for resx files)\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] It was not possible to find any compatible framework version\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] The framework 'Microsoft.NETCore.App', version '5.0.0' was not found.\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] - The following frameworks were found:\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] 2.1.13 at [/opt/work/.dotnet/shared/Microsoft.NETCore.App]\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] 3.1.5 at [/opt/work/.dotnet/shared/Microsoft.NETCore.App]\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] You can resolve the problem by installing the specified framework and/or SDK.\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] The specified framework can be found at:\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=5.0.0&arch=x64&rid=ubuntu.19.10-x64\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] \u001b[91mException: \u001b[0m/opt/src/build.psm1:2228\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] \u001b[96mLine |\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] \u001b[96m2228 | \u001b[0m \u001b[96mthrow $errorMessage\u001b[0m\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] \u001b[96m | \u001b[91m ~~~~~~~~~~~~~~~~~~~\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] \u001b[91m\u001b[96m | \u001b[91mExecution of { dotnet run } by build.psm1: line 2075 failed\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] \u001b[96m | \u001b[91mwith exit code 150\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] \u001b[0m\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build] Exit code 1\r\n[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/opt/dist/tools/linux64/preload_tracer, /opt/dist/csharp/tools/autobuild.sh])\r\n[2020-12-02 04:32:31] [build-err] A fatal error occurred: Exit status 1 from command: [/opt/dist/csharp/tools/autobuild.sh]\r\n[2020-12-02 04:32:31] [ERROR] Spawned process exited abnormally (code 2; tried to run: [/opt/work/lgtm-workspace/lgtm/extract.sh])\r\nA fatal error occurred: Exit status 2 from command: [/opt/work/lgtm-workspace/lgtm/extract.sh]\r\n\r\n```","author":{"url":"https://github.com/xtqqczze","@type":"Person","name":"xtqqczze"},"datePublished":"2020-12-02T16:28:17Z","url":"https://github.com/PowerShell/PowerShell/issues/14306"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc8f9789-1970-cdbe-89e2-0111609ae35b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B570:27FCA3:28D2C0C:38D75A2:6AFD501E |
| html-safe-nonce | d11fd0f6278459f55f3270ea362dfd8eeb75d64c5d93a4758042232f9833df65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTcwOjI3RkNBMzoyOEQyQzBDOjM4RDc1QTI6NkFGRDUwMUUiLCJ2aXNpdG9yX2lkIjoiODIxNDU2NjYzNjk0NjgwNDc2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 554107afda0fd6365a2e784d105a5a9c392549519a7a19a0986080986b232a99 |
| hovercard-subject-tag | issue:755423889 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/14306/issue_layout |
| twitter:image | https://opengraph.githubassets.com/549bc8a1463949c88cca15d606ea5f9876c5e9c4045db64574f7d9a5bc4ad358/PowerShell/PowerShell/issues/14306 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/549bc8a1463949c88cca15d606ea5f9876c5e9c4045db64574f7d9a5bc4ad358/PowerShell/PowerShell/issues/14306 |
| og:image:alt | https://lgtm.com/projects/g/PowerShell/PowerShell/logs/languages/lang:csharp /opt/out/snapshot: Running in /opt/dist: [/opt/dist/tools/linux64/java/bin/java, -jar, /opt/lgtm-worker-tools.jar, inter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xtqqczze |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width