Skip to content

Commit

Permalink
[Fix #1432] Add support for .NET projects (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
stardiviner authored and bbatsov committed Jun 26, 2019
1 parent f5d46da commit 71a01f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* [#1391](https://github.com/bbatsov/projectile/issues/1391): A
`.cabal` sub-directory is no longer considered project indicator.
* [#1385](https://github.com/bbatsov/projectile/issues/1385): Update `projectile-replace` for Emacs 27.
* [#1432](https://github.com/bbatsov/projectile/issues/1432): Support .NET project.

## 2.0.0 (2019-01-01)

Expand Down
8 changes: 8 additions & 0 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -2506,6 +2506,10 @@ test/impl/other files as below:
(and (projectile-verify-file-wildcard "?*.cabal")
(not (projectile-verify-file "stack.yaml"))))

(defun projectile-dotnet-project-p ()
(or (projectile-verify-file-wildcard "?*.csproj")
(projectile-verify-file-wildcard "?*.fsproj")))

(defun projectile-go-project-p ()
"Check if a project contains Go source files."
(or (projectile-verify-file "go.mod")
Expand Down Expand Up @@ -2533,6 +2537,10 @@ test/impl/other files as below:
:compile "cabal build"
:test "cabal test"
:test-suffix "Spec")
(projectile-register-project-type 'dotnet #'projectile-dotnet-project-p
:compile "dotnet build"
:run "dotnet run"
:test "dotnet test")
(projectile-register-project-type 'go projectile-go-project-test-function
:compile "go build"
:test "go test ./..."
Expand Down

0 comments on commit 71a01f4

Please sign in to comment.