Change Unity Assembly-Sharp.csproj target framework?

On my Windows PC, i have .net framework 4.8 installed. However, when i open a unity c# script, VS Code omnisharp log pops up a warning saying it cant find the target framework of 4.7.1. I installed 4.8, not 4.7.1. why is it trying to target 4.7.1? Even with this message, the script works and prints to the console fine.

Also, as an experiment, i downloaded the 4.7.1 framework from microsoft, and opened the unity c# script again, and the error went away. I would like to use .net 4.8 since it is the latest though. How do i change the unity c# script target that is auto generated?

Thanks!!

Hi Colton,

Welcome to our community! :slight_smile:

Have you already seen this thread?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms