Ziyad Arif
Ziyad Arif

Reputation: 27

How do I get rid of this error warning with unity targeting the wrong .NET framework in Visual Studio

Ok so whenever I try to use Visual Studio with the Unity game engine I get this strange error message. [1]: https://i.sstatic.net/f8qQF.png I have no idea how to fix this as I am very new to VS and Unity and am only following the tutorials, so any help would be appreciated. I managed to go on the second option and downloaded .NET framework version 4.8 however it didn't really work

Upvotes: 1

Views: 1203

Answers (1)

Zelforacle
Zelforacle

Reputation: 21

set the .NET Framework target version down to a version below 4.8. You can set it in Visual Studio in the Project tab --> Properties --> Application. Alternatively you can install the .NET Framework needed but I am not sure if Unity supports it. I would recommend to use just an older version.

Upvotes: 2

Related Questions