Skip to content

Commit 71a01f4

Browse files
stardivinerbbatsov
authored andcommitted
[Fix #1432] Add support for .NET projects (#1433)
1 parent f5d46da commit 71a01f4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* [#1391](https://github.com/bbatsov/projectile/issues/1391): A
2020
`.cabal` sub-directory is no longer considered project indicator.
2121
* [#1385](https://github.com/bbatsov/projectile/issues/1385): Update `projectile-replace` for Emacs 27.
22+
* [#1432](https://github.com/bbatsov/projectile/issues/1432): Support .NET project.
2223

2324
## 2.0.0 (2019-01-01)
2425

projectile.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,6 +2506,10 @@ test/impl/other files as below:
25062506
(and (projectile-verify-file-wildcard "?*.cabal")
25072507
(not (projectile-verify-file "stack.yaml"))))
25082508

2509+
(defun projectile-dotnet-project-p ()
2510+
(or (projectile-verify-file-wildcard "?*.csproj")
2511+
(projectile-verify-file-wildcard "?*.fsproj")))
2512+
25092513
(defun projectile-go-project-p ()
25102514
"Check if a project contains Go source files."
25112515
(or (projectile-verify-file "go.mod")
@@ -2533,6 +2537,10 @@ test/impl/other files as below:
25332537
:compile "cabal build"
25342538
:test "cabal test"
25352539
:test-suffix "Spec")
2540+
(projectile-register-project-type 'dotnet #'projectile-dotnet-project-p
2541+
:compile "dotnet build"
2542+
:run "dotnet run"
2543+
:test "dotnet test")
25362544
(projectile-register-project-type 'go projectile-go-project-test-function
25372545
:compile "go build"
25382546
:test "go test ./..."

0 commit comments

Comments
 (0)