Azure DevOps : Building Visual Studio Solution containing mixture of .Net 6 and .Net Framework projects

Viewed 118

I am stuck on an issue building my solution containing .NET 6 project and .NET Framework (4.0 and 4.6.1) projects on Azure DevOps build pipeline (with dotnet build and msbuild task). I cannot use windows-2019 as build agent coz of .NET 6 and unable to make work windows-2022 coz of .NET framework < 4.8 anyone come across this and know how you/they tackled this situation please?

Upgrading .NET Framework option is an expensive approach time-wise.

Any help appreciated. Thanks

1 Answers

Azure DevOps : Building Visual Studio Solution containing mixture of .Net 6 and .Net Framework projects

Just as you know, the .NET Core SDK and .NET Framework supported by Windows 2019 are:

enter image description here

And the .NET Core SDK and .NET Framework supported by Windows 2022 are:

enter image description here

So, you could not use the hosted agent Windows 2019 or Windows 2022 to build your mixture projects.

As workaround, you could create your private agent to install the .NET 6 and .NET Framework (4.0 and 4.6.1) SDK on your local machine, if you do not want to upgrade .NET Framework:

Self-hosted Windows agents

Related