Title: Need global.json to set the desired SDK version · Issue #5015 · PowerShell/PowerShell · GitHub
Open Graph Title: Need global.json to set the desired SDK version · Issue #5015 · PowerShell/PowerShell
X Title: Need global.json to set the desired SDK version · Issue #5015 · PowerShell/PowerShell
Description: I have .NET Core 2.0.2-vspre-006949 installed as well as 2.0.0. When I try to build with Start-PSBuild, I get this error: WARNING: The currently installed .NET Command Line Tools is not the required version. Installed version: 2.0.2-vspr...
Open Graph Description: I have .NET Core 2.0.2-vspre-006949 installed as well as 2.0.0. When I try to build with Start-PSBuild, I get this error: WARNING: The currently installed .NET Command Line Tools is not the require...
X Description: I have .NET Core 2.0.2-vspre-006949 installed as well as 2.0.0. When I try to build with Start-PSBuild, I get this error: WARNING: The currently installed .NET Command Line Tools is not the require...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5015
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need global.json to set the desired SDK version","articleBody":"I have .NET Core `2.0.2-vspre-006949` installed as well as `2.0.0`. When I try to build with Start-PSBuild, I get this error:\r\n\r\n```\r\nWARNING: The currently installed .NET Command Line Tools is not the required version.\r\n\r\nInstalled version: 2.0.2-vspre-006949\r\nRequired version: 2.0.0\r\n\r\nFix steps:\r\n\r\n1. Remove the installed version from:\r\n - on windows '$env:LOCALAPPDATA\\Microsoft\\dotnet'\r\n - on macOS and linux '$env:HOME/.dotnet'\r\n2. Run Start-PSBootstrap or Install-Dotnet\r\n3. Start-PSBuild -Clean\r\n```\r\nFWIW I had just recently run `Start-PSBootstrap` and restarted the console. And when I got the above error I was running `Start-PSBuild -Clean`.\r\n\r\nBut in this case, the issue is easily fixed by putting a `global.json` file in the root of the repo with these contents:\r\n```\r\n{\r\n \"sdk\": {\r\n \"version\": \"2.0.0\"\r\n }\r\n}\r\n```\r\n\r\nEnvironment data\r\n----------------\r\nI'm building on Windows PowerShell 5.1 on Windows 10 CU.\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 5.1.15063.608\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.15063.608\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n```\r\n","author":{"url":"https://github.com/rkeithhill","@type":"Person","name":"rkeithhill"},"datePublished":"2017-10-05T04:23:22Z","url":"https://github.com/PowerShell/PowerShell/issues/5015"}
| 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:02f08eea-2b62-e79f-cb53-6f1095c741ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8566:D2092:5AFF63:825244:6AFD8AE4 |
| html-safe-nonce | 470caf8fa1885cd8ddc5c419650683aa73969c4366a9c7532c2da459d33555b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTY2OkQyMDkyOjVBRkY2Mzo4MjUyNDQ6NkFGRDhBRTQiLCJ2aXNpdG9yX2lkIjoiODgyMDcxNzI1MjYyNjk3NTQ2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21868ce52fa56e6c3becc327d6313964b69a8765be5c4e1583a3c5e55049fc19 |
| hovercard-subject-tag | issue:263000673 |
| 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/5015/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca2b5b8d21dc3b3c0c946b3b1477de70edb1f91d5090163aa69ef1e81692b62b/PowerShell/PowerShell/issues/5015 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca2b5b8d21dc3b3c0c946b3b1477de70edb1f91d5090163aa69ef1e81692b62b/PowerShell/PowerShell/issues/5015 |
| og:image:alt | I have .NET Core 2.0.2-vspre-006949 installed as well as 2.0.0. When I try to build with Start-PSBuild, I get this error: WARNING: The currently installed .NET Command Line Tools is not the require... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rkeithhill |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width