Lack of assembly after assembly

I have 5 projects in my C # solution.

  • Are common
  • DataAccess
  • interface
  • Components
  • Test

I can add a link to Components.dll. But when I ran the solution, I received an error message:

The type or name of the Components namespace does not exist.

Components.dll already present in the recommendations folder.

Could you help me?

Here is the build result:

------ Rebuild All started: Project: Comps, Configuration: Release Any CPU ------
  Comps -> ..\Ashyaneh\Comps\bin\Release\AshyanehComps.dll
------ Rebuild All started: Project: Interfaces, Configuration: Debug Any CPU ------
  Interfaces -> ..\Ashyaneh\Interfaces\bin\Debug\AshyanehInterfaces.dll
------ Rebuild All started: Project: Common, Configuration: Debug Any CPU ------
  Common -> ..\Ashyaneh\Common\bin\Debug\AshyanehCommon.dll
------ Rebuild All started: Project: Web, Configuration: Debug Any CPU ------
  Web -> E:\My Programming 1391\HRShojaieWebAppRC2\Ashyaneh\Web\bin\Web.dll
------ Rebuild All started: Project: Test, Configuration: Debug x86 ------
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9):
warning MSB3253: The referenced assembly "AshyanehComps.dll" could not be resolved
because it has a dependency on "System.Web, 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.
  Test -> ..\Ashyaneh\Test\bin\Debug\Test.exe
========== Rebuild All: 5 succeeded, 0 failed, 0 skipped ==========
+5
source share
7 answers

Here is your problem:

"E:\My Programming 1391\HRShojaieWebAppRC2\Ashyaneh\Comps\bin\Release\AshyanehComps.dll" , "System.Web, Version = 4.0.0.0, Culture = , PublicKeyToken = b03f5f7f11d50a3a", ".NETFramework, Version = v4.0, Profile = Client"

, .NET 4.0, "", , . Framework System.Web .

Project for AshyanehComps.dll > a > "" > " " ".NET Framework 4".

, , .

+16

, , , " " ?

, :

  • Visual Studio
  • BIN OBJ .
  • VS

, , , . , , .

+1

, csproj , csproj :

0

, .Net Framework 4.0 Client Profile. , .Net framework 4.0.

, http://msdn.microsoft.com/en-us/library/bb398202.aspx

0

-, 5 . , ' , ?

, ( , , - VS) . , " " .

, , ( ), , . MS Build .

0
  • "" , " " "", "" (Components.dll).

  • "".

  • If you have errors in your Components project, solve them.

  • Finally create your solution.

0
source

Most likely, you are focused on applications, this is 4.0 Client Profile, like mine. The solution, if you are using something specific for 4.0, is to remove it before 3.5, and the errors will disappear. Thanks to Microsoft.

0
source

All Articles