1

I installed Visual Studio 2022 and cloned one of my "older" projects from Github.

It is based on .NET Framework 4.5. While cloning it, it asked me if I want to "convert" it to .NET 4.8. I clicked yes.

Now I get these errors:

Screenshot 1

Screenshot 2

Any ideas?

Thanks in advance

EDIT: Screenshot from first errors

chain
  • 13
  • 6
  • Which workloads did you install with Visual Studio? Can you use VS to create a new 4.5 program? – gunr2171 May 23 '22 at 14:41
  • What are the first errors in the error list? The last ones are usually the least informative. Do you have the .net framework 4.5 installed? – Good Night Nerd Pride May 23 '22 at 14:46
  • I only installed 4.7 and 4.8. I am not able to create a 4.5 program. – chain May 23 '22 at 14:53
  • I uploaded another screenshot of the first errors. – chain May 23 '22 at 14:57
  • You updated from 4.5 to 4.8. Obiously breaking-changes. Also with what I read, it VS suggested to update because it can't open/work with a .NET 4.5 (there is a workaround). So, either migrate, or follow [Open .net framework 4.5 project in VS 2022](https://stackoverflow.com/questions/70022194/open-net-framework-4-5-project-in-vs-2022-is-there-any-workaround) – Ergis May 23 '22 at 15:06
  • I followed the link you sent and also updated Nuget packages. Looks good for now. Thanks for your help – chain May 23 '22 at 15:12
  • As a tip, it is not helpful for our english mates here to show the errors in german :D – Schecher_1 May 23 '22 at 15:25

0 Answers0