This paper presents a new method to find the global solution of combined truss-frame sizing optimization problems taking into account all relevant Eurocode constraints. The approach is based on a reformulation of the optimization problem as a Mixed-Integer Linear Programming problem (MILP) which is solved by means of a branch-and-bound method. A portal frame that consists of both beam and truss elements is adopted as a test case. The optimal sections of the portal frame have to be selected from a square hollow sections catalog. The design of the portal frame has to meet the requirements prescribed by the Eurocodes. These requirements are adopted as constraints by reformulating them as or approximating them by a linear equation. Not only the Eurocode constraints related to member strength and stability but also all Eurocode constraints related to the joints of the structure are taken into account during the optimization. As a consequence, a post-processing step to account for other constraints is avoided, therefore optimality is retained and additional engineering time is reduced. The optimization results are presented and the influence of the different Eurocode constraints on the optimal design is discussed.