Академический Документы
Профессиональный Документы
Культура Документы
Review
C# Simplified / Session 8 /
Review Contd
C# Simplified / Session 8 /
Objectives
Debugging
Syntax Errors
Logical/Semantic
Errors
C# Simplified / Session 8 /
Syntax Errors
Logical/Semantic Errors
Debugging Procedure
C# Simplified / Session 8 /
Breakpoints
C# Simplified / Session 8 /
Release Mode
Used when the application will not be
C# Simplified / Session 8 /
C# Simplified / Session 8 /
Locals Window
Watch Window
C# Simplified / Session 8 /
Modal in nature
C# Simplified / Session 8 /
Immediate Window
C# Simplified / Session 8 /
Testing
Types of Testing
Popular techniques used for testing
include
C# Simplified / Session 8 /
Unit Testing
C# Simplified / Session 8 /
Integration testing
Performance Tuning
C# Simplified / Session 8 /
Performance Analysis
C# Simplified / Session 8 /
C# Simplified / Session 8 /
Deployment Tasks
Mandator
y a deployment
Add
project to a
solution
Set properties for
the deployment
project
Add files and other
components
Optional
C# Simplified / Session 8 /
Modes of Packaging
C# Simplified / Session 8 /
Deployment Scenarios
C# Simplified / Session 8 /
Deployment Alternatives
C# Simplified / Session 8 /
XCOPY Command
Description
Prompts us to confirm whether
we want to create each
destination file.
/q
messages.
/e
they are
/s
Copies directories and
subdirectories,
unless they
are
empty. If we omit this
option, XCOPY works within
C# Simplified / Session
a single directory.
8 /
C# Simplified / Session 8 /
Code Download
When an application is to be
distributed over the Internet or
through a corporate intranet, the code
can be downloaded to a computer and
the application can be executed
This method is efficient for distributing
Compressed .CAB files and windows
form controls.
C# Simplified / Session 8 /
Deploying a simple
application
C# Simplified / Session 8 /
Deploying a simple
application Contd
C# Simplified / Session 8 /
Deploying a simple
application-Contd
Console.WriteLine ("Area with radius
provided is {0}",newArea.areaVal);
Console.WriteLine("\nEnter length");
len = Int32.Parse(Console.ReadLine());
Console.WriteLine("\nEnter breadth");
breadth = Int32.Parse(Console.ReadLine());
Console.WriteLine("\nEnter height");
height = Int32.Parse(Console.ReadLine());
newArea.AreaCal (len,breadth,height);
Console.WriteLine ("Area with length, breadth
and height provided is {0}",newArea.areaVal);
newArea.AreaCal(len,breadth);
Console.WriteLine ("Area with length and
breadth provided is {0}",newArea.areaVal);
Console.ReadLine();
}
}
C# Simplified / Session
}
8 /
Deploying a simple
applicationContd
2. Create
a new deployment project by selecting File New
Project.
3. Select Setup and Deployment Projects from the Project
Types list and
select Setup Project from the list of Templates provided
C# Simplified / Session 8 /
Deploying a simple
applicationContd
Change the project name to AreaSetup and select the
application Folder node of the File System Editor
C# Simplified / Session 8 /
Deploying a simple
applicationContd
5. Select Action -> Add -> File
6. Select the .exe file CalculateArea.exe
C# Simplified / Session 8 /
Deploying a simple
applicationContd
7. select the .exe file just added and Click Action Create
shortcut to [ApplicationName].Exe option. Notice that a
Shortcut to the application CalculateArea.exe is added
C# Simplified / Session 8 /
Deploying a simple
applicationContd
8. Drag and drop this shortcut file to the Users
Desktop folder on the left hand pane of the editor.
This adds the file to the Users Desktop folder
C# Simplified / Session 8 /
Deploying a simple
applicationContd
9. Select the .exe file from the Application Folder in the File
System Editor. Select Action Create shortcut to
CalculateArea.exe and create another shortcut to the
application.
10. Follow the procedure mentioned in Step 9 to add this new
shortcut to the Users Program Menu folder.
11. Click on View Editor Launch Conditions
C# Simplified / Session 8 /
Deploying a simple
applicationContd
12. Select Requirements on Target Machine node and click on
Action Add File Launch Condition
13. Rename the Search for File1 node to Search for Internet
Explorer and Right Click on Search for Internet Explorer to
invoke the Properties Window. Set the FileName property to
Iexplore.exe.
14. Set the Folder property to [ProgramFilesFolder], Depth
property to 2, MinVersion property to 5.0 and Property
property to IEFILEXISTS
C# Simplified / Session 8 /
Deploying a simple
applicationContd
C# Simplified / Session 8 /
Deploying a simple
applicationContd
15. Select the Condition1 node and open its Properties window.
Set its Condition property to IEFILEXISTS <> . Set the
Message property to Internet Explorer 5.0 or higher version
not found
C# Simplified / Session 8 /
Deploying a simple
applicationContd
16. Select the deployment project and on the View menu, click
Property Pages
17. Select Windows Installer Bootstrapper option from the
Bootstrapper drop down options
C# Simplified / Session 8 /
Deploying a simple
applicationContd
18. Select AreaSetup in the Solution Explorer and select
Build Build AreaSetup from the menu
C# Simplified / Session 8 /
C# Simplified / Session 8 /
Output of CalculateArea.exe
C# Simplified / Session 8 /
Summary
Summary Contd
C# Simplified / Session 8 /