Export (0) Print
Expand All

Deploy and publish Expression Blend applications

After you use Microsoft Expression Blend 2 or Microsoft Visual Studio 2008 to build your application, you need to deploy (or, publish) your application so that other people can use it.

To deploy a Windows Presentation Foundation application that you have created in Expression Blend or Visual Studio 2008, you need to use the deployment tools of Visual Studio 2008. The tool you use depends on the type of application you want to deliver:

  • Standalone application   Your application is contained in a single executable file (.exe). You can deploy this application by copying it (by using Xcopy), by using Windows Installer, or by using ClickOnce.

  • Markup-only Extensible Application Markup Language (XAML) application   Your application is not compiled because it has no code files, only .xaml files. You can deploy this application by putting the .xaml files on a website. You can also use Windows Installer or Xcopy to allow people to open the .xaml files on their local computer.

    Cc295109.alert_note(en-us,Expression.10).gifNote:

    To host a XAML file on a website, the root element of the file must be a Page element (not a Window element), and the x:Class attribute (used to match a XAML file with a code-behind file) must be removed.

  • WPF Browser Application   Your application is compiled and you want to make it available from a website. You can deploy this application by providing the executable file (.exe), a deployment manifest file (.xbap), and an application manifest file (.exe.manifest). These files can be produced by Visual Studio 2008 when you build the project with the HostInBrowser property set to true in the project file (.csproj or .vbproj). For more information, see the How to: Create a Sample Project File for a Windows Presentation Foundation XAML Browser Application on MSDN.

For more information about Xcopy, Windows Installer, ClickOnce, and standalone and browser-hosted applications, see the Deploying a Windows Presentation Foundation Application topic, and the "Deploying a XAML Browser Application" section of the Windows Presentation Foundation Browser-Hosted Applications Overview topic, on MSDN.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

For an end user to be able to run your Expression Blend application on their computer, the user must have the building blocks of the Windows Presentation Foundation installed. If the user is running Windows Vista, these building blocks are already installed by default. If the user is running Microsoft Windows XP or Microsoft Windows Server 2003, they must have the latest service pack installed, as well as the Microsoft .NET Framework 3.5 Redistributable Package with Service Pack 1, which contains the WPF building blocks (or, assemblies).

If your WPF application is an WPF Browser Application or markup-only, the user currently needs to use Internet Explorer version 6.0 or 7.0 to view your application, as well as the Microsoft .NET Framework 3.5 redistributable package.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

To deploy a Microsoft Silverlight 1.0 application that you have created in Expression Blend, Microsoft Expression Encoder 2, or Visual Studio 2008, you can use the publishing tools of Visual Studio 2008 or Microsoft Expression Web 2. Add your Silverlight 1.0 project folder to an open website project in either tool, and then publish the website.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

For an end user to be able to run your Silverlight 1.0 site, on their computer, the user must have the Silverlight 1.0 plug-in installed. If they open your Silverlight 1.0 site without the plug-in installed, they will automatically be prompted to install it from a displayed location.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

To deploy a Silverlight 2 application, you can simply copy it to a web folder, and then call it from a web page. For more information, see Add a Silverlight 2 application to a website.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

When a user tries to run your Silverlight 2 application, if they do not already have the Silverlight 2 runtime installed, they will be prompted to install it from the Silverlight website.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Apart from deploying a complete application, you might want to share pieces of your application, such as XAML documents, XAML resources, user controls, custom class definition files, or custom control library files (.dll). For more information, see Sharing code in this User Guide.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

An Expression Blend application is essentially a Windows Presentation Foundation (WPF) application, so the services that secure applications are the same:

  • Standalone applications execute with unrestricted permissions (CAS FullTrust permission set), whether you deploy them by using Windows Installer, XCopy, or ClickOnce.

  • Browser-hosted applications execute with partial trust. This effectively isolates WPF browser-hosted applications from the client computer in the same way that you would expect typical web applications to be isolated.

For more information about WPF application security, see the Security topics in the Windows Presentation Foundation section of MSDN.

Cc295109.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Community Additions

ADD
Show:
© 2015 Microsoft