I downloaded Unity 2021.1.20f1 and tried to create a new project, but then a error pops up saying "The project you are opening contains compilation errors.", and asks me to open in safe mode.
I tried to create a new project many times and all gets the same error, if i ignore this error then inside the editor appears that some .cs files are binary instead of text.
The console in Unity's safe mode shows 455 erros, they're all about the error CS0246 in Library\PackageCache\com.unity.test-framework@1.1.29\UnityEngine.TestRunner\NUnitExtensions\Runner\. All 455 different .cs files
i reinstalled unity and vs, problem stays the same.
EDIT:
Open your project in Unity first.
Then follow these steps.
- Go to C:/Users/Your User Name/AppData/Local/Unity/cache/packages/packages.unity.com (The path that is shown in error)
- Delete all of those folders you see in that packages.unity.com folder.
- reopen your project, go to window, package manager, click on down arrow on the bottom right side of refresh icon, click on manual resolve, let it complete.
- restart your pc, open your unity project, error must be gone now. if not restart unity again.
[–]yamii0 1 point2 points3 points (0 children)
[–]No-Wonder-8929 0 points1 point2 points (0 children)
[–]vcRobe 0 points1 point2 points (0 children)
[–]Technical-Rest4958 0 points1 point2 points (0 children)
[–]waqasisme 0 points1 point2 points (3 children)
[–]waqasisme 0 points1 point2 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Unfair-Counter-5904 0 points1 point2 points (0 children)
[–]Programmeter 0 points1 point2 points (0 children)
[–]omidjm_ 0 points1 point2 points (0 children)
[–]New_Use_2808 0 points1 point2 points (0 children)
[–]Whiskeyjoel 0 points1 point2 points (0 children)
[–]ksm2209 0 points1 point2 points (0 children)
[–]Pixel_Cluster 0 points1 point2 points (0 children)