Detailed Instructions: Generate a correct and concise answer for the question based on the words in the context.
Problem:Context : Sir Charles Preston, 5th Baronet (c. 1735 - 23 March 1800) was a British Major who was stationed in Canada during the American Revolutionary War.
Question : Which war did Charles Preston participate in?
Solution:
American Revolutionary War