Difference between revisions of "NET:Tutorials:HelloWorld"
BlizzWishes (talk | contribs) |
BlizzWishes (talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
== Introduction == | == Introduction == | ||
Line 7: | Line 6: | ||
− | + | == Configuring the Project for Inner Space == | |
− | |||
Once you have Visual Studio loaded, perform the following actions: | Once you have Visual Studio loaded, perform the following actions: | ||
Line 25: | Line 23: | ||
* When the Create A Strong Key Name dialog Box appears choose a Key File Name. You an also choose a password if you desire one. | * When the Create A Strong Key Name dialog Box appears choose a Key File Name. You an also choose a password if you desire one. | ||
− | Now that you have configured your | + | Now that you have configured your application to use a Strong Name, configure your application to add itself to the GAC automatically: |
* Project -> ISXHelloWorld Properties | * Project -> ISXHelloWorld Properties | ||
* Choose the Build Events Tab | * Choose the Build Events Tab | ||
Line 31: | Line 29: | ||
** "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /i "$(TargetPath)" | ** "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /i "$(TargetPath)" | ||
** "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /l "$(ProjectName)">"$(ProjectDir)name.txt" | ** "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /l "$(ProjectName)">"$(ProjectDir)name.txt" | ||
− | + | **(Update the path of .NET 2.0 to match yours if you choose a different installation directory) | |
+ | When you build your project, You will have a file in your project directory called name.txt. This is the information you will use later to launch your assembly from within Inner Space. | ||
+ | |||
+ | Configure your application with a reference to the Lavish.InnerSpace.dll library | ||
+ | * Project -> Add Reference | ||
+ | * Choose the Browse Tab | ||
+ | * Browse to your Inner Space installation directory | ||
+ | * Select the Lavish.InnerSpace.dll file and choose OK | ||
+ | <BR> | ||
+ | After following these steps, your project is now ready to run within Innerspace! | ||
+ | == Code Time == | ||
+ | Your application can be compiled and run in Inner Space, but it isn't going to do much yet. So I will show a quick "Hello World" application to show the basics of working within Inner Space. | ||
− | + | Follow these steps to configure your form: | |
+ | * Place a label on the form | ||
+ | ** Configure the text property of the Label with the following text: "Hello World!" | ||
+ | * Place a Button on the form | ||
+ | ** Configure the text property of the Button with the following text: "Close" |
Revision as of 02:38, 2 December 2006
Introduction
This Tutorial will help you configure Visual Studio 2005 and create your first LVM DOTNET application. This tutorial does not cover any .NET languages. (This tutorial will use Visual C# Express Edition)
If you don't have Visual Studio, you can use Visual C# Express Edition from Microsoft.
[1]
Configuring the Project for Inner Space
Once you have Visual Studio loaded, perform the following actions:
- File -> New Project
- Choose Windows Application
- Name: ISXHelloWorld
- Note: If you are creating a project that will need ISXWarden protection, the Project Name and all forms should be prefixed with ISX.
- Click OK
At this point you should have your first LVM DOTNET project! In order to prepare the project to work with LVM DOTNET perform the following actions:
Configure your application to use a Strong Name:
- Project -> ISXHelloWorld Properties
- Choose the Signing Tab
- Check the Checkbox: Sign the Assembly
- Under the Choose a Strong Name Key File choose New...
- When the Create A Strong Key Name dialog Box appears choose a Key File Name. You an also choose a password if you desire one.
Now that you have configured your application to use a Strong Name, configure your application to add itself to the GAC automatically:
- Project -> ISXHelloWorld Properties
- Choose the Build Events Tab
- In the Post Build Events Command Line Window, enter the following code:
- "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /i "$(TargetPath)"
- "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /l "$(ProjectName)">"$(ProjectDir)name.txt"
- (Update the path of .NET 2.0 to match yours if you choose a different installation directory)
When you build your project, You will have a file in your project directory called name.txt. This is the information you will use later to launch your assembly from within Inner Space.
Configure your application with a reference to the Lavish.InnerSpace.dll library
- Project -> Add Reference
- Choose the Browse Tab
- Browse to your Inner Space installation directory
- Select the Lavish.InnerSpace.dll file and choose OK
After following these steps, your project is now ready to run within Innerspace!
Code Time
Your application can be compiled and run in Inner Space, but it isn't going to do much yet. So I will show a quick "Hello World" application to show the basics of working within Inner Space.
Follow these steps to configure your form:
- Place a label on the form
- Configure the text property of the Label with the following text: "Hello World!"
- Place a Button on the form
- Configure the text property of the Button with the following text: "Close"