We study A-projections, i.e. operators on a Hilbert space 𝓗 which act as projections when a seminorm is considered in 𝓗. The A-projections were introduced by Mitra and Rao (1974) for finite-dimensional spaces. We relate this concept to the theory of compatibility between positive operators and closed subspaces of 𝓗. We also study the relationship between weighted least squares problems and compatibility.