Description
Hi,
The set-up we currently have for managing a large number of projects in Visual Studio is the following:
-
Ensure each project generates a
.d.ts
file in an output directory. -
If project A depends on the types in project B then create a project dependency using the VS dialogue.
-
In project B add file
_references.ts
and add the following snippet in order to import the types from project A:/// <reference path='../projectA/output/typings.d.ts' />
This feature request is to provide an "Add Reference" dialogue that does the following:
-
The dialogue is launched from the context menu for a project (i.e. right-click on project B and select "Add Reference")
-
Permits selection of declaration files, e.g.
projectA/output/types.d.ts
. -
Once the item is selected the reference is added to a section in
.csproj
<References> <Reference Include="typings"> <HintPath>..\projectA\output</HintPath> </Reference> </References>
-
The TypeScript compiler and language service use this reference exactly the same as if it were defined in
_references.ts
.