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

问题描述 投票:0回答:2

我完成了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")]
c# ring cosmos
2个回答
0
投票

我也遇到了这个错误。在COSMOS官方教程中,它说我们想在COSMOS User Kit的Kernel目录中添加所有dll作为参考。右键单击硬件项目中的引用,然后单击“添加引用”。然后单击浏览并转到C:/ Program Files / Cosmos用户工具包/内核/然后选择所有dll并添加参考它将解决您的问题。


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.