How to build create Action to build legacy .NET Framework 4 project? #25253
-
Hi, I am struggling to create an action that builds my .NET Framework 4 solution. Here is what I have:
And here is the error message I am getting:
So it seems like .NET v4.0 is missing on the system. However, I have no idea on how to setup the runner to support .NET 4.0. Any help would be greatly appreciated. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
GitHub - actions/setup-dotnet: Set up your GitHub Actions workflow with a...Set up your GitHub Actions workflow with a specific version of the .NET core sdk - GitHub - actions/setup-dotnet: Set up your GitHub Actions workflow with a specific version of the .NET core sdk Try adding this action to your workflow |
Beta Was this translation helpful? Give feedback.
-
Already tried this. This only seems to work for .NET CORE / SDK style projects. Not for legacy .NET Framework projects. |
Beta Was this translation helpful? Give feedback.
-
So, I found out what was wrong. I need to use older |
Beta Was this translation helpful? Give feedback.
-
I have a .NET class project which targets multiple versions of .NET framework, .NET Core (inc. 8.0) and .NET standard. Can anyone please suggest some way to successful run my GitLab action file. My current action file is here https://github.com/ljnath/RandomString4Net/blob/master/.github/workflows/dotnet-CI-workflow.yml |
Beta Was this translation helpful? Give feedback.
So, I found out what was wrong.
I need to use older
windows-2019
runners. It seems like thewindows-2022
runners do not have .NET 4.0 SDK installed.