部署XBAP
When you build a WPF Browser Application (see my previous post), three files are produced:
- An executable file. The .exe file contains the compiled code.
- An application manifest. The .manifest file contains metadata associated with the application.
- A deployment manifest. The .xbap file contains the information that ClickOnce uses to deploy the application.
As Microsoft says, in order to have your WPF Browser Application deployed, you just have to copy the .exe and these manifests to the webserver. It is not necessary to have the WPF runtime installed on the server, but you need to register the WPF MIME types and file extensions:
Extension
MIME Type
.manifest | application/manifest |
.xaml | application/xaml+xml |
.application | application/x-ms-application |
.xbap | application/x-ms-xbap |
.deploy | application/octet-stream |
.xps | application/vnd.ms-xpsdocument |