Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.71 KB

README.md

File metadata and controls

38 lines (24 loc) · 1.71 KB

.NET with .esproj Example

Example repository with C# and JS/TS with build orchestration via dotnet (.csproj and .esproj).

codecov Quality Gate Status

Directory structure

The workspace (solution) has client and server directories separated to simplify the build process. Specifically, they each have their own Directory.* files. Most other configuration files live in the root directory.

The solution view offers an alternative display of the workspace. It reorganizes the root configuration files into client, server, and shared under the files solution folder. It groups all projects together under the projects solution folder (no client and server separation).

Targets

The workspace uses the standard dotnet targets for both .NET and npm.

  • restore installs dependencies
  • build compiles, lints, and builds the projects
  • test runs unit tests with coverage

.NET uses build for Analyzers and formatting (via CSharpier.MSBuild), so npm uses build for ESLint, tsc, and Prettier.

dotnet format exists to help auto-fix, but is not used to verify the build.

Notes

Path separators

Per my understanding, Windows happily accepts / for path separators. Unix requires /.

Thus, this workspace uses / in all configuration files except the *.sln file which uses \. This preserves the IDE edits made to the *.sln file.