XBAP size  
Author Message
imj





PostPosted: Windows Presentation Foundation (WPF), XBAP size Top

Hi,

When I publish my XBAP application, the following four files get copied into the xbap directory, in Debug or Release mode:
  • Draft.PresentationDesignMarkup.dll (408KB)
  • PresentationDesignCore.dll (184KB)
  • PresentationDesignDevelopper.dll (372KB)
  • PresentationDesignFramework.,dll (84KB)
This adds up to about a megabyte minimum size for the XBAP, before any of my code gets included. This is kind of heavy for lightweight applications, and I don't understand why these dlls aren't included in the 3.0 runtime. Is this still going to be the case after .NET 3.0 RTMs


Visual Studio 200810  
 
 
Karen Corby - MSFT





PostPosted: Windows Presentation Foundation (WPF), XBAP size Top

Hi,

Today, there is a known bug in the Orcas extensions. The references to the above DLLs have "CopyLocal" set to True. It should be false. This will be fixed in an upcoming release.

In the meantime, you can workaround by manually changing CopyLocal=False for the above dll references. (These references are NOT needed by the xbap at runtime.)

Thanks,

Karen


 
 
imj





PostPosted: Windows Presentation Foundation (WPF), XBAP size Top

Thanks, Karen

I went ahead and changed the "Copy Local" flag for the "PresentationDesignDeveloper" reference to False, and re-published the xbap. As expected, none of the dlls I mentioned above were copied. However, when I try to run the app in IE7, I get the following error:

Following errors were detected during this operation.
* [10/31/2006 9:13:37 AM] System.Deployment.Application.DependentPlatformMissingException (Unknown subtype)
- Unable to install or run the application. The application requires that assembly PresentationDesignFramework Version 0.0.4030.0 be installed in the Global Assembly Cache (GAC) first.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.PlatformDetector.VerifyPlatformDependencies(AssemblyManifest appManifest, Uri deploySupportUri, String tempDir)
at System.Deployment.Application.DeploymentManager.DeterminePlatformRequirementsCore(Boolean blocking)


Any ideas


- Imad

 
 
Matt Galbraith - MSFT





PostPosted: Windows Presentation Foundation (WPF), XBAP size Top

This is likely too old to matter, but you shouldn't need any of the design-time assemblies in your project. If your project is itself referencing those assemblies, delete the reference. Karen's comment is still valid for anything your app actually requires to run though.