File tree Expand file tree Collapse file tree 5 files changed +31
-6
lines changed Expand file tree Collapse file tree 5 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 22<Project Sdk =" Microsoft.NET.Sdk" >
33 <PropertyGroup >
44 <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 >
66 <Authors >filipw</Authors >
77 <TargetFrameworks >netstandard2.0</TargetFrameworks >
88 <AssemblyName >Dotnet.Script.Core</AssemblyName >
3030 <!-- The following references are just quick fixes for issue #166 and issue #268
3131 We need to figure out why we can't load these via the dependency context.
3232 -->
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 " />
3535 </ItemGroup >
3636 <ItemGroup >
3737 <ProjectReference Include =" ..\Dotnet.Script.DependencyModel.Nuget\Dotnet.Script.DependencyModel.NuGet.csproj" />
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
3- <TargetFrameworks >net5.0</TargetFrameworks >
3+ <TargetFrameworks >net5.0;netcoreapp3.1;netcoreapp2.1 </TargetFrameworks >
44 <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
55 </PropertyGroup >
66 <ItemGroup >
Original file line number Diff line number Diff line change @@ -351,6 +351,13 @@ public void ShouldThrowMeaningfulErrorMessageWhenDependencyIsNotFound()
351351 }
352352 }
353353
354+ [ Fact ]
355+ public void ShouldHandleIssue613 ( )
356+ {
357+ var result = ScriptTestRunner . Default . ExecuteFixture ( "Issue613" ) ;
358+ Assert . Equal ( 0 , result . exitCode ) ;
359+ }
360+
354361 [ Fact ]
355362 public void ShouldHandleIssue235 ( )
356363 {
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 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <Description >Dotnet CLI tool allowing you to run C# (CSX) scripts.</Description >
4- <VersionPrefix >1.0.1 </VersionPrefix >
4+ <VersionPrefix >1.0.2 </VersionPrefix >
55 <Authors >filipw</Authors >
66 <PackageId >Dotnet.Script</PackageId >
77 <TargetFrameworks >net5.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks >
2424 <ItemGroup >
2525 <PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 3.9.0" />
2626 <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 " />
2828 </ItemGroup >
2929 <ItemGroup >
3030 <ProjectReference Include =" ..\Dotnet.Script.Core\Dotnet.Script.Core.csproj" />
You can’t perform that action at this time.
0 commit comments