|
Now that you have created the HelloWorldAgent.cs
source file containing the source code listed above, the next
task is compile it. The process of compiling checks your code
for errors and then outputs a compiled .dll or executable file
to the directory specified in the project settings. First, add
the neokernel.dll file to your project references so the compiler
can find the Neokernel libraries you are importing.
To
import the Neokernel libraries into your project, follow these
steps:
Right
click on the References folder in your Solution
Explorer window and select Add
Reference.
In
the window that appears, select the .NET
tab.
Click
the Browse button and navigate
to the \lib directory where the file neokernel.dll
is located.
Select
the neokernel.dll file and click OK.
Now
that you have imported the Neokernel .dll library, you are
ready to build your project. Select Build
Solution from the Build
menu. The following picture shows the output from compiling
HelloWorldAgent.cs within Visual Studio:

At this point, your HelloWorldAgent
should be compiled. If you did not receive any errors after
using the Build Solution
command, you should find the file HelloWorldAgent.dll
created by the compiler in your project's \bin\Debug\
directory.
If you don't see the HelloWorldAgent.dll file,
it is probably because you have compiler errors. Read the error
output carefully, and correct the problems in the HelloWorldAgent.cs
file before attempting to Build Solution
again. Don't worry if you get errors the first time -- compiling
.NET code is sometimes a trial and error process.
|