AdrianWilczynski / CSharpToTypeScript

Convert C# Models, ViewModels and DTOs into their TypeScript equivalents using webapps, CLI Tool or VSCode extension. Links: https://marketplace.visualstudio.com/items?itemName=adrianwilczynski.csharp-to-typescript - https://csharptotypescript.azurewebsites.net - https://adrianwilczynski.github.io/CSharpToTypeScript/ - https://www.nuget.org/packages/CSharpToTypeScript.CLITool/
MIT License
114 stars 32 forks source link

"C# to TypeScript" server related error occurred: "spawn dotnet ENOENT". #32

Closed lancejpollard closed 3 years ago

lancejpollard commented 3 years ago

I am new to C#, coming from TypeScript/Node.js land. I installed the VSCode extension but it is saying that error:

Screen Shot 2021-09-07 at 7 19 19 PM

Do I need to install anything else to get this running? I am going to try brew install --cask dotnet, but not sure.

lancejpollard commented 3 years ago

Okay it looks like I needed dotnet (newbee question haha).

Now I only am getting type definitions, no code. How do I get the full code converted?

export interface H3 {

}

export interface Cell {
  p: number;
  facets: Facet[];
  center: Vector3D;
  mesh: Mesh;
  depths: number[];
  idealVerts: boolean;
  hasVerts: boolean;
  verts: Vector3D[];
  iD: Vector3D;
}

export interface Facet {
  verts: Vector3D[];
  sphere: Sphere;
  iD: Vector3D;
}

export interface Edge {
  start: Vector3D;
  end: Vector3D;
  color: Vector3D;
  depths: number[];
  iD: Vector3D;
}

export interface EdgeEqualityComparer {

}

export enum Output {
  STL,
  POVRay
}

export interface Settings {
  scale: number;
  halfspace: boolean;
  maxCells: number;
  ball_MaxLength: number;
  ball_MinLength: number;
  ball_Cutoff: number;
  uHS_MinEdgeLength: number;
  uHS_MaxBounds: number;
  uHS_Horocycle: number;
  thinEdges: boolean;
  angularThickness: number;
  position: Projection;
  mobius: Mobius;
  output: Output;
}