So I have this InfoPath form that was originally built for SP2010.
I copied this to my SP2013 environment and used InfoPath 2013. I also have VS2012.
So when I open the InfoPath in design mode and point the Language to the .csproj (ie: C:\test.csproj), and when I open the Code Editor, VS2012 opens up without errors. but when I check the location of the project, it is located in the AppData\Local\Temp\Vsta instead of C:\
So what happens when I modify the code, the code in the Temp is the one being modified and not code in drive C:\
I also tried removing the code and creating a new .csproj for the InfoPath but still it opens in the AppData\Local\Temp\Vsta folder.
How can I resolve this?
=====UPDATE=====
I also tried creating an infopath form with code behind from a blank template and it still opens in the Temp location.