|
Hello all,
I am new to all this (C#, .NET, Terrarium), and I have tried as a startup exercise to compile the code of a plant to see how complex it can be. I have copied this code from the Terrarium farm and tried to compile it, just to note that I consistently have an error that I cannot get rid of. I only have the .NET SDK tools, so I am compiling with the command line version.
I am getting this errors when I compile: D:\costapaul\My Documents\Terrarium\Plants>csc /t:library /debug+ /out:plant.dll /r:System.dll,System.Drawing.dll,OrganismBase.dll plant.cs Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
plant.cs(15,23): error CS0246: The type or namespace name 'Plant' could not be found (are you missing a using directive or an assembly reference?) plant.cs(11,2): error CS0246: The type or namespace name 'MaximumEnergyPoints' could not be found (are you missing a using directive or an assembly reference?) plant.cs(12,2): error CS0246: The type or namespace name 'MatureSize' could not be found (are you missing a using directive or an assembly reference?) plant.cs(13,2): error CS0246: The type or namespace name 'SeedSpreadDistanceAttribute' could not be found (are you missing a using directive or an assembly reference?) plant.cs(10,12): error CS0246: The type or namespace name 'OrganismClass' could not be found (are you missing a using directive or an assembly reference?)
Can anyone give me an hint on what to check to solve this problem? I have also tried to compile an animal but these errors also happen for the Animal namespace.
Thank you! Paulo
---(The compilation command line)--- csc /t:library /debug+ /out:plant3.dll /r:System.dll,System.Drawing.dll,OrganismBase.dll plant.cs
---(The Code)--- using System; using System.Collections; using System.Drawing; using System.IO;
// Plants are very boring, but they are necessary, // especially when you introduce a herbivore into an empty Terrarium
[assembly: OrganismClass("Foood3")] [MaximumEnergyPoints(10)] [MatureSize(26)] [SeedSpreadDistanceAttribute(100)]
public class Foood3 : Plant { public override void SerializePlant(MemoryStream m) { } public override void DeserializePlant(MemoryStream m) { } }
|