宇宙中的环问题;无效命名空间

时间:2016-02-15 02:26:42

标签: c# ring cosmos

我做过COSMOS官方网站告诉我要添加的所有内容;所有参考文献,cosmos.common等 它要我加上:

using Cosmos.Common;
[assembly: Ring(Ring.System)]

当然,我将它们分成两部分,其中包含所有其他部分的使用部分,以及程序集中的程序集。 我目前的AssemblyInfo.cs代码:

using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Cosmos.Common.Extensions;
using Cosmos.Common;
using Cosmos.Core;
using Cosmos.Debug;
using Cosmos.System;
using Cosmos.Common.Extensions;
using Cosmos.Hardware.BlockDevice;
using Cosmos.Hardware.Drivers.PCI.Network;




// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: Ring(Ring.Hardware)] 
// This ^^^ is broken, has a red line under the first "ring" 
// "The type or namespace name 'Ring' could not be found. (Are you missing a using directive or assembly reference?)
[assembly: AssemblyTitle("Package Name")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Company")]
[assembly: AssemblyProduct("Package Name")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: NeutralResourcesLanguage("en-US")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Revision and Build Numbers 
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

1 个答案:

答案 0 :(得分:0)

如果您的内核脚本位于同一项目或解决方案中,则在启动il2cpu编译器时,任何试图调用系统或硬件环的尝试都会被阻止。