Unity更换版本后报错“error CS0246: The type or namespace name ‘ProjectGenerationFlag‘ could not be found”
生活随笔
收集整理的這篇文章主要介紹了
Unity更换版本后报错“error CS0246: The type or namespace name ‘ProjectGenerationFlag‘ could not be found”
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
問題:把工程從Unity 2019.3.13f1更換至2019.4.12f1后,報(bào)錯(cuò)Library\PackageCache\com.unity.ide.vscode@1.2.3\Editor\ProjectGeneration\AssemblyNameProvider.cs(21,38): error CS0246: The type or namespace name ‘ProjectGenerationFlag’ could not be found (are you missing a using directive or an assembly reference?)。
解決方法:打開工程文件夾,打開Packages文件夾,找到文件“manifest.json”,打開,把上面提到的““com.unity.ide.vscode”: “1.2.3”,”這一行刪掉,問題解決。
總結(jié)
以上是生活随笔為你收集整理的Unity更换版本后报错“error CS0246: The type or namespace name ‘ProjectGenerationFlag‘ could not be found”的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ||、、!的使用与区别
- 下一篇: 超好看的3D烟花代码(html+css+