我有一个问题,很遗憾,我没有找到可以修复的解决方案我的问题,其他解决方案可以找到,但没有人为我工作TFS - 错误:“名称空间'blublu'中不存在类型或名称空间名称'blabla'(您是否缺少程序集引用?)
当我在本地构建我的解决方案,都是完美的,但是当我用这个解决方案启动构建定义时,我有一些问题 首先几个erros如:
Console.cs (5): The type or namespace name 'Core' does not exist in the namespace 'Toto' (are you missing an assembly reference?)
Enti\Extensions.cs (602): The type or namespace name 'Attribute' could not be found (are you missing a using directive or an assembly reference?)
和其他具有相同的错误作为最后一个
。为了帮助我,我有这些警告,以及,在下文中,其中之一(其它类似):
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly "Comarch.B2.Core". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
我试了一下:
- 的引用,如“核心”来说是井投入 项目参考文献;
- 删除,并添加警告引用
- 经过版本框架DOTNET路径lenghts (http://www.gitshah.com/2011/06/visual-studio-2010-fixing-referenced.html)
例如第一个错误上面:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using .Core.Interfaces.Dictionaries;
namespace Toto.Presentation.Extensions.Interfaces
{
public class Console
{
...
}
}
然后我的日志的废料:
> C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1605,5):
> warning MSB3245: Could not resolve this reference. Could not locate
> the assembly "Common". Check to make sure the assembly exists on disk.
> If this reference is required by your code, you may get compilation
> errors.
> [c:\bw\41\src\F\TFS\te\Pro\Extensions\Toto.Presentation.Extensions.Interfaces\Toto.Presentation.Extensions.Interfaces.csproj]
> For SearchPath "{HintPathFromItem}".
> Considered "..\..\..\..\..\..\..\..\..\..\Toto.Common.dll", but it didn't exist.
> For SearchPath "{TargetFrameworkDirectory}".
> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Toto.Common.winmd",
> but it didn't exist.
> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Toto.Common.dll",
> but it didn't exist.
> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Toto.Common.exe",
> but it didn't exist.
谢谢v对于帮助我很重要,我在2天前偷偷摸摸地走了过去。
您是否在“核心”程序集中检入TFS,并在构建时将其下载到构建代理服务器? –