By default when you add custom C# code to form InfoPath opens it from
C:\users\user\InfoPath Projects path. I would like to move it
C:\Dev\InfoPath and create git repo. When I open Form and go to
File->Form Options->Programming I can change the path to
.csproj file. But after I save it, close it and open it again and try to edit code it gives me error telling that The system cannot find the file specified. It doesn't tell me what file.
The worst thing is that it worked for 3 forms already and I can't do it for next one. It seems completely random.
EDIT: After more investigation using Process Monitor I see that when I click to edit code it looks in correct folder but is looking for old project name. I published source files to verify if they contain old project name but they're not. They point to correct csproj file.
<xsf2:managedCode projectPath="C:\dev\MyFolder\Code\MyNewForm.csproj" language="CSharp" version="15.0" enabled="yes"></xsf2:managedCode>
Yet Infopath designer is looking for