If you have a assembly identity/namespace of Library.Testing
.
Then you created another assembly with identity/namespace of Library.Testing.One
Library.Testing.One
project references Library.Testing
.
为什么要使用<代码>使用图书馆。 测试;。 1 查阅Library>任何内容?
例1:
using System;
namespace Library.Testing.One
{
// Library.Testing is a reference in this assembly
public class foo : Library.Testing.BooBase
{
}
}
这不是我有两个例外。
Warning 1 Load of property RootNamespace failed. The string for the root namespace must be a valid identifier. Error 2 The type or namespace name BooBase does not exist in the namespace Library.Testing.One.Library.Testing (are you missing an assembly reference?)
例2:
using System;
using Library.Testing;
namespace Library.Testing.One
{
// Library.Testing is a reference in this assembly
public class foo : Library.Testing.BooBase
{
}
}
工作!