Preheat oven to 350 F. In a food processor pulse together margarine, sugar, ground almonds, cornstarch, ground cinnamon, and salt until crumbly. Continue to pulse and stream in almond milk, vanilla extract, and almond extract to form a thick batter. Spread frangipane mixture into tart shell.