Unable to build net35 classlibrary agains image VS2022

Ivaylo Slavov's Avatar

Ivaylo Slavov

18 Nov, 2022 12:07 PM

According to the following page https://www.appveyor.com/docs/windows-images-software/, the Visual Studio 2022 image should support .NET Framework 3.5. I am having issues building my project (which is a .NET library, that uses multi-targeting). The issue occurs when the build engine attempts to build for net20 and net35 TFMs.

I've raised the issue with StackOverflow (https://stackoverflow.com/questions/74377338/unable-to-build-a-multi-targeting-net-library-for-net20-and-net35-after-switchi) but I did not receive a strict answer, just a comment suggesting net35 is out-of-support now.

Can you confirm that indeed there is no support for that framework, and if possible, at least update the documentation for VS2022 image to state .NET Framework 2.0/3.5 is no longer supported.


  1. 1 Posted by Ivaylo Slavov on 08 Feb, 2023 08:27 AM

    Ivaylo Slavov 's Avatar

    Well, It seems my issue has been resolved, and it had nothing to do with VS2022 image or its support for net20/net35, which is fine. I've provided an answer to the respective StackOverflow question (https://stackoverflow.com/a/75117538/795158) with details, but it boiled down to directly reference the appropriate `Microsoft.ReferenceAssemblies.netXX` package in each multi-targeting project.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac