I lived & worked in a different state (WI) from my husband for most of the year, but now we live in the same state (MN). Do I need to file my state taxes in WI or in MN?

He worked and lived in Minnesota all year, and I worked and lived in Wisconsin for the first 8 months. My W-2s are from Wisconsin. We both lived in Minnesota by December 31, 2016. Do I file as a Minnesota or Wisconsin state resident?