for (NativeBinarySpec binary : binaryContainer.withType(NativeBinarySpec.class)) {
VisualStudioProjectConfiguration configuration = visualStudioExtension.getProjectRegistry().addProjectConfiguration(binary);
// Only create a solution if one of the binaries is buildable
if (binary.isBuildable()) {
DefaultVisualStudioProject visualStudioProject = configuration.getProject();
visualStudioExtension.getSolutionRegistry().addSolution(visualStudioProject);
}
}
}