forked from Aviacode/nTsMapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme.txt
19 lines (14 loc) · 872 Bytes
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
nTsMapper Installation
Once you've installed the nTsMapper nuget package, in order for it to work, you MUST point
your project to a dll that contains the C# classes you want mapped to TypeScript classes. To
do this, you need to modify the following XML and add it to your project file:
<PropertyGroup>
<nTsMapperInput>$(SolutionDir)Path\To\Your\CSharp.Class.Library.dll</nTsMapperInput>
</PropertyGroup>
This will cause the mapper to look for a CSharp.Class.Library.dll in that path.
NOTE: You can also customize where your resulting TypeScript file is placed and what it's
called by adding another element to the XML, like in this example:
<PropertyGroup>
<nTsMapperInput>$(SolutionDir)Path\To\Your\CSharp.Class.Library.dll</nTsMapperInput>
<nTsMapperOutput>$(ProjectDir)Place\You\Want\To\Put\The.Mapped.TypeScript.File.ts</nTsMapperOutput>
</PropertyGroup>