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

.NET 6 support #19

Closed
wterpstra opened this issue Nov 10, 2021 · 3 comments · Fixed by #20
Closed

.NET 6 support #19

wterpstra opened this issue Nov 10, 2021 · 3 comments · Fixed by #20
Assignees
Labels
enhancement New feature or request

Comments

@wterpstra
Copy link
Contributor

wterpstra commented Nov 10, 2021

The dotnet-affected tool cannot run on .NET 6.

You can invoke the tool using the following command: dotnet-affected
Tool 'dotnet-affected' (version '2.0.0-preview-1') was successfully installed.
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '5.0.0' (x64) was not found.
  - The following frameworks were found:
      6.0.0 at [/opt/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:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=5.0.0&arch=x64&rid=ubuntu.20.04-x64
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '5.0.0' (x64) was not found.
  - The following frameworks were found:
      6.0.0 at [/opt/hostedtoolcache/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.
@wterpstra
Copy link
Contributor Author

Having some CI troubles. It looks like the script is sucessfully installing the .NET 6 SDK:
https://github.com/leonardochaia/dotnet-affected/runs/4166725509?check_suite_focus=true#step:3:23

However, the dotnet restore step does not seem to find the SDK:
https://github.com/leonardochaia/dotnet-affected/runs/4166725509?check_suite_focus=true#step:4:19

@omer-za
Copy link

omer-za commented Dec 10, 2021

Simply use https://github.com/actions/setup-dotnet for installation dotnet. it should work.

@leonardochaia
Copy link
Owner

leonardochaia commented Dec 13, 2021

Hi @omer-za .
This project has a script to install the proper versions required when developing. We use that as well in CI so that we don't have any differences between CI and local development.

That being said, this should be fixed by now, but I'm not sure if a new release has been issued from NuGet, the SDK or whoever needs to fix this :P

For tracking purposes see microsoft/MSBuildSdks#309 and NuGet/Home#11376

@leonardochaia leonardochaia self-assigned this Feb 8, 2022
@leonardochaia leonardochaia pinned this issue Feb 8, 2022
@leonardochaia leonardochaia added the enhancement New feature or request label Feb 8, 2022
@leonardochaia leonardochaia unpinned this issue Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants