File tree 4 files changed +15
-22
lines changed
4 files changed +15
-22
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp5 .0</TargetFramework >
4
+ <TargetFramework >net5 .0</TargetFramework >
5
5
<RootNamespace >CSDiscordService.Tests</RootNamespace >
6
6
</PropertyGroup >
7
7
12
12
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
13
13
</ItemGroup >
14
14
<ItemGroup >
15
- <<<<<<< Updated upstream
16
- <PackageReference Include =" Microsoft.AspNetCore.TestHost" Version =" 5.0.0-preview.1.20124.5" />
17
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.6.0-preview-20200310-03" />
18
- =======
19
15
<PackageReference Include =" Microsoft.AspNetCore.TestHost" Version =" 5.0.0-preview.7.20365.19" />
20
16
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.8.0-preview-20200812-03" />
21
- >>>>>>> Stashed changes
22
17
<PackageReference Include =" xunit" Version =" 2.4.1" />
23
18
<PackageReference Include =" xunit.runner.reporters" Version =" 2.4.1" />
24
19
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3" >
Original file line number Diff line number Diff line change @@ -102,21 +102,21 @@ public async Task Eval_WellFormedCodeExecutes_ComputedExpected()
102
102
103
103
foreach ( var ( code , expected ) in tests )
104
104
{
105
- var ( result , statusCode ) = await Execute ( code ) ;
105
+ var ( result , _ ) = await Execute ( code ) ;
106
106
var res = result . ReturnValue as JsonElement ? ;
107
- object convertedValue ;
107
+
108
108
if ( expected is string || expected is null )
109
109
{
110
- convertedValue = res ? . GetString ( ) ;
110
+ _ = res ? . GetString ( ) ;
111
111
}
112
112
else if ( res . Value . ValueKind == JsonValueKind . Object )
113
113
{
114
- convertedValue = res . HasValue ;
114
+ _ = res . HasValue ;
115
115
}
116
116
else
117
117
{
118
118
var value = res . Value . GetRawText ( ) ;
119
- convertedValue = Convert . ChangeType ( value , expected . GetType ( ) ) ;
119
+ _ = Convert . ChangeType ( value , expected . GetType ( ) ) ;
120
120
}
121
121
}
122
122
}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp5 .0</TargetFramework >
4
+ <TargetFramework >net5 .0</TargetFramework >
5
5
<OutputType >Exe</OutputType >
6
6
<UserSecretsId >03629088-8bb9-4faf-8162-debf93066bc4</UserSecretsId >
7
7
<ApplicationInsightsResourceId >/subscriptions/a46288ed-15a1-40ee-8fb2-d8867d876013/resourcegroups/CSharpDiscord/providers/microsoft.insights/components/CSDiscordService</ApplicationInsightsResourceId >
10
10
11
11
<ItemGroup >
12
12
<PackageReference Include =" ICSharpCode.Decompiler" Version =" 3.2.0.3856" />
13
- <<<<<<< Updated upstream
14
- <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Scripting" Version =" 3.6.0-2.20166.4" />
15
- <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 5.0.0-preview.1.20120.4" />
13
+
16
14
<PackageReference Include =" Newtonsoft.Json" Version =" 12.0.3" />
17
- <PackageReference Include =" System.Runtime.CompilerServices.Unsafe" Version =" 5.0.0-preview.1.20120.5" />
18
- =======
19
- <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Scripting" Version =" 3.7.0" />
15
+
16
+ <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Scripting" Version =" 3.7.0-6.20418.4" />
20
17
<PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 5.0.0-preview.7.20364.11" />
21
18
<PackageReference Include =" Newtonsoft.Json" Version =" 12.0.3" />
22
19
<PackageReference Include =" System.Runtime.CompilerServices.Unsafe" Version =" 5.0.0-preview.7.20364.11" />
23
- >>>>>>> Stashed changes
20
+
24
21
<PackageReference Include =" System.ValueTuple" Version =" 4.5.0" />
25
- <PackageReference Include =" System.Memory" Version =" 4.5.3 " />
22
+ <PackageReference Include =" System.Memory" Version =" 4.5.4 " />
26
23
</ItemGroup >
27
24
<ItemGroup >
28
25
<None Update =" start.sh" >
Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/core/ sdk:5.0 as dotnet-build
1
+ FROM mcr.microsoft.com/dotnet/sdk:5.0 as dotnet-build
2
2
WORKDIR /src
3
3
COPY . .
4
4
RUN dotnet --info
5
5
RUN dotnet restore CSDiscord.sln --configfile .nuget/nuget.config
6
6
RUN dotnet test CSDiscordService.Tests/CSDiscordService.Tests.csproj
7
7
RUN dotnet publish CSDiscordService/CSDiscordService.csproj -o /app
8
- FROM mcr.microsoft.com/dotnet/core/aspnet:5.0
8
+ FROM mcr.microsoft.com/dotnet/aspnet:5.0
9
+ RUN apt-get update && apt-get install -y ca-certificates
9
10
WORKDIR /app
10
11
COPY --from=dotnet-build /app .
11
12
ENTRYPOINT ["bash" , "start.sh" ]
You can’t perform that action at this time.
0 commit comments