Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.)
Public methodFSharpSpecificConversionsPerforms conversions specific to F# projects (VS2008 CTP -> VS2012) and (VS2010 -> VS2012). This involves: changing the location of FSharp targets, and for 2008CTP, adding explicit mscorlib and FSharp.Core references.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.