.NET

CS

Namespace

An object belongs to a namespace. Calling an object within the same namespace in a different file creates a dependency.

    namespace example.namespace {
    public class class1 {
    }
    }
Using

Using instructions are used to build a source file scope. If a visible object from this namespace is then used, a dependency to the file containing this object is created.

    using example.namespace;

    public class class2
    {
    private class1 c;
    }

EDMX

When a classname is used within the edmx, a generic analysis is triggered. If a file within the same scope contains a class, enum, interface or struct with this name, a dependency is created to this file.

EntityTypeMapping

The EntityTypeMapping instruction creates a dependency to a .cs file within the same project.

  • <EntityTypeMapping TypeName="csfile">

CSPROJ

A .csproj file has a dependency to all the .csproj, .edmx, .cs, .asmx, .aspx, .cshtml and .sln files in the project.

Compile

The Compile instruction creates a dependency to a .csproj, .edmx, .cs, .asmx, .aspx, .cshtml or a .sln file. This file may not be in the same project.

  • <Compile Include="..\files\EDMX.edmx"/>

.cs files of the project may now use namespaces from the newly included file with a using instruction. If an object from this namespace is called, a dependency is created.

Content

The Content instruction creates a dependency to a .csproj, .edmx, .cs, .asmx, .aspx, .cshtml or a .sln file. This file may not be in the same project.

  • <Content Include="..\files\EDMX.edmx"/>

.cs files of the project may now use namespaces from the newly included file with a using instruction. If an object from this namespace is called, a dependency is created.

ProjectReference

The ProjectReference instruction creates a dependency to a .csproj file.

  • <ProjectReferenceInclude="..\project2\csproj2.csproj"/>

.cs files of the project may now use include namespaces from the newly included project with a using instruction. If a public object from this namespace is called, a dependency is created.