FAQ for edtFTPnet/PRO
no avatar
User

support2

Posts

3845

Joined

Tue May 18, 2004 8:30 am

The referenced assembly edtFTPnetPRO could not be resolved

by support2 » Fri Mar 30, 2012 9:35 am

When creating a new project in Visual Studio 2010, and adding edtFTPnetPRO.dll, you get the following warning:
Code: Select all
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'

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron