Skip to content

Commit ceba09b

Browse files
committed
# Release v4.11.3.0
### CLI - CS-Script config file is moved to JSON format (custom XML config files are still supported) - For system wide (global) installation of CS-Script, its config file location is changed to: `%Environment.SpecialFolder.CommonApplicationData%/cs-script/css_config.json`) - Added `-csproj` custom command ### CSScriptLib - no changes
1 parent 713af59 commit ceba09b

File tree

8 files changed

+184
-249
lines changed

8 files changed

+184
-249
lines changed

help.txt

Lines changed: 127 additions & 205 deletions
Large diffs are not rendered by default.

src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1616
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1717
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
18-
<Version>4.11.2.0</Version>
18+
<Version>4.11.3.0</Version>
1919
<Authors>Oleg Shilo</Authors>
2020
<Description>CS-Script engine Class Library for .NET 5 (and higher)</Description>
2121
<Copyright>(C) 2018-2023 Oleg Shilo</Copyright>
@@ -30,19 +30,16 @@
3030
## Changes
3131

3232
### CLI
33-
- Updating current directory via -l switch is disabled for all custom command scripts.
34-
- Added public extension methods
35-
- Reset dotnet-engine project template on the change of the target framework (set via `-self-rt`)
36-
- Added a small automation library `shell.cs` to the distribution
37-
- added `-scrumble` custom command
38-
- added `shell.cs` lib-script
33+
- CS-Script config file is moved to JSON format (custom XML config files are still supported)
34+
- For system wide (global) installation of CS-Script, its config file location is changed to: `%Environment.SpecialFolder.CommonApplicationData%/cs-script/css_config.json`)
35+
- Added `-csproj` custom command
3936

4037
### CSScriptLib
4138
- no changes</PackageReleaseNotes>
4239
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
43-
<AssemblyVersion>4.11.2.0</AssemblyVersion>
44-
<FileVersion>4.11.2.0</FileVersion>
45-
<PackageVersion>4.11.2.0</PackageVersion>
40+
<AssemblyVersion>4.11.3.0</AssemblyVersion>
41+
<FileVersion>4.11.3.0</FileVersion>
42+
<PackageVersion>4.11.3.0</PackageVersion>
4643
<PackageLicenseExpression>MIT</PackageLicenseExpression>
4744
<PackageIcon>css_logo.png</PackageIcon>
4845
<SignAssembly>True</SignAssembly>

src/chocolatey/cs-script.nuspec

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>cs-script</id>
5-
<version>4.11.2.0</version>
5+
<version>4.11.3.0</version>
66
<title>CS-Script</title>
77
<authors>Oleg Shilo</authors>
88
<owners>Oleg Shilo</owners>
@@ -29,12 +29,9 @@
2929
## Changes
3030

3131
### CLI
32-
- Updating current directory via -l switch is disabled for all custom command scripts.
33-
- Added public extension methods
34-
- Reset dotnet-engine project template on the change of the target framework (set via `-self-rt`)
35-
- Added a small automation library `shell.cs` to the distribution
36-
- added `-scrumble` custom command
37-
- added `shell.cs` lib-script
32+
- CS-Script config file is moved to JSON format (custom XML config files are still supported)
33+
- For system wide (global) installation of CS-Script, its config file location is changed to: `%Environment.SpecialFolder.CommonApplicationData%/cs-script/css_config.json`)
34+
- Added `-csproj` custom command
3835

3936
### CSScriptLib
4037
- no changes</releaseNotes>

src/cscs/Settings.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,33 @@ public static string DefaultConfigFile
583583
}
584584
}
585585

586+
/// <summary>
587+
/// Gets the default global configuration file path. It is a "css_config.json" file located in the common application data directory
588+
/// under "cs-script" subfolder (e.g., "C:\ProgramData\cs-script\css_config.json" on Windows).
589+
/// <para>
590+
/// This configuration file is used when CS-Script is installed globally (system-wide) and provides shared settings
591+
/// across all users and applications on the system.
592+
/// </para>
593+
/// </summary>
594+
/// <value>
595+
/// The default global configuration file path.
596+
/// </value>
586597
public static string DefaultGlobalConfigFile = Environment.SpecialFolder.CommonApplicationData.GetPath().PathJoin("cs-script", "css_config.json");
598+
599+
/// <summary>
600+
/// Gets the current configuration file path based on the CS-Script installation type.
601+
/// <para>
602+
/// Returns <see cref="DefaultGlobalConfigFile"/> if CS-Script is globally installed (system-wide) or if the
603+
/// "CSS_GLOBAL_CONFIG" environment variable is set; otherwise, returns <see cref="DefaultConfigFile"/>.
604+
/// </para>
605+
/// <para>
606+
/// This property dynamically selects between local (per-installation) and global (system-wide)
607+
/// configuration files to ensure the appropriate settings are used regardless of how CS-Script was installed.
608+
/// </para>
609+
/// </summary>
610+
/// <value>
611+
/// The path to the current configuration file that should be used for loading and saving CS-Script settings.
612+
/// </value>
587613
public static string CurrentConfigFile => Runtime.IsGloballyInstalled || "CSS_GLOBAL_CONFIG".GetEnvar() != null ? DefaultGlobalConfigFile : DefaultConfigFile;
588614

589615
internal static string DefaultConfigFileXml

src/cscs/cscs.csproj

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<AssemblyName>cscs</AssemblyName>
77
<RootNamespace>CSScripting</RootNamespace>
88
<StartupObject />
9-
<Version>4.11.2.0</Version>
9+
<Version>4.11.3.0</Version>
1010
<Authors>Oleg Shilo</Authors>
1111
<Product>CS-Script</Product>
1212
<Copyright>(C) 2004-2023 Oleg Shilo</Copyright>
@@ -16,19 +16,16 @@
1616
<RepositoryUrl>https://github.com/oleg-shilo/cs-script</RepositoryUrl>
1717
<RepositoryType>git</RepositoryType>
1818
<PackageTags>C# script dynamic</PackageTags>
19-
<AssemblyVersion>4.11.2.0</AssemblyVersion>
20-
<FileVersion>4.11.2.0</FileVersion>
19+
<AssemblyVersion>4.11.3.0</AssemblyVersion>
20+
<FileVersion>4.11.3.0</FileVersion>
2121
<PackageReleaseNotes>---
2222

2323
## Changes
2424

2525
### CLI
26-
- Updating current directory via -l switch is disabled for all custom command scripts.
27-
- Added public extension methods
28-
- Reset dotnet-engine project template on the change of the target framework (set via `-self-rt`)
29-
- Added a small automation library `shell.cs` to the distribution
30-
- added `-scrumble` custom command
31-
- added `shell.cs` lib-script
26+
- CS-Script config file is moved to JSON format (custom XML config files are still supported)
27+
- For system wide (global) installation of CS-Script, its config file location is changed to: `%Environment.SpecialFolder.CommonApplicationData%/cs-script/css_config.json`)
28+
- Added `-csproj` custom command
3229

3330
### CSScriptLib
3431
- no changes</PackageReleaseNotes>
@@ -111,6 +108,8 @@
111108
</PropertyGroup>
112109
<ItemGroup>
113110
<!-- start: nuget tool package custom commands (keep this line here, it is a marker for automation) -->
111+
<Content Include="..\out\static_content\-csproj\**\*" Link="ToolPackage/-csproj" Pack="true" PackagePath="tools/net9.0/any/-csproj" />
112+
<Content Include="..\out\static_content\-csproj\**\*" Link="ToolPackage/-csproj" Pack="true" PackagePath="tools/net8.0/any/-csproj" />
114113
<Content Include="..\out\static_content\-edit\**\*" Link="ToolPackage/-edit" Pack="true" PackagePath="tools/net9.0/any/-edit" />
115114
<Content Include="..\out\static_content\-edit\**\*" Link="ToolPackage/-edit" Pack="true" PackagePath="tools/net8.0/any/-edit" />
116115
<Content Include="..\out\static_content\-mkshim\**\*" Link="ToolPackage/-mkshim" Pack="true" PackagePath="tools/net9.0/any/-mkshim" />

src/css/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("4.11.2.0")]
35-
[assembly: AssemblyFileVersion("4.11.2.0")]
34+
[assembly: AssemblyVersion("4.11.3.0")]
35+
[assembly: AssemblyFileVersion("4.11.3.0")]

src/csws/csws.csproj

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<UseWindowsForms>true</UseWindowsForms>
99
<RootNamespace>CSScripting</RootNamespace>
1010
<StartupObject />
11-
<Version>4.11.2.0</Version>
11+
<Version>4.11.3.0</Version>
1212
<Authors>Oleg Shilo</Authors>
1313
<Product>CS-Script</Product>
1414
<Copyright>(C) 2004-2022 Oleg Shilo</Copyright>
@@ -19,19 +19,16 @@
1919
<RepositoryUrl>https://github.com/oleg-shilo/cs-script</RepositoryUrl>
2020
<RepositoryType>git</RepositoryType>
2121
<PackageTags>C# script dynamic</PackageTags>
22-
<AssemblyVersion>4.11.2.0</AssemblyVersion>
23-
<FileVersion>4.11.2.0</FileVersion>
22+
<AssemblyVersion>4.11.3.0</AssemblyVersion>
23+
<FileVersion>4.11.3.0</FileVersion>
2424
<PackageReleaseNotes>---
2525

2626
## Changes
2727

2828
### CLI
29-
- Updating current directory via -l switch is disabled for all custom command scripts.
30-
- Added public extension methods
31-
- Reset dotnet-engine project template on the change of the target framework (set via `-self-rt`)
32-
- Added a small automation library `shell.cs` to the distribution
33-
- added `-scrumble` custom command
34-
- added `shell.cs` lib-script
29+
- CS-Script config file is moved to JSON format (custom XML config files are still supported)
30+
- For system wide (global) installation of CS-Script, its config file location is changed to: `%Environment.SpecialFolder.CommonApplicationData%/cs-script/css_config.json`)
31+
- Added `-csproj` custom command
3532

3633
### CSScriptLib
3734
- no changes</PackageReleaseNotes>

src/release_notes.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
# Release v4.11.2.0
1+
# Release v4.11.3.0
22

33
---
44

55
## Changes
66

77
### CLI
8-
- Updating current directory via -l switch is disabled for all custom command scripts.
9-
- Added public extension methods
10-
- Reset dotnet-engine project template on the change of the target framework (set via `-self-rt`)
11-
- Added a small automation library `shell.cs` to the distribution
12-
- added `-scrumble` custom command
13-
- added `shell.cs` lib-script
8+
- CS-Script config file is moved to JSON format (custom XML config files are still supported)
9+
- For system wide (global) installation of CS-Script, its config file location is changed to: `%Environment.SpecialFolder.CommonApplicationData%/cs-script/css_config.json`)
10+
- Added `-csproj` custom command
1411

1512
### CSScriptLib
1613
- no changes

0 commit comments

Comments
 (0)