Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.6k views
in FAQ: edtFTPnet/PRO by (161k points)
closed by
How to deal with error 'The referenced assembly edtFTPnetPRO could not be resolved'?
closed with the note: Answered

1 Answer

0 votes
by (20.4k points)
 
Best answer

When creating a new project in Visual Studio 2010, and adding edtFTPnetPRO.dll, you get the following warning:

The referenced assembly "edtFTPnetPRO, Version=8.x.x.x, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. 


By default most applications are created with the project's "Target framework" property set to ".NET Framework Client Profile". This profile does not include System.Design, which edtFTPnetPRO uses.

The fix is to change the "Target framework" property to ".NET Framework 4". Brief instructions for doing this in VS 2010 are included below; more detailed instructions may be found here.

Note that in Visual Studio, you can select the target framework when you create the application, but this is not possible in Express Editions of Visual Studio. However, you can later retarget the project to any installed .NET Framework version (below).

Changing Target Framework for a C# project in Visual Studio 2010

  1. Open project properties
  2. Select the 'Application' tab
  3. Click on the dropdown under 'Target framework'
  4. Select one of the frameworks that isn't a 'Client profile'


Changing Target Framework for a VB project in Visual Studio 2010

  1. Open project properties
  2. Select the 'Compile' tab
  3. Scroll down to the bottom
  4. Click the 'Advanced compile options' button
  5. Click on the dropdown under 'Target framework'
  6. Select one of the frameworks that isn't a 'Client profile'
...