5

I wanted to target my .net application to .NetFramework 4(Client Profile) but later i recognized that a 3rd party control uses System.Design for implementing custom control.

Now im concerned about the users, as most will have .Net Framework 4 Client Profile installed on their system rather than .Net Framework 4 Full. Will the users find it annoying to download and install the Full Framework. But there is only a minor size difference client- 41mb and full- 48 mb.

Does most .net applications require client profile only? Also is there a alternative way to use ControlDesigner class in c# with client profile.

Please help me out.

11
  • @Wimbo Thanks for the link i already have read this question.But it does not give the answer i want.
    – techno
    Apr 5, 2012 at 11:04
  • @techno - Just require the full .NET Framework. If somebody doesn't have it they will download it. I should point out the .NET Framework 4 is sent through Windows Update. Apr 5, 2012 at 11:07
  • 1
    @Ramhound Thanks.But is .net framework full delivered over windows update isn't it client profile.
    – techno
    Apr 5, 2012 at 11:09
  • 3
    FYI. For .NET 4.5 and up there will be no client and full profile anymore. "Starting with the .NET Framework 4.5, the Client Profile has been discontinued and only the full redistributable package is available." (source)
    – Steven
    Apr 5, 2012 at 11:15

2 Answers 2

2

You simply need to select the full .NET 4 framework as the Target Framework. Trying to take any shortcut around that is going to blow up in your face. Well, your user's face most of all.

This just isn't a problem. Your Setup project needs to ensure that the right profile is available on the user's machine. Which does not involve a 48 megabyte download if she already has the Client profile, the .NET installer only downloads the missing pieces.

0

You could always have the copy set to true for System.Design and distribute that with your app.

Other than that they have to install it. There is no other way unless the 3rd party control drops the dependency.

5
  • 'copy set to true for System.Design and distribute that with your app'
    – techno
    Apr 5, 2012 at 11:28
  • What you can do is Add the Reference System.Design to your application, then click on it and in properties set Copy Local to true. This will copy the DLL to your application directory when compiled. When an application runs, I forget which order it goes it but it checks the application directory then GAC for the file. So if it finds that file in your application directory first, your client machines don't need it.
    – Adam
    Apr 5, 2012 at 11:32
  • Will it not compile or is it giving an error of assembly not found?
    – Adam
    Apr 5, 2012 at 12:40
  • There is an error symbol on reference to the System.Design and its showing assembly not found.
    – techno
    Apr 5, 2012 at 13:32
  • Do you have the full .NET framework installed? I assume you would. Or have you picked the right version? Sometimes you might see .NET 2.0 and .NET 4.0 versions
    – Adam
    Apr 5, 2012 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.