asp.Netで同じプロジェクトのクラスライブラリを参照goToDefinition時に真の定義クラスに到達しないようにする

1327 ワード

新しいソリューション:Api
クラスライブラリAPiを追加します.Data
APi.Data新規Entity
 
  
public class Entity
{
private int id;
public int Id
{
get { return id; }
set { id = value; }
}
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
}

クラスライブラリAPiを追加します.Web
引用APi.Data.dll
APi.Web下
APi.Data.Entity t = new APi.Data.Entity();
EntityのgoToDefinition
結果は次のとおりです.
 
  
using System;
namespace APi.Data
{
public class Entity
{
public Entity();
public int Id { get; set; }
public string Name { get; set; }
}
}

ではなく、
 
  
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Api.Data
{
public class Entity
{
private int id;
public int Id
{
get { return id; }
set { id = value; }
}
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
}
}