Unity 2020.1 Collision2D and namespace UnityEngine error

Hi.

I Made a 2D project with unity 2019 and now after update to 2020.1, unity gave me error below that seems can’t find Collision2D in namespace UnityEngine. also I updated Visual Studio 2019 and Physics 2D is enabled in Package Manager.
dose anyone know where is the problem?

For fix this issue, I created a new project and copied Assets folder from old project to new project. now all things are OK.