从 Bitbucket 下载时出现编译器错误
由于某种原因,每当通过Sourcetree将代码拉到我的工作PC并以Unity打开项目时,我会遇到这样的错误:
Assets \ Scripts \ Interactivemapitem.cs(7,14):错误CS0246:找不到类型或名称空间名称'apploader'(您是否缺少使用指令或汇编引用?)
)当我从服务器拉出时,它们并未显示为C#文件。没有能力像其他C#文件那样右键单击文件的打开属性。
我已经检查了每个文件“元数据”,并且服务器与我拥有的本地代码之间没有任何不一致之处。
这也只影响我在办公室中拥有的计算机(这是新的,只有Unity,Visual Studio 2019和一些开发所需的VR相关应用程序。
修复程序上的任何想法?
这是C#文件的图片在“脚本”文件夹中:
For some reason whenever pull code to my work PC via SourceTree and open the project up in unity I am getting errors like this:
Assets\Scripts\InteractiveMapItem.cs(7,14): error CS0246: The type or namespace name 'AppLoader' could not be found (are you missing a using directive or an assembly reference?)
This is occurring with 2 of my scripts, they are not showing as C# files when I pull from the server. There is no ability to right-click open properties of the file like other C# files would allow me to.
I've checked each files "Metadata" and there are no inconsistencies between the server and the local code I have.
This also is only affecting the computer I have in the office (which is new and only has Unity, Visual Studio 2019, and a few select VR related applications needed for development.
Any ideas on a fix?
Here is a picture of the C# files in the "Scripts" folder:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论