File tree 5 files changed +31
-6
lines changed 5 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 2
2
<Project Sdk =" Microsoft.NET.Sdk" >
3
3
<PropertyGroup >
4
4
<Description >A cross platform library allowing you to run C# (CSX) scripts with support for debugging and inline NuGet packages. Based on Roslyn.</Description >
5
- <VersionPrefix >1.0.1 </VersionPrefix >
5
+ <VersionPrefix >1.0.2 </VersionPrefix >
6
6
<Authors >filipw</Authors >
7
7
<TargetFrameworks >netstandard2.0</TargetFrameworks >
8
8
<AssemblyName >Dotnet.Script.Core</AssemblyName >
30
30
<!-- The following references are just quick fixes for issue #166 and issue #268
31
31
We need to figure out why we can't load these via the dependency context.
32
32
-->
33
- <PackageReference Include =" System.Configuration.ConfigurationManager" Version =" 4.7 .0" />
34
- <PackageReference Include =" System.Text.Encoding.CodePages" Version =" 4.7.1 " />
33
+ <PackageReference Include =" System.Configuration.ConfigurationManager" Version =" 5.0 .0" />
34
+ <PackageReference Include =" System.Text.Encoding.CodePages" Version =" 5.0.0 " />
35
35
</ItemGroup >
36
36
<ItemGroup >
37
37
<ProjectReference Include =" ..\Dotnet.Script.DependencyModel.Nuget\Dotnet.Script.DependencyModel.NuGet.csproj" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFrameworks >net5.0</TargetFrameworks >
3
+ <TargetFrameworks >net5.0;netcoreapp3.1;netcoreapp2.1 </TargetFrameworks >
4
4
<GenerateAssemblyInfo >false</GenerateAssemblyInfo >
5
5
</PropertyGroup >
6
6
<ItemGroup >
Original file line number Diff line number Diff line change @@ -351,6 +351,13 @@ public void ShouldThrowMeaningfulErrorMessageWhenDependencyIsNotFound()
351
351
}
352
352
}
353
353
354
+ [ Fact ]
355
+ public void ShouldHandleIssue613 ( )
356
+ {
357
+ var result = ScriptTestRunner . Default . ExecuteFixture ( "Issue613" ) ;
358
+ Assert . Equal ( 0 , result . exitCode ) ;
359
+ }
360
+
354
361
[ Fact ]
355
362
public void ShouldHandleIssue235 ( )
356
363
{
Original file line number Diff line number Diff line change
1
+ #r "nuget: System.Text.Encoding.CodePages, 5.0.0"
2
+
3
+ public class Script
4
+ {
5
+ public static void Run ( )
6
+ {
7
+ try
8
+ {
9
+ System . Text . Encoding . RegisterProvider ( System . Text . CodePagesEncodingProvider . Instance ) ;
10
+ }
11
+ catch ( Exception ex )
12
+ {
13
+ System . Console . WriteLine ( ex . ToString ( ) ) ;
14
+ }
15
+ }
16
+ }
17
+
18
+ Script . Run ( ) ;
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<Description >Dotnet CLI tool allowing you to run C# (CSX) scripts.</Description >
4
- <VersionPrefix >1.0.1 </VersionPrefix >
4
+ <VersionPrefix >1.0.2 </VersionPrefix >
5
5
<Authors >filipw</Authors >
6
6
<PackageId >Dotnet.Script</PackageId >
7
7
<TargetFrameworks >net5.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks >
24
24
<ItemGroup >
25
25
<PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 3.9.0" />
26
26
<PackageReference Include =" McMaster.Extensions.CommandLineUtils" Version =" 2.2.5" />
27
- <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 3.1.6 " />
27
+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 5.0.0 " />
28
28
</ItemGroup >
29
29
<ItemGroup >
30
30
<ProjectReference Include =" ..\Dotnet.Script.Core\Dotnet.Script.Core.csproj" />
You can’t perform that action at this time.
0 commit comments