错误 CS0234:命名空间中不存在类型或命名空间名称(是否缺少程序集引用?)
error CS0234: The type or namespace name does not exist in the namespace (are you missing an assembly reference?)
我见过很多关于这个错误的 QA,但是 none 解决了我的问题,
我们开始吧:
我有这个命名空间:Microsoft.MixedReality.Toolkit.SpatialAwareness.Processing
它包含在一个名为:Microsoft.MixedReality.Toolkit.PlaneFinding
的 DLL 中
现在,有第二个 DLL 叫做 Microsoft.MixedReality.Toolkit.SDK
它引用了第一个 DLL,并且还定义了一个名为 PLANE_FINDING_PRESENT
的常量,它以某种方式与之相关(这里有一些来自检查员和 VS 的照片来说明我的意思)
在名为 Microsoft.MixedReality.Toolkit.SDK
的 DLL 内部有一个名为 SurfaceMeshesToPlanes
的文件
在这个文件中,我试图像这样使用命名空间 Microsoft.MixedReality.Toolkit.SpatialAwareness.Processing
:
我希望这一切都能正常工作,但我收到错误消息:
Library\PackageCache\com.microsoft.mixedreality.toolkit.foundation@2eb95bb1aae9-1646916095499\SDK\Experimental\SpatialAwareness\SurfaceMeshesToPlanes.cs(13,55): error CS0234: The type or namespace name 'Processing' does not exist in the namespace 'Microsoft.MixedReality.Toolkit.SpatialAwareness' (are you missing an assembly reference?)
有什么想法吗?
问题出在所需 dll 的 platforms 部分,一旦我将其更改为 any
它就对另一个 dll 可见
我见过很多关于这个错误的 QA,但是 none 解决了我的问题,
我们开始吧:
我有这个命名空间:Microsoft.MixedReality.Toolkit.SpatialAwareness.Processing
Microsoft.MixedReality.Toolkit.PlaneFinding
的 DLL 中
现在,有第二个 DLL 叫做 Microsoft.MixedReality.Toolkit.SDK
它引用了第一个 DLL,并且还定义了一个名为 PLANE_FINDING_PRESENT
的常量,它以某种方式与之相关(这里有一些来自检查员和 VS 的照片来说明我的意思)
在名为 Microsoft.MixedReality.Toolkit.SDK
的 DLL 内部有一个名为 SurfaceMeshesToPlanes
的文件
在这个文件中,我试图像这样使用命名空间 Microsoft.MixedReality.Toolkit.SpatialAwareness.Processing
:
Library\PackageCache\com.microsoft.mixedreality.toolkit.foundation@2eb95bb1aae9-1646916095499\SDK\Experimental\SpatialAwareness\SurfaceMeshesToPlanes.cs(13,55): error CS0234: The type or namespace name 'Processing' does not exist in the namespace 'Microsoft.MixedReality.Toolkit.SpatialAwareness' (are you missing an assembly reference?)
有什么想法吗?
问题出在所需 dll 的 platforms 部分,一旦我将其更改为 any
它就对另一个 dll 可见