IVsWebAppMigration::CanConvertToWebApp Method (String^, Int32, String^)
Visual Studio 2015
Determines if a project file can be converted to MSBuild format.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
int CanConvertToWebApp( String^ lpszProjectPath, [OutAttribute] int% pConverToWebApp, [OutAttribute] String^% pbstrNewProjPath )
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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
From webmigration.idl:
HRESULT CanConvertToWebApp(
[in] LPCOLESTR lpszProjectPath,
[out] BOOL * pConverToWebApp,
[out] BSTR * pbstrNewProjPath
);
Show: