0

COSMOS の公式 Web サイトで追加するように言われたことはすべて実行しました。すべての参照、cosmos.common など。追加するように求められました。

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

もちろん、私はそれらを 2 つの部分に分割しました。使用部分は他のすべての部分と一緒に、アセンブリはアセンブリ内にあります。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")]
4

2 に答える 2

0

このエラーも発生しました。COSMOS の公式チュートリアルでは、参考として COSMOS User Kit の Kernel ディレクトリにすべての dll を追加したいと言っています。ハードウェア プロジェクトの参照を右クリックし、[参照の追加] をクリックします。次に、参照をクリックして C:/Program Files/Cosmos User Kit/Kernel/ に移動し、すべての dll を選択して参照に追加すると、問題が解決します。

于 2016-04-08T09:18:58.850 に答える