Skip to main content Skip to footer

Visual Studio 2010 Compatibility

Microsoft Visual Studio 2010 is coming soon and developers are starting to adopt this new environment. There were many changes to Visual Studio 2010 that required changes to add-ons and components that you used in Visual Studio 2008. With the first Studio Enterprise 2010 release, ComponentOne has added support for most of the new features in Visual Studio. For Studio for WinForms controls, this includes the .NET 4.0 Framework as well as the new design surface; however, the new Client Profile is not supported (yet).

If you load a ComponentOne sample or convert an existing solution to Visual Studio 2010 there should be no problem. But if you are creating new projects within Visual Studio 2010 the default target setting is to the Client Profile. This may be why components do not appear in the Toolbox and why new projects do not compile. To workaround this issue you need to target the full 4.0 Framework, the 3.0 Framework, or the 2.0 Framework (ComponentOne strives to support all Frameworks except 1.x).

Targeting .NET 4.0 Framework

To use ComponentOne WinForms controls under .NET 4.0, you must target the full .NET 4.0 Framework. By default, new projects are set to target the .NET 4.0 Client Profile. ComponentOne controls depend on the full framework to run properly. If your application is targeting the Client Profile, ComponentOne controls will not appear in the Toolbox, and you’ll receive errors regarding System.Design.dll.

To change this setting for C# applications:

  1. Go to the project's properties (from the Visual Studio menu, select Project | Properties...)
  2. On the Application tab, change the Target framework to ".NET Framework 4".

To change this setting for VB applications:

  1. Go to the project's properties (from the Visual Studio menu, select Project | Properties...)
  2. On the Compile tab click the Advanced Compile Options…
  3. From this window change the Target framework to ".NET Framework 4".

Upon changing this you will be prompted to close and reopen the project.

Support for .NET 4.0 Client Profile

ComponentOne will add support for the 4.0 Client Profile after the release of Visual Studio 2010. At that time, we'll release a new set of controls that are only compatible with the .NET 4.0 Framework. These controls will remain fully compatible to the existing controls. The only difference will be the assembly file name. ComponentOne will also continue to support the .NET 2.0 and 3.0 Frameworks.

*UPDATE*: We have started to release 4.0 versions of our WinForms controls. You can download them individually from here:

http://prerelease.componentone.com/dotnet40/

ComponentOne Product Manager Greg Lutz

Greg Lutz

comments powered by Disqus