Skip to content

Commit cbfc8ef

Browse files
Fix build script with run option and add back CLS
1 parent 00b200b commit cbfc8ef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CritLang/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
This file was deleted.

CritLang/build.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ param (
33
[switch]$run = $false,
44
[switch]$publish = $false,
55
[string]$target = $null,
6-
[switch]$help = $false
6+
[switch]$help = $false,
7+
[string]$proj = "CritLang.csproj"
78
)
89

910

@@ -14,6 +15,7 @@ if ($help) {
1415
Write-Host " -run: Run the application"
1516
Write-Host " -publish: Publish the application"
1617
Write-Host " -target: The target to publish for"
18+
Write-Host " -proj: The project to build"
1719
Write-Host " -help: Show this help"
1820
exit
1921
}
@@ -26,7 +28,7 @@ if ($run) {
2628
if ($target -eq $null) {
2729
throw "A file to run must be specified"
2830
}
29-
return dotnet run -- $target
31+
return dotnet run --project $proj $target
3032
}
3133

3234
if ($publish) {

0 commit comments

Comments
 (0)