Tengo 5 proyectos en mi solución C#.Missing assembly after build
- Común
- DataAccess.
- IU
- Componentes
- prueba
puedo añadir una referencia a Components.dll. Pero, cuando corro la solución, tengo el error:
The type or namespace name 'Components' does not exist.
El Components.dll
ya está presente en la carpeta de referencias.
¿Podría ayudarme?
Aquí es construir de salida:
------ 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 ==========
¿Se ha agregado el proyecto de componentes como referencia en cualquiera de estos otros proyectos? ¿En cuál de estos cinco proyectos se informa el error? ¿Puedes construir con éxito cada uno de ellos por separado? –
Sí, cada uno de ellos se compila correctamente. –
No, el proyecto de componentes se agregó como referencia solo en el proyecto de prueba. –