IVsSetTargetFrameworkWorkerCallback::UpdateTargetFramework Method (IVsHierarchy^, String^, String^)
Visual Studio 2015
Updates the project to the new target framework.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int UpdateTargetFramework(
IVsHierarchy^ pHier,
String^ currentTargetFramework,
String^ newTargetFramework
)
Parameters
- pHier
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] The hierarchy of the project to be updated.
- currentTargetFramework
-
Type:
System::String^
[in] The current target framework.
- newTargetFramework
-
Type:
System::String^
[in] The new target framework.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: