Im really new to working with VS2012, but I am getting a really big problem thats making development impossible. Every time I change some code, I get conflicts with code auto-generated by VS2012 for debugging ( project\obj\Release\filename.g.i.css ). It’s like there are ghost copies of source files and VS2012 is picking them up as project files and causing lots of declaration errors (because it detects them as declared in two places, even though its technically the same file).
So if I change Main.xaml.cs and save, VS2012 generates Main.g.i.css, tells me the source file has been changed outside of VS2012 and Main.g.i.css is full of a bunch of code I didn’t put there, and this is at the top of its source:
This code was generated by a tool.
Runtime Version:4.0.30319.17929
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
I have turned off the file auto-reloading in options.
Do not add the
*.g.*files to the Visual Studio project. They are included automatically by the build process and is probably why you are seeing duplicates and conflicts.