【解决】解决方案内存在对应命名空间,但程序引用显示无该命名空间问题

开发平台:Visual Studio + Unity TuanJie

问题描述


RStudio.UIFramwork 下引用 RStudio.UnitSingleton 出现 "命名空间不存在问题"。即使注释 RStudio.UIFramwrok 引用仍不成功。

问题跟踪


Assembly-CSharp 命名空间下的引用正常。因此推测是引用存在问题。

  • RStudio.UIFramework 有 Assembly Definition(已正确配置)
  • RStudio.UnitSingleton 没有 Assembly Definition(缺少配置)

以上是导致两个命名空间无法相互引用的根源。

准备 Assembly Definition 为命名空间建立依赖

  1. 选择 RStudio.UnitSingleton 源码根目录
  2. 右键根目录 > Create > Assembly Difinition)
  1. RStudio.UIFramwork 的 AD 添加 RStudio.UnitSingleton 的 AD 依赖并 Apply。

解决后效果如下:

相关推荐
B0URNE2 小时前
【Unity基础详解】(5)Unity核心:Coroutines协程
unity·游戏引擎
野奔在山外的猫5 小时前
【案例】程序化脚本生成
unity
xiaotao1317 小时前
unity hub在ubuntu 22.0.4上启动卡住
ubuntu·unity·游戏引擎
小句9 小时前
通过图表和详细流程解释XXL-JOB中任务从创建到执行的完整过程
unity·游戏引擎
!chen1 天前
Unity颜色曲线ColorCurves
unity·游戏引擎
B0URNE1 天前
【Unity基础详解】(4)Unity核心类:MonoBehaviour
unity·游戏引擎
小时候的阳光2 天前
Cocos Creator 和 Unity 3D 编辑界面字体样式大小调整
unity·cocos2d·字体大小
ellis19702 天前
Lua代码混淆-Prometheus方案教程
unity·lua
EQ-雪梨蛋花汤2 天前
【MRTK3踩坑记录】Unity 2022 中 MRTK3 Input Simulator 无法使用 WASD 控制相机的完整排查记录
数码相机·unity·游戏引擎