-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a .NET Core 3 target for the global tool #279
Conversation
This probably needs updates to the base Linux images to test the netcoreapp3 version. That said, the core libraries have not changed, it's just another publish output. |
Not sure what to do with the NPM packing error:
|
@@ -1,5 +1,5 @@ | |||
{ | |||
"sdk": { | |||
"version": "2.1.400" | |||
"version": "3.0.100-preview" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm... I'm not sure I'm ready to require a preview .NET Core SDK on every box in order to build nb.gv.
The problem this solves will only exist when people have .NET Core 3.0 SDK and not 2.1, right? If so, perhaps this is the right solution, but will cause problems in the short term without actually solving any short-term problems. How about we hold off on this PR until .NET Core 3.0 is stable, and therefore has a more reasonable chance of being the only SDK installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up to you of course, but this was actively biting me here: https://github.com/dotnet/reactive/blob/linux-tests/azure-pipelines.rx.yml#L115-L137
It's not even enough to currently install both SDK's, you have to use the tool before installing 3.0.
I had to install 2.2, use the tool, then install 3.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch. OK, I'll take the hit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, the SDK installer seems to be here: https://dotnet.microsoft.com/download/dotnet-core/3.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not even enough to currently install both SDK's, you have to use the tool before installing 3.0.
Now that I have .NET Core 3.0 SDK Preview installed, the nbgv
tool I was using before still works. So I'm not sure why it wasn't working for you.
I'm a bit surprised that since dotnet.exe
itself has a --roll-forward-on-no-candidate-fx
switch that it wouldn't be available to dotnet CLI tools.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scenario is a bit more nuanced. It's with the local install done with the .NET Core Installer task on Pipelines, not a global install of the tool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's also one where there is no other .NET Core 2.x globally, like in the Linux Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That --roll-forward-on-no-candidate-fx
switch appears to be totally busted. I just filed https://github.com/dotnet/cli/issues/10477
Ya, I guess I still need to figure out that NPM failure though. |
BTW, isn't there some text file that dotnet CLI tools can include in their package to cause the runtime to be more willing to pick them up in the face of a version difference? |
I'm not sure @KathleenDollard? |
The NPM failure isn't reproing for me locally. That makes it a lot harder to debug. :( |
This was fixed by #326. |
Bumps [nbgv](https://github.com/dotnet/Nerdbank.GitVersioning) from 3.6.139 to 3.6.141. - [Release notes](https://github.com/dotnet/Nerdbank.GitVersioning/releases) - [Commits](v3.6.139...v3.6.141) --- updated-dependencies: - dependency-name: nbgv dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fixes #277