The CRA will consider the entire property to maintain its nature as a principal residence in spite of the fact that you have used it for income producing purposes when all of the following conditions are met:
The income producing use is ancillary to the main use of the property as a residence.
There is no structural change to the property.
No capital cost allowance is claimed on the property.