I have started lately a POC project in the health care filed with the Microsoft surface
And i was trying to integrate SharePoint 2010 with the surface
And i really wanted to use VS 2010 but the problem was that Surface SDK only worked with
Visual C# Expression and actually the C# Expression is one of the dependencies for the sdk
You can find the sdk here
So all i wanted was to get the Surface SDK Project and item templates inside VS 2010
After surfing the net for some time i found that guy talking about modifying the Msi config settings
And copying some files which really didn’t work with me
But you can give it a try any way surface developing in visual studio 2010
Another trial was to do the following
The Surface project templates can be copied from the Visual Studio 2008 installation to the VS2010, note that just copying them will still require the addition of the System.Xaml references mentioned above. At some point if time permits it will be worth modifying the templates to add System.Xaml.
Copy the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Project Templates\CSharp\Surface directory to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Surface.
Note however that this contains two zip files:- WpfSurfaceApplication.zip and XnaSurfaceApplication.zip. An additonal file XnaGs3SurfaceApplication.zip can be found in the directory C:\Program Files\Microsoft SDKs\Surface\v1.0\Project Templates, if this additonal template is required then copy this also.
Also the Item Templates for the Surface SDK are missing, copy these from C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Surface to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Surface.
Note these files can also be found in C:\Program Files\Microsoft SDKs\Surface\v1.0\Item Templates.
Follow the instructions in the link below:
http://msdn.microsoft.com/en-us/library/y3kkate1(VS.100).aspx
Extract of required steps:
Close all instances of Visual Studio.
On the Start menu, click Run, type cmd, and click OK.
At the command prompt, locate the directory that contains devenv.exe (default C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE), and type devenv /setup.
Run Visual Studio.
Note that the Surface Controls are not present in the toolbox when creating a new WPF Surface Application. To add the Surface Controls to the Toolbox open VS2010, open and pin the Toolbox and right click and choose the Add Tab context menu option.
Next enter the text Surface Controls in the newly created tab.
Right clicking in the new tab to add items causes VS2010 to hang. So go to the Tools Menu and select Choose Toolbox Items…
In the Choose Toolbox Items dialog select the WPF Components and then select all of the Surface controls and press the OK button.
Note the icons for the controls do not appear and this is not the proper solution for the lack of Surface Controls in the Toolbox but is a workaround until the time is available to investigate further.
Pasted from <here>
And that also didn’t work except that it did work to add the surface controls to the Controls Box
And you wont believe what actually made it to work was so simple !!
I just copied the surface project templates and item templates from the path
C:\Program Files\Microsoft SDKs\Surface\v1.0\Project Template
C:\Program Files\Microsoft SDKs\Surface\v1.0\Item Templates
To the path
C:\Users\Awaddabd\Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual C#\Surface
C:\Users\Awaddabd\Documents\Visual Studio 2010\Templates\ItemTemplates\Visual C#\Surface
And that was good enough to make every thing works fine in Visual Studio 2010….












