Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish website in visual studio: Use 'Fixed naming and single page assemblies'?

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?

like image 381
Erik Dekker Avatar asked Apr 15 '11 10:04

Erik Dekker


People also ask

How do I publish my website in Visual Studio?

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.

What is the use of publish in Visual Studio?

Publishing creates the set of files that are needed to run your application. To deploy the files, copy them to the target machine.

How do I publish a Visual Studio project?

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.

What is assembly in Visual Studio?

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.


1 Answers

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.

like image 167
Kees C. Bakker Avatar answered Sep 19 '22 10:09

Kees C. Bakker