tag:help.appveyor.com,2012-11-13:/discussions/problems/33858-net-framework-40-sdk-in-vs-2022-imageAppVeyor: Discussion 2023-03-17T21:02:16Ztag:help.appveyor.com,2012-11-13:Comment/575428222023-01-13T18:38:21Z2023-01-13T18:38:21Z.NET Framework 4.0 SDK in VS 2022 image<div><p>This is a script that being used to install .NET Framework SDKs on a build image: <a href="https://github.com/appveyor/build-images/blob/master/scripts/Windows/install_dotnet_devpacks.ps1#L44">https://github.com/appveyor/build-images/blob/master/scripts/Window...</a></p>
<p>As you see 4.8 DevPack is being installed. If you know what pack is missing you can try installing it during the build to see if that works and if it does we can roll it out during the next image update.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/575428222023-01-14T15:21:06Z2023-01-14T15:21:06Z.NET Framework 4.0 SDK in VS 2022 image<div><p>Hi Feoder, thanks for your response.</p>
<p>While looking for the .NET 4.0 Dev Pack, I found this:</p>
<p>Starting with Visual Studio 2022, Visual Studio no longer includes .NET Framework components for .NET Framework 4.0 - 4.5.1 because these versions are no longer supported. Visual Studio 2022 and later versions can't build apps that target .NET Framework 4.0 through .NET Framework 4.5.1. To continue building these apps, you can use Visual Studio 2019 or an earlier version.</p>
<p><a href="https://learn.microsoft.com/en-us/dotnet/framework/install/guide-for-developers">https://learn.microsoft.com/en-us/dotnet/framework/install/guide-fo...</a></p>
<p>Targeting .NET 4.0 in VS 2022 works on my machine, probably because I also have VS 2019 installed.</p>
<p>Well, if Microsoft dropped support for .NET 4.0, maybe it is time for us library developers to drop it too.</p></div>slepovtag:help.appveyor.com,2012-11-13:Comment/575428222023-01-15T05:09:00Z2023-01-15T05:09:00Z.NET Framework 4.0 SDK in VS 2022 image<div><p>Or you can use VS 2019 image.</p></div>Feodor Fitsner