Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 819 Bytes

File metadata and controls

20 lines (11 loc) · 819 Bytes

SampleMVC

This is a vanilla File -> New Project -> MVC Internet Website project with a goal of demonstrating how you might use ToTypeScriptD to generate TypeScript type definition (.d.ts) files automatically from your .Net assembly(s).

cinst ToTypeScriptD

Get the type definitions out of your MVC project

ToTypeScriptD dotnet SampleMVC4\bin\SampleMVC4.dll

Save the output to a file

ToTypeScriptD dotnet SampleMVC4\bin\SampleMVC4.dll > SampleMVC4TypeDefinitions.d.ts

Only get types in a specific namespace

ToTypeScriptD dotnet SampleWebAPI\bin\SampleWebAPI.dll --regexFilter "SampleWebAPI.Controllers"