A method for producing a high-voltage component for a high-voltage on-board electrical system of an at least partly electrically operated motor vehicle, wherein the high-voltage component comprises at least one housing device for at least one power electronics device of the high-voltage on-board electrical system, wherein the housing device at least partly provides at least one shielding device for reducing effects of electromagnetic interference, the method comprising:
- forming, in order to provide the at least one shielding device, at least one electrically non-conductive housing body of the at least one shielding device;
- forming at least one electrical discharge path of the at least one shielding device at least partly on and/or in the housing body, the at least one electrical discharge path being configured to connect to a vehicle reference potential;
- and
- electrically contact-connecting the discharge path to the power electronics device and to a vehicle reference potential with at least one connecting unit of the at least one shielding device.