Web Project Settings Conversion
Because Visual Studio does not maintain project files for Web development, the conversion process must transfer relevant project and solution settings into a Visual Studio format. For example, the conversion process moves some project settings into the Web.config file, which in Microsoft Visual Studio 2005 is expanded to store more information than in earlier versions of Visual Studio .NET.
Many settings maintained in Visual Studio .NET are not applicable to Visual Studio 2005, so they are not converted. For example, project settings for Web access mode (file share or FrontPage) and for designer defaults do not apply in Visual Studio, so they are not converted. Project settings that are set to default values are also not converted; that is, Visual Studio does not make a new setting with the default value in it.
If a project contains multiple configurations (Debug compilation, Release compilation, and so on), conversion follows this logic:
If the project contains only Debug and Release configurations, then the Debug configuration is converted to Visual Studio 2005.
If additional configurations exist, Visual Studio prompts you for the configuration settings that should be converted to Visual Studio 2005.
References to assemblies in the project's Bin folder do not need to be converted; Visual Studio Web sites automatically pick up references to code in the Bin folder. If the project contains a reference to an assembly in the global assembly cache, the reference is moved to the Web.config file in the following format.
<compilation>
<assemblies>
<add assembly="System.Messaging" />
</assemblies>
</compilation>
Assembly references are not converted if the assembly is already referenced by default in ASP.NET (for example, System.Drawing).
In Visual Studio .NET, referenced assemblies (for example, assemblies that are referenced outside of the solution in which the Web project is located) could have the CopyLocal property set to true, which would automatically update the referenced assembly. In Visual Studio 2005, this behavior is replaced by creating a refresh file in the Bin folder. The refresh file contains the path to the external referenced assembly and has the extension .refresh appended to the assembly name.
XML Web references are converted by copying the .wsdl file to the App_WebReferences directory. The Web service proxy and reference-map files are not required in Visual Studio 2005.
The following table lists Common Properties project settings and how they are treated by the Visual Studio conversion process.
Note: |
|---|
You can see the current values for these settings in Visual Studio. In Solution Explorer, right-click the project, click Properties, and then click Common Properties. |
Setting | Conversion logic |
|---|---|
General | Settings are not converted. |
Web Settings | Settings are not converted. |
Designer Defaults | Settings are not converted. |
References Path | Settings are not converted. |
Build (Visual Basic client projects) |
|
Imports (Visual Basic client projects) | Import settings that are not already imported by default in ASP.NET are moved to the Web.config file: <pages> <namespaces> <add namespace="Namespace" /> </namespaces> </pages> Conversion affects only the import settings for ASP.NET Web pages. For classes in the App_Code directory, you must add import settings manually. |
Configuration settings for a project differ slightly depending on what programming language the project uses. The following tables list how configuration settings are treated by the Visual Studio conversion process, broken out by language.
Note: |
|---|
You can see the current values for these settings in Visual Studio. In Solution Explorer, right-click the project, click Properties, and then click Configuration Properties. |
Configuration Settings — All Languages
The following table lists Configuration project settings that appear in all project types, and describes how they are treated by the Visual Studio conversion process.
Setting | Conversion logic |
|---|---|
Debugging |
|
Configuration Settings — Visual Basic .NET
The following table lists Configuration project settings that appear in a Visual Basic .NET project, and describes how they are treated by the Visual Studio conversion process.
Setting | Conversion logic |
|---|---|
Build |
|
Optimizations (Visual Basic client projects) |
|
Configuration Settings — C#
The following table lists Configuration project settings that appear in a C# project, and describes how they are treated by the Visual Studio conversion process.
Setting | Conversion logic |
|---|---|
Build |
|
Advanced |
|
Configuration Settings — J#
The following table lists Configuration project settings that appear in a Microsoft J# .NET project and describes how they are treated by the Visual Studio conversion process.
Setting | Conversion logic |
|---|---|
Build |
|
Advanced |
|
Note: