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

Ability to install .NET Framework 3.5 #367

Open
silasary opened this issue Jan 8, 2023 · 6 comments
Open

Ability to install .NET Framework 3.5 #367

silasary opened this issue Jan 8, 2023 · 6 comments
Labels
feature request New feature or request to improve the current logic

Comments

@silasary
Copy link

silasary commented Jan 8, 2023

Description:
The windows-2022 runner image doesn't ship with Framework 3.5 anymore, and workflows that require it fail on the new runner.

As such, it would be nice to be able to install Framework 3.5 with setup-dotnet

Justification:
Builds started failing on windows-2022, and I had to roll back to windows-2019. This is not ideal, and won't last forever.

Are you willing to submit a PR?
If I have to, but I wouldn't know where to start.

@silasary silasary added feature request New feature or request to improve the current logic needs triage labels Jan 8, 2023
@dmitry-shibanov
Copy link
Contributor

Hello @silasary. Thank you for your report. We'll investigate the feature request.

@EivindAntonsen
Copy link

@dmitry-shibanov What about more recent framework versions, such as 4.7.2?

@teo-tsirpanis
Copy link
Contributor

@EivindAntonsen Windows Server 2022 comes with .NET Framework 4.8, which is compatible with all previous versions of .NET Framework.

@nogic1008
Copy link
Contributor

@silasary It should be enabled in Windows Features.
https://learn.microsoft.com/dotnet/framework/install/dotnet-35-windows

On powershell:

Enable-WindowsOptionalFeature -Online -FeatureName "NetFx3"

@IvanZosimov IvanZosimov added investigation The issue is under investigation and removed needs eyes labels Aug 24, 2023
@IvanZosimov IvanZosimov self-assigned this Aug 24, 2023
@IvanZosimov IvanZosimov removed the investigation The issue is under investigation label Oct 3, 2023
@IvanZosimov IvanZosimov removed their assignment Oct 4, 2023
@MrMTaylor
Copy link

I had this issue but I've been able to use the Setup .NET Core SDK Action to install .Net 3.5.

- name: Add .Net 3.5 Framework
  uses: actions/setup-dotnet@v3
  with:
    dotnet-version: '3.1.x'

I can then use dotnet --list-sdks to confirm:
image

@wasabii
Copy link

wasabii commented Dec 9, 2023

I had this issue but I've been able to use the Setup .NET Core SDK Action to install .Net 3.5.

- name: Add .Net 3.5 Framework
  uses: actions/setup-dotnet@v3
  with:
    dotnet-version: '3.1.x'

I can then use dotnet --list-sdks to confirm: image

That isn't .net framework 3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

9 participants