Skip to content

Commit

Permalink
Updated to .NET 5 and removed deprecated serilog packages
Browse files Browse the repository at this point in the history
  • Loading branch information
i8beef committed Dec 13, 2020
1 parent 8ed45a7 commit 257eaad
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ build_script:
dotnet publish -c Release src/HomeAutio.Mqtt.TiVo.sln
artifacts:
- path: src\HomeAutio.Mqtt.TiVo\bin\$(configuration)\netcoreapp3.1\publish
- path: src\HomeAutio.Mqtt.TiVo\bin\$(configuration)\net5.0\publish
name: HomeAutio.Mqtt.TiVo-$(appveyor_build_version)
deploy:
- provider: GitHub
auth_token: $(GITHUB_API_KEY)
artifact: src\HomeAutio.Mqtt.TiVo\bin\$(configuration)\netcoreapp3.1\HomeAutio.Mqtt.TiVo-$(appveyor_build_version).zip
artifact: src\HomeAutio.Mqtt.TiVo\bin\$(configuration)\net5.0\HomeAutio.Mqtt.TiVo-$(appveyor_build_version).zip
4 changes: 2 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS build
WORKDIR /app

# copy csproj and restore as distinct layers
Expand All @@ -17,7 +17,7 @@ WORKDIR /app/HomeAutio.Mqtt.TiVo
RUN dotnet publish -o out

# build runtime image
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-alpine AS runtime
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine AS runtime
WORKDIR /app
COPY --from=publish /app/HomeAutio.Mqtt.TiVo/out ./

Expand Down
4 changes: 2 additions & 2 deletions src/Dockerfile.arm32
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS build
WORKDIR /app

# copy csproj and restore as distinct layers
Expand All @@ -17,7 +17,7 @@ WORKDIR /app/HomeAutio.Mqtt.TiVo
RUN dotnet publish -o out

# build runtime image
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim-arm32v7 AS runtime
FROM mcr.microsoft.com/dotnet/runtime:5.0-buster-slim-arm32v7 AS runtime
WORKDIR /app
COPY --from=publish /app/HomeAutio.Mqtt.TiVo/out ./

Expand Down
12 changes: 6 additions & 6 deletions src/HomeAutio.Mqtt.TiVo/HomeAutio.Mqtt.TiVo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>latest</LangVersion>
<PackageProjectUrl>https://github.com/i8beef/HomeAutio.Mqtt.TiVo</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/i8beef/HomeAutio.Mqtt.TiVo/blob/master/LICENSE</PackageLicenseUrl>
<Company></Company>
<Product>HomeAutio.Mqtt.TiVo</Product>
<Version>1.0.0.0</Version>
<PackageId>HomeAutio.Mqtt.TiVo</PackageId>
<Authors>Michael Hallock</Authors>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -30,15 +30,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="HomeAutio.Mqtt.Core" Version="3.0.0.59" />
<PackageReference Include="HomeAutio.Mqtt.Core" Version="3.0.0.65" />
<PackageReference Include="I8Beef.CodeAnalysis.RuleSet" Version="1.0.15" />
<PackageReference Include="I8Beef.TiVo" Version="1.0.0.12" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
<PackageReference Include="Serilog.Sinks.RollingFile" Version="3.3.0" />
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
</ItemGroup>

</Project>
5 changes: 3 additions & 2 deletions src/HomeAutio.Mqtt.TiVo/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
"WriteTo": [
{ "Name": "Console" },
{
"Name": "RollingFile",
"Name": "File",
"Args": {
"pathFormat": "logs/HomeAutio.Mqtt.TiVo.log",
"path": "logs/HomeAutio.Mqtt.TiVo.log",
"rollingInterval": "Day",
"retainedFileCountLimit": 31
}
}
Expand Down

0 comments on commit 257eaad

Please sign in to comment.