Skip to content

Commit 6db4684

Browse files
committed
Release v4.8.21.0 - published
1 parent ec1acf8 commit 6db4684

File tree

18 files changed

+530
-394
lines changed

18 files changed

+530
-394
lines changed

help.txt

Lines changed: 222 additions & 181 deletions
Large diffs are not rendered by default.

src/1.build-binaries.cmd

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ echo ----------------
4646
echo Building cscs.dll from %cd%
4747
echo ----------------
4848

49-
dotnet publish -c Release -f %target_prev% -o "..\out\Windows\distros\net8" cscs.8.csproj
49+
dotnet publish -c Release -f %target_prev% -o "..\out\win.net8" cscs.8.csproj
5050
rd /s /q .\obj
5151
dotnet publish -c Release -f %target% -o "..\out\Windows\console" cscs.csproj
5252

@@ -154,15 +154,19 @@ echo cd: %cd%
154154
..\ci\7z.exe a -r "..\cs-script.linux.7z" "*.*"
155155
cd ..\..
156156

157+
cd out\win.net8
158+
echo cd: %cd%
159+
..\ci\7z.exe a -r "..\cs-script.win.net8.7z" "*.*"
160+
cd ..\..
161+
157162
cd out\Windows
158163
echo cd: %cd%
159-
..\ci\7z.exe a -r ".\distros\cs-script.net8.7z" ".\distros\net8\*.*"
160-
rd /s /q ".\distros\net8"
161164

162165
echo ==========================================
163166
echo .\cscs -l:0 -c:0 -ng:csc -mkshim css.exe cscs.exe
164167
.\cscs -l:0 -c:0 -ng:csc -mkshim css.exe cscs.exe
165168
echo ==========================================
169+
166170
..\ci\7z.exe a -r "..\cs-script.win.zip" "*.*"
167171
..\ci\7z.exe a -r "..\cs-script.win.7z" "*.*"
168172
cd ..\..
@@ -175,6 +179,7 @@ cd out\Windows
175179
.\cscs -c:0 ..\..\CSScriptLib\src\CSScriptLib\output\aggregate.cs
176180
.\cscs -engine:dotnet -code Console.WriteLine(Assembly.LoadFrom(#''cscs.dll#'').GetName().Version)
177181
.\cscs -engine:dotnet -code var version = Assembly.LoadFrom(#''cscs.dll#'').GetName().Version.ToString();#nFile.Copy(#''..\\cs-script.win.7z#'', $#''..\\cs-script.win.v{version}.7z#'', true);
182+
.\cscs -engine:dotnet -code var version = Assembly.LoadFrom(#''cscs.dll#'').GetName().Version.ToString();#nFile.Copy(#''..\\cs-script.win.net8.7z#'', $#''..\\cs-script.win.net8.v{version}.7z#'', true);
178183
.\cscs -engine:dotnet -code var version = Assembly.LoadFrom(#''cscs.dll#'').GetName().Version.ToString();#nFile.Copy(#''..\\cs-script.win.zip#'', $#''..\\cs-script.win.v{version}.zip#'', true);
179184
.\cscs -engine:dotnet -code var version = Assembly.LoadFrom(#''cscs.dll#'').GetName().Version.ToString();#nFile.Copy(#''..\\cs-script.linux.7z#'', $#''..\\cs-script.linux.v{version}.7z#'', true);
180185
@REM md ..\..\..\cs-script.wiki
@@ -187,6 +192,7 @@ move "CSScriptLib\src\CSScriptLib\output\*.nupkg" ".\out"
187192
move "CSScriptLib\src\CSScriptLib\output\*.snupkg" ".\out"
188193

189194
del out\cs-script.win.7z
195+
del out\cs-script.win.net8.7z
190196
del out\cs-script.linux.7z
191197

192198
echo Updating help.txt

src/2.run-tests-ci.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
echo off
22

3-
.\out\Windows\css.exe -servers:stop
3+
rem VS xUnit test runner fails to exit (even though executed all tests) if it
4+
rem has a child process running (e.g. css build server). So starting the server before the tests
5+
.\out\Windows\css.exe -server:start
46
dotnet test ".\Tests.CSScriptLib\Tests.CSScriptLib.csproj"
57
rem dotnet test ".\Tests.cscs\Tests.CLI.csproj" -e CI="true"

src/2.run-tests.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
echo off
22

3-
.\out\Windows\css.exe -servers:stop
3+
rem VS xUnit test runner fails to exit (even though executed all tests) if it
4+
rem has a child process running (e.g. css build server). So starting the server before the tests
5+
.\out\Windows\css.exe -server:start
46
dotnet test ".\Tests.CSScriptLib\Tests.CSScriptLib.csproj"
57
dotnet test ".\Tests.cscs\Tests.CLI.csproj" -e CI="true"

src/CS-Script.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSScriptLib", "CSScriptLib\
1010
EndProject
1111
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "cscs", "cscs\cscs.csproj", "{847D3D48-443D-42F6-BB42-9467EC22994B}"
1212
ProjectSection(ProjectDependencies) = postProject
13+
{856DEA01-07B4-472D-9B82-73B37BBD1A25} = {856DEA01-07B4-472D-9B82-73B37BBD1A25}
1314
{E1531A93-F78D-406D-B3F6-06367908F619} = {E1531A93-F78D-406D-B3F6-06367908F619}
1415
EndProjectSection
1516
EndProject

src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
### CLI
3232
- Rebuild for .NET 9.0
33+
- Secondary "start build server" commands are made asynchronous to match the primary `css -server:start` behaver. The impacted commands are:
34+
- `css -servers:start`
35+
- `css -server_r:start`
3336

3437
### CSScriptLib
3538
- Rebuild for .NET 9.0</PackageReleaseNotes>

src/Tests.CSScriptLib/Evaluator.Roslyn.Tests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace EvaluatorTests
2626
[Collection("Sequential")]
2727
public class Generic_Roslyn
2828
{
29-
[Fact(Skip = "xUnit runtime is incompatible. But test is valid")]
29+
[Fact(Skip = "xUnit runtime is incompatible. But the test is valid")]
3030
public void call_UnloadAssembly()
3131
{
3232
// There is something strange happening under xUnit runtime. This very test runs fine
@@ -49,7 +49,7 @@ public void call_UnloadAssembly()
4949
}
5050
}
5151

52-
[Fact(Skip = "xUnit runtime is incompatible. But test is valid")]
52+
[Fact(Skip = "xUnit runtime is incompatible. But the test is valid")]
5353
public void call_SuccessfulUnloadAssembly()
5454
{
5555
ICalc script = CSScript.RoslynEvaluator

src/chocolatey/cs-script.nuspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
### CLI
3232
- Rebuild for .NET 9.0
33+
- Secondary "start build server" commands are made asynchronous to match the primary `css -server:start` behaver. The impacted commands are:
34+
- `css -servers:start`
35+
- `css -server_r:start`
3336

3437
### CSScriptLib
3538
- Rebuild for .NET 9.0</releaseNotes>

src/cscs/HelpProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,9 +1259,11 @@ public static string ShowHelp(string helpType, params object[] context)
12591259
#if DEBUG
12601260
Environment.GetEnvironmentVariable("CSSCRIPT_INSTALLED"),
12611261
#endif
1262-
Assembly.GetExecutingAssembly().Location.GetDirName() };
1262+
Assembly.GetExecutingAssembly().Location.GetDirName()
1263+
};
12631264

12641265
var customCommands = commandDirs
1266+
.Where(dir => dir.DirExists())
12651267
.SelectMany(dir =>
12661268
{
12671269
var commands = Directory.GetFiles(dir, "-run.cs", SearchOption.AllDirectories)

src/cscs/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ static int Main(string[] args)
4444
else if (serverCommand == "-server:reset") Globals.ResetBuildServer();
4545
else if (serverCommand == "-server:add") Globals.DeployBuildServer();
4646
else if (serverCommand == "-server:remove") Globals.RemoveBuildServer();
47-
else if (serverCommand == "-servers:start") { CSScripting.Roslyn.BuildServer.Start(); Globals.StartBuildServer(); }
47+
else if (serverCommand == "-servers:start") { Globals.StartRoslynBuildServer(); Globals.StartBuildServer(); }
4848
else if (serverCommand == "-servers:stop") { CSScripting.Roslyn.BuildServer.Stop(); Globals.StopBuildServer(); }
4949
else if (serverCommand == "-kill") { CSScripting.Roslyn.BuildServer.Stop(); Globals.StopBuildServer(); }
50-
else if (serverCommand == "-server_r:start") CSScripting.Roslyn.BuildServer.Start();
50+
else if (serverCommand == "-server_r:start") Globals.StartRoslynBuildServer();
5151
else if (serverCommand == "-server_r:stop") CSScripting.Roslyn.BuildServer.Stop();
52+
else if (serverCommand == "-server_r:start_inproc") CSScripting.Roslyn.BuildServer.Start(); // this command is invisible for users and only used to allow async start of teh server
5253
else Globals.PrintBuildServerInfo();
5354
}
5455
else if (OSVersion.Platform == PlatformID.Win32NT && installCommand.HasText() && !args.Any(x => x == "?"))

0 commit comments

Comments
 (0)