ProjectFileConverter Class
Collapse the table of content
Expand the table of content

ProjectFileConverter Class

Converts a Visual Studio project file to the Visual Studio 2010 project file format. 

System.Object
  Microsoft.Build.Conversion.ProjectFileConverter

Namespace:  Microsoft.Build.Conversion
Assembly:  Microsoft.Build.Conversion.v4.0 (in Microsoft.Build.Conversion.v4.0.dll)

public sealed class ProjectFileConverter

The ProjectFileConverter type exposes the following members.

  NameDescription
Public methodProjectFileConverterInitializes a new instance of the ProjectFileConverter class.
Top

  NameDescription
Public propertyConversionSkippedBecauseProjectAlreadyConvertedGets a value indicating whether the last attempted conversion was skipped because the project file is already in the latest format.
Public propertyConversionWarningsGets a list of warnings generated during the conversion.
Public propertyIsUserFileGets or sets a value indicating whether the project file being converted is a .user file.
Public propertyNewProjectFileGets or sets the new project file name.
Public propertyOldProjectFileGets or sets the old project file name.
Public propertySolutionFileGets or sets the name of the solution file that contains the project being converted.
Top

  NameDescription
Public methodConvert()Converts the project specified by the OldProjectFile property and saves it in the file specified by the NewProjectFile property.
Public methodConvert(ProjectLoadSettings) Obsolete. Converts the project specified by the OldProjectFile property and saves it in the file specified by the NewProjectFile property.
Public methodConvert(String) Obsolete. This is the entry point method, which performs the project file format conversion. This method will overwrite "newProjectFile" if it already exists, so the caller of this method should confirm with the user that that's what he really wants to do.
Public methodConvertInMemory()Creates a new project in memory from the OldProjectFile.
Public methodConvertInMemory(Engine) Obsolete. Creates a new project in memory from the OldProjectFile.
Public methodConvertInMemory(Engine, ProjectLoadSettings) Obsolete. This is the entry point method, which performs the project file format conversion. This method will simply create a new MSBuild Project object in memory, instead of trying to write it to disk.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2016 Microsoft