in EnvDTE.Host/Callback/Util/RdExtensions.cs [32:50]
public static RdSolutionConfiguration ToRdSolutionConfiguration(this SolutionConfigurationAndPlatform config) =>
new(config.Configuration, config.Platform);
public static SolutionConfigurationAndPlatform FromRdSolutionConfiguration(this RdSolutionConfiguration config) =>
new(config.Name, config.Platform);
[CanBeNull]
public static Solution_find_ProjectItemResponse ToRdFindProjectItemResponse(
this IProjectItem projectItem,
IProject containingProject,
ProjectModelViewHost viewHost)
{
var id = viewHost.GetIdByItem(projectItem);
if (id == 0) return null;
return new Solution_find_ProjectItemResponse(
new ProjectItemModel(id),
new ProjectItemModel(viewHost.GetIdByItem(containingProject)));
}