Skip to content
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

Boots doesn't work with DotNet5 #55

Closed
SaqibS opened this issue Dec 30, 2020 · 7 comments · Fixed by #57
Closed

Boots doesn't work with DotNet5 #55

SaqibS opened this issue Dec 30, 2020 · 7 comments · Fixed by #57

Comments

@SaqibS
Copy link

SaqibS commented Dec 30, 2020

  1. I install DotNet5
  2. I install boots
  3. I try to run Boots, but get an error about DotNet3.0 not being installed.

While it would be relatively trivial to install DotNet3 on the build server, it seems unnecessary since surely DotNet5 is backwards compatible, and indeed I used DotNet5 to install Boots.

Any tips appreciated.

Output below:

You can invoke the tool using the following command: boots
Tool 'boots' (version '1.0.3.527') was successfully installed.

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.0.0' was not found.

  • The following frameworks were found:
    5.0.1 at [/Users/runner/hostedtoolcache/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:

@jonathanpeppers
Copy link
Owner

Is this running on Azure DevOps? What agent pool is it?

On Azure DevOps, last I checked macos-latest and windows-latest were both working, but maybe an update to the image broke this?

@SaqibS
Copy link
Author

SaqibS commented Dec 30, 2020

Yes, this is on Azure Dev Ops. We're using the macOS-10.15 image.

Our YAML includes the following two tasks:

    - task: UseDotNet@2
      displayName: 'Use .NET Core SDK $(DotNetCoreVersion)'
      inputs:
        version: '$(DotNetCoreVersion)'

    - bash: 'dotnet tool install --global --ignore-failed-sources boots && boots --stable Mono && boots --stable Xamarin.iOS'
      displayName: 'Install latest stable Mono and Xamarin.iOS'

In the failing version, DotNetCoreVersion is set to 5.x.

@jonathanpeppers
Copy link
Owner

Ok in this repo, I removed the UseDotNet task completely and that is why it works, I think.

I think the solution is to compile boots for netcoreapp2.1;netcoreapp3.1;net5.0 and it would work everywhere. I had to do something similar when .NET Core 3.0 came out.

jonathanpeppers added a commit that referenced this issue Dec 31, 2020
@SaqibS
Copy link
Author

SaqibS commented Jan 1, 2021

Thanks! I haven't built/tried this, but looking at the commit that should fix it. Let me know when this is published and I'll give it a go.

jonathanpeppers added a commit that referenced this issue Jan 4, 2021
@jonathanpeppers
Copy link
Owner

Let me fix the build on AppVeyor; then I'll close this when a new package is available for you to try.

@jonathanpeppers
Copy link
Owner

jonathanpeppers commented Jan 11, 2021

Let me know if this build works, thanks!

https://www.nuget.org/packages/boots/1.0.3.556

@jonathanpeppers
Copy link
Owner

I used 1.0.3.556 successfully on another repo where only .NET 6 is installed, so I think this will work for you. Let me know, otherwise, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants