我对使用TFS非常陌生(当然不是使用Visual Studio)。我在同一个解决方案中有6个项目,其中一个项目有一个文件夹,里面有6个c-sharp类。当我试图从其他项目(它们都在同一个解决方案中)内部访问这些类时,除了一个类之外,其他五个类没有出现在intellisense中。我已经在其他项目中手动添加了对此项目的引用。这就是为什么我可以访问一个类,但我的困惑是为什么其他类不能通过intellisense访问。
我是不是做错了什么。我做了签入,无论整个解决方案中有什么悬而未决的更改,仍然没有运气。
您的帮助我们将不胜感激
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NS.GIS.PTC.Core.Entities;
namespace NS.GIS.PTC.WebServices.DataManagement.Model.Dtos
{
public class FieldDescriptionDto
{
public string Name
{
get;
set;
}
public string Type
{
get;
set;
}
public string Alias
{
get;
set;
}
public int Length
{
get;
set;
}
public bool IsSystem
{
get;
set;
}
public Domain Domain
{
get;
set;
}
}
}这是代码,下面是使用它的代码,我强制写了它,因为你知道它不会出现在智能感知中
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NS.GIS.PTC.Core.Entities;
using NS.GIS.PTC.WebService.DataManagement.Model.Dtos;
namespace NS.GIS.PTC.WebService.DataManagement.API.Model
{
internal static class FieldDescriptionExtension
{
internal static FieldDescriptionDto ToFieldDescriptionDto(this FieldDescription fieldDescription)
{
return new FieldDescriptionDto
{
Name = fieldDescription.Name,
Type = fieldDescription.Type,
Alias= fieldDescription.Alias,
};
}
}
}发布于 2014-03-30 04:01:25
https://stackoverflow.com/questions/22736072
复制相似问题