Share via


IVsWebAppMigration.CanConvertToWebApp Method

Determines if a project file can be converted to MSBuild format.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

Syntax

'Declaration
Function CanConvertToWebApp ( _
    lpszProjectPath As String, _
    <OutAttribute> ByRef pConverToWebApp As Integer, _
    <OutAttribute> ByRef pbstrNewProjPath As String _
) As Integer
int CanConvertToWebApp(
    string lpszProjectPath,
    out int pConverToWebApp,
    out string pbstrNewProjPath
)
int CanConvertToWebApp(
    [InAttribute] String^ lpszProjectPath, 
    [OutAttribute] int% pConverToWebApp, 
    [OutAttribute] String^% pbstrNewProjPath
)
abstract CanConvertToWebApp : 
        lpszProjectPath:string * 
        pConverToWebApp:int byref * 
        pbstrNewProjPath:string byref -> int 
function CanConvertToWebApp(
    lpszProjectPath : String, 
    pConverToWebApp : int, 
    pbstrNewProjPath : String
) : int

Parameters

  • lpszProjectPath
    Type: System.String
    [in] path to the old project file.
  • pConverToWebApp
    Type: System.Int32%
    [out] Boolean value; true if the project can be converted.
  • pbstrNewProjPath
    Type: System.String%
    [out] Path to the new project.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method determines if a Visual Studio 2003 project file can be converted to a Visual Studio 2008 MSBuild project.

Implementation has to get user input to identify if a Web project needs to be converted to a Web Application.

COM Signature

From webmigration.idl:

HRESULT CanConvertToWebApp( 
    [in]  LPCOLESTR  lpszProjectPath,
    [out] BOOL  * pConverToWebApp,
    [out] BSTR  * pbstrNewProjPath
); 

.NET Framework Security

See Also

Reference

IVsWebAppMigration Interface

Microsoft.VisualStudio.Shell.Interop Namespace