BEIJING—China’s government criticized the U.S.’s planned punitive actions on Chinese exports and investment, warning that it will take “all necessary measures” to respond and decrying Washington’s approach to the countries’ trade disputes.

China’s commerce and foreign ministries separately registered Beijing’s displeasure Thursday ahead of the Trump administration’s planned announcement of tariffs and other measures later in the day.

...