City's Champions League campaign was ended by Barcelona on Wednesday as they slipped to a 4-1 aggregate defeat after a 2-1 loss at the Nou Camp.
Manuel Pellegrini's men broke new ground in the competition, but could not contain Barca's brilliance and Vincent Kompany's late equaliser proved a consolation after Pablo Zabaleta's sending off.
Nasri admits the 2-0 defeat in the first leg had effectively ended City's hopes and is confident the club will emerge stronger after this frustrating experience.
"I think we played a good game. I think we did everything we could," said the French playmaker.
"We can have regrets about the first leg - it is in the first leg we lost it - but here we did everything.
"I think this defeat is going to be good for us in the future.
"This is where you get experience and get much stronger as a team and a group. Next year our target is to be up there with the best."
City were also eliminated from the FA Cup at the weekend and can turn their attention to the Premier League, where they lie nine points adrift of leaders Chelsea, with three games in hand.
Nasri has urged his team-mates to shrug off their cup disappointment and mount a late title charge in the closing weeks.
"We don't have a choice. Now our target is to win the league," he said.
"I think here we showed we have the quality to be up there with the best teams in Europe.
"We came here to play. I don't think you are going to see that many teams come to Camp Nou and have that much possession, that many attempts on target.
"It is a good thing for us. It is important now to finish the season well and win the league."