Skip to content

Commit

Permalink
upgrade project to run on MacOS and Linux
Browse files Browse the repository at this point in the history
bezzad committed Aug 19, 2024
1 parent 9c1c971 commit cf2f2f6
Showing 13 changed files with 8 additions and 199 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/dotnet-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -7,16 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x

- name: Setup .NET Core 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Setup .NET Core 8.0
uses: actions/setup-dotnet@v3
10 changes: 0 additions & 10 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
@@ -8,16 +8,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x

- name: Setup .NET Core 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Setup .NET Core 8.0
uses: actions/setup-dotnet@v3
with:
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net6.0;</TargetFrameworks>
<LangVersion>latestMajor</LangVersion>
<ServerGarbageCollection>true</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
@@ -11,6 +10,7 @@
<SignAssembly>True</SignAssembly>
<DelaySign>True</DelaySign>
<AssemblyOriginatorKeyFile>sgKey.snk</AssemblyOriginatorKeyFile>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
2 changes: 1 addition & 1 deletion src/Downloader.Test/Downloader.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;</TargetFrameworks>
<IsPackable>false</IsPackable>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Sign.snk</AssemblyOriginatorKeyFile>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<IncludeSymbols>True</IncludeSymbols>
<Title>Downloader Tests</Title>
<LangVersion>latestMajor</LangVersion>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
2 changes: 1 addition & 1 deletion src/Downloader/Downloader.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net462;net6.0;net8.0;</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<LangVersion>latestMajor</LangVersion>
<Version>3.1.2</Version>
<Title>Downloader</Title>
6 changes: 0 additions & 6 deletions src/Samples/Downloader.Sample.Framework/App.config

This file was deleted.

10 changes: 0 additions & 10 deletions src/Samples/Downloader.Sample.Framework/DownloadList.json

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions src/Samples/Downloader.Sample.Framework/Properties/AssemblyInfo.cs

This file was deleted.

7 changes: 0 additions & 7 deletions src/Samples/Downloader.Sample.Framework/packages.config

This file was deleted.

2 changes: 1 addition & 1 deletion src/Samples/Downloader.Sample/Downloader.Sample.csproj
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
<PropertyGroup>
<LangVersion>latestMajor</LangVersion>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp3.1;net6.0;</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
1 change: 0 additions & 1 deletion src/Samples/Downloader.Sample/Program.cs
Original file line number Diff line number Diff line change
@@ -65,7 +65,6 @@ private static void Initial()
ForegroundColorDone = ConsoleColor.DarkGreen,
BackgroundColor = ConsoleColor.DarkGray,
BackgroundCharacter = '\u2593',
EnableTaskBarProgress = true,
ProgressBarOnBottom = false,
ProgressCharacter = '#'
};
8 changes: 4 additions & 4 deletions src/Samples/Downloader.Sample/download.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[
{
"FileName": "D:\\TestDownload\\LocalFile10GB_Raw.dat",
"FileName": "./downloads/LocalFile10GB_Raw.dat",
"Url": "http://localhost:3333/dummyfile/file/size/10737418240",
"ValidateData": true
},
{
"FolderPath": "D:\\TestDownload",
"FolderPath": "./downloads/",
"Url": "http://localhost:3333/dummyfile/file/LocalFile100MB_WithContentDisposition.dat/size/104857600",
"ValidateData": true
},
{
"FolderPath": "D:\\TestDownload",
"FolderPath": "./downloads/",
"Url": "http://localhost:3333/dummyfile/noheader/file/LocalFile100MB_WithoutHeader.dat?size=104857600",
"ValidateData": true
},
{
"FolderPath": "D:\\TestDownload",
"FolderPath": "./downloads/",
"Url": "http://localhost:3333/dummyfile/file/LocalFile100MB.dat?size=104857600",
"ValidateData": true
}

0 comments on commit cf2f2f6

Please sign in to comment.