The InfoPath team is busy working on the next version of Office. While we’re offline, we’d like to take the opportunity to tackle some of the questions that we get asked frequently by InfoPath users.
First, ensure that VSTA is installed
Next, migrate your project
After installing VSTA, make a backup copy of your VSTO 2008 project that you will now proceed to migrate.
1. Custom classes used to create database connections and run queries. See DBConnection.cs.
2. External XML that are linked to the InfoPath data source. See Items.xml.
3. InfoPath form code. See FormCode.cs
4. References to non-default NETFW assemblies. See System.Windows.Forms and System.Data.
To migrate this project to VSTA
1. Launch Windows Explorer, and navigate to the InfoPath “manifest.xsf” for your project. This file is included in the “InfoPath Form Template” directory of your Visual Studio 2008 project by default.
2. You’ll see a list of files that directly correspond to the “InfoPath Form Template” directory shown in the VS Solution Explorer screenshot above. For example:
3. Right click “manifest.xsf”, and choose Design from the context menu
4. InfoPath 2010 Designer will launch.
5. Click the Code Editor button in the InfoPath 2010 Developer tab, and the browse dialog will appear
6. Click the Browse button, and navigate to the csproj file in the backup copy of your project. Select the csproj file and click ‘Open’.
7. VSTA will launch, and your project will be successfully migrated into InfoPath 2010 and VSTA.