Preheat the oven to 350°F.
Lightly coat a sheet pan or baking sheet with nonstick cooking spray.
In a medium mixing bowl, combine the all-purpose flour, cinnamon, salt, baking soda, baking powder, and nutmeg.
Stir the dry ingredients until evenly combined.
In a separate large mixing bowl, combine the softened butter, granulated sugar, brown sugar, and vegetable oil.
Mix until the mixture is smooth, fluffy, and well combined.
Beat in the eggs, one at a time, mixing well after each addition.
Add the vanilla extract and mix until incorporated.
Gradually add the dry ingredients to the wet ingredients.
Mix only until the batter is just combined. Do not overmix.
Gently fold in the grated carrots, raisins, and chopped pecans until evenly distributed.
Spread the batter evenly into the prepared sheet pan.
Bake for 20 to 25 minutes, or until a toothpick inserted into the center comes out clean.
Remove the cake from the oven and set it aside to cool completely.
While the cake is cooling, prepare the frosting.
In a large mixing bowl, beat the softened cream cheese and softened butter until smooth and fluffy.
Add the vanilla extract and salt.
Mix until fully incorporated.
Gradually add the confectioners’ sugar, mixing after each addition.
Continue beating until the frosting reaches the desired smooth and spreadable consistency.
Once the cake has cooled completely, spread the cream cheese frosting evenly over the entire cake.
Top with additional chopped pecans, if desired.
Slice into squares before serving.