Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this lesson, you will learn how to set additional application properties in LightSwitch.
Setting Application Properties
In previous lessons, you learned how to set application properties related to screen navigation, access control, and extensions. There are several more application-wide properties that you can set that are related to the display name, application version, and application type.
To change the application display name
In Solution Explorer, double-click Properties to open the Application designer.
In the Application Designer, click the General Properties tab.
In the Application name field, type Northwind Application.
To change the application version
- On the General Properties tab of the Application Designer, select the Application version field and in the second text box type 1000.
To change the application type
In the Application Designer, click the Application Type tab.
In the Client section select Web.
In the Application Server section, select Host application services on an Internet Information Services (IIS) Server.
Press F5 to run the application and observe the changes. The application is now running inside your web browser, and the application title is now Northwind Application.
Closer Look
In this lesson, you learned how to set additional application properties.
The default name for an application is the project name. The project name cannot contain spaces. Therefore, you will usually want to change the Application name property to something more readable.
The application version consists of a major and a minor version number. You typically change the minor version number every time you publish your application, for example, after fixing a bug. You typically change the major version number only when you make a significant change, such as adding new screens. In this lesson, you set the minor version to 1000. This enables you to publish thousands of updates to version 1 of your application.
The Client and Application Server properties enable you to set both the type (desktop or browser) and deployment topology (local, IIS, or Windows Azure) for your application. A desktop application is installed on a local computer and opened from the Start menu. A browser application is installed on a remote server and is opened from a URL. In a local topology, both the application and the application database are located on the local computer; the database cannot be shared. In an IIS or Windows Azure topology, the application database is located on a server and can be accessed by multiple users.
You can change the Client property at any time, even after the application has been deployed.
Warning
If the application includes code that accesses local resources such as the file system, that code might cause run-time errors in a web client. You should remove or comment out any code that accesses local resources before changing an application to a web client.
When you changed the Client property to Web, the value of the Application Server property changed to IIS, but you could still run the application without specifying a separate server that's running IIS. When you develop an application, you can run it locally because of a lightweight web server that's built into Visual Studio Professional 2012.
Next Steps
In the next lesson, you will learn how to set program icon and image properties.
Next lesson: Adding an Icon
See Also
Tasks
How to: Manage Application Settings