When puslishing a website from Visual studio 2008, you get a dialog box with some options. One of them is 'Use fixed naming and single page assemblies'.
We don't have that enabled, but what are the pro's and con's of this option? Is there a difference in performance or anything? Should or should we not use this?
Without this option, we get 774 files in the bin folder after publishing, when we check it, we get 1320 files, because every ascx gets its own dll.
If we do check this, are the 'fixed names' only fixed on my computer? Or is it the same when a colleague publishes the website?
In Solution Explorer, right-click your project and choose Publish. If you're publishing this web app for the first time, next you see the Publish wizard. Visual Studio filters the list of destinations depending on the type of web app.
Publishing creates the set of files that are needed to run your application. To deploy the files, copy them to the target machine.
To publish from Visual Studio, do the following: Change the solution configuration from Debug to Release on the toolbar to build a Release (rather than a Debug) version of your app. Right-click on the project (not the solution) in Solution Explorer and select Publish. In the Publish tab, select Publish.
An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. Assemblies take the form of executable (.exe) or dynamic link library (. dll) files, and are the building blocks of . NET applications.
Fixed named assemblies provide flexiblity in page level updates. Since each page will have its own named assembly (instead of a random name) it is easy to update the application by just updating the required assembly. Disadvantage is the large number of assemblies (difficult to maintain) and also slight performance hit would be there.
For more details check this article: http://msdn2.microsoft.com/en-us/library/ms229863(VS.80).aspx
Source of answer: http://forums.asp.net/t/1057767.aspx
From the MSDN article:
Fixed Assembly Names Some scenarios, such as deploying a Web application using the MSI Windows Installer, require the use of consistent file names and contents, as well as consistent directory structures to identify assemblies or configuration settings for updates. In those cases, you can use the -fixednames option to specify that the ASP.NET Compilation tool should compile an assembly for each source file instead of using the where multiple pages are compiled into assemblies. This can lead to a large number of assemblies, so if you are concerned with scalability you should use this option with caution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With