A 15-year-old boy charged with attempted murder after a .22-calibre rifle was fired at an apartment building in Saskatoon Saturday appeared in court this morning.

The shooting happened on the 200 block of Avenue N South at about 11:45 a.m. CST and shattered two windows.

The teen will stay in jail until his bail hearing Tuesday.

Police were called to the area after reports of gunshots. There was evidence that a gun had been shot at two separate apartments, where windows had been broken.

There were people inside the apartments during the shooting.

A CBC News reporter who went to the scene spoke with a woman inside one of the units, who said her window was shot at while she and her children were inside. No one was hurt.

Police have not said whether the shooter was specifically targeting the two apartments.

Police arrested the teen at a home in the 200 block of Avenue L South, where officers also found a .22-calibre Savage rifle.

The teen's name will not be released because it is protected by the Youth Criminal Justice Act.

He has also been charged with eight other weapons-related offences, mischief by willful damage under $5,000 and breach of undertaking.