Skip to content

Commit 5017db2

Browse files
authored
Merge pull request #2 from piraces/next
Next version for dotnex: stable 1.0.0
2 parents 9fb6951 + 7a4881c commit 5017db2

28 files changed

+550
-55
lines changed

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: .NET Docs publish
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
publish:
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup .NET
13+
uses: actions/setup-dotnet@v1
14+
- name: Install docfx via Chocolatey
15+
run: choco install docfx -y
16+
- name: Install docfx via Chocolatey
17+
run: choco install docfx -y
18+
- name: Generate documentation
19+
run: cd docs; docfx .\docfx.json --build
20+
- name: Deploy to Github Pages
21+
uses: crazy-max/ghaction-github-pages@v2
22+
with:
23+
build_dir: docs/_site
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/dotnet.yml renamed to .github/workflows/dotnet-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- name: Setup .NET
1313
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: |
16+
3.1.x
17+
5.0.x
18+
6.0.x
1419
- name: Restore dependencies
1520
run: dotnet restore
1621
- name: Pack

.github/workflows/dotnet-test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: .NET CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: |
18+
3.1.x
19+
5.0.x
20+
6.0.x
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
- name: Build
24+
run: dotnet build --no-restore
25+
# - name: Test
26+
# run: dotnet test --no-build --verbosity normal

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,4 +350,13 @@ MigrationBackup/
350350
.ionide/
351351

352352
# JetBrains IDEs
353-
.idea/
353+
.idea/
354+
355+
/**/DROP/
356+
/**/TEMP/
357+
/**/packages/
358+
/**/bin/
359+
/**/obj/
360+
_site
361+
/**/docs/doc/*.yml
362+
/**/docs/doc/.manifest

Directory.Build.targets

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<Project>
22
<ItemGroup>
3-
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-20204-02" />
4-
<PackageReference Update="System.CommandLine" Version="2.0.0-beta1.20574.7" />
3+
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.1.1" />
4+
<PackageReference Update="System.CommandLine" Version="2.0.0-beta2.21617.1" />
5+
<PackageReference Update="FluentAssertions" Version="6.4.0" />
6+
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.0.0" />
7+
<PackageReference Update="xunit" Version="2.4.1" />
8+
<PackageReference Update="xunit.runner.visualstudio" Version="2.4.3" />
9+
<PackageReference Update="coverlet.collector" Version="3.1.0" />
510
</ItemGroup>
611
</Project>

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This simple tool provides the minimum necessary to run dotnet tools without the
1919

2020
- **SourceLink for debugging**. The binaries can be debbuged with [Source Link](https://github.com/dotnet/sourcelink). Example (with Developer Command Prompt for VS): `devenv /debugexe c:\Users\rich\.dotnet\tools\dotnex.exe`
2121

22+
- **Symbols package**. A symbols package is published too in the publish process in order to ease the debugging of the NuGet package.
2223

2324

2425
## Usage
@@ -29,14 +30,15 @@ dotnex [options] <TOOL> [<TOOL-ARGS>...]
2930
Where the arguments and options are the following:
3031
```
3132
Arguments:
32-
<TOOL> The NuGet Package Id of the tool to execute
33-
<TOOL-ARGS> Arguments to pass to the tool to execute
33+
<TOOL> The NuGet Package Id of the tool to execute []
34+
<TOOL-ARGS> Arguments to pass to the tool to execute
3435
3536
Options:
36-
-v, --version <version> Version of the tool to use
37-
-f, --framework <framework> Target framework for the tool
38-
-r, --remove-cache Flag to remove the local cache before running the tool (can be run without tool)
39-
-?, -h, --help Show help and usage information
37+
-v, --use-version <use-version> Version of the tool to use
38+
-f, --framework <framework> Target framework for the tool
39+
-r, --remove-cache Flag to remove the local cache before running the tool (can be run without tool)
40+
--version Show version information
41+
-?, -h, --help Show help and usage information
4042
```
4143

4244
This same output can be obtained running the tool with the help option:
@@ -59,14 +61,19 @@ dotnet tool install -g dotnex
5961

6062
### SDK version
6163

62-
`dotnex` is actually built for .NET 5. The main idea is to maintain `dotnex` up-to-date with the current, most stable release of dotnet recommended to use at the date by Microsoft.
64+
`dotnex` is published for all current supported SDKs from Microsoft:
65+
- .NET Core 3.1.x
66+
- .NET 5.0.x
67+
- .NET 6.0.x
68+
69+
The main idea is to maintain `dotnex` up-to-date with all current supported SDKs from Microsoft.
6370

6471
## Contributions
6572

6673
Feel free to open an issue or a PR if you want to without any problem :)
6774

6875
## License
6976

70-
This project is licensed under the [MIT License](./LICENSE).
77+
This project is licensed under the [MIT License](LICENSE).
7178

7279
See the `LICENSE` file in the root of this repository.

docs/apidoc/.gitkeep

Whitespace-only changes.

docs/articles/intro.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Introduction
2+
3+
This simple tool provides the minimum necessary to run dotnet tools without the need of installing them globally or in a project, since this is not yet supported in dotnet cli.
4+
5+
It is a similar approach to [npx](https://www.npmjs.com/package/npx) from [npm](https://www.npmjs.com/).
6+

docs/articles/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- name: Introduction
2+
href: intro.md

docs/doc/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Explore the source code documentation
2+
3+
Click around and find how **dotnex** works!

0 commit comments

Comments
 (0)