The Barclays Center will not get the game itself. (Getty Images)

The New York Knicks and the Brooklyn Nets will put their inter-borough rivalry aside for a weekend, co-hosting the 2015 NBA All-Star Weekend.

The game itself will be played in Madison Square Garden, with Barclays Center hosting all the other events, the league announced today.

New Orleans is the site of the 2014 game.

Follow @CindyBoren on Twitter and on Facebook.