Skip to content

Commit

Permalink
.net 8 building manual
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCSDev committed Oct 22, 2024
1 parent 5d007bc commit bd74ccf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/BUILDING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Prerequisites
* All platforms: [.NET SDK 6.0](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
* All platforms: [.NET SDK 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
* Windows (optional): [Microsoft Visual Studio 2022](https://visualstudio.microsoft.com/en/vs/)

## IMPORTANT: Cloning PatreonDownloader properly
Expand All @@ -21,8 +21,8 @@ The resulting executable will require .NET Core Runtime to be installed on the c
## Building framework-dependent executable via command line on all platforms
1. Launch command line in **PatreonDownloader.App** folder
2. Execute **dotnet build -c release** (replace **-c release** with **-c debug** to build debug build)
3. Compiled application will be placed into **PatreonDownloader.App\bin\\(Release/Debug)\net6.0**
4. Navigate to **PatreonDownloader.App\bin\\(Release/Debug)\net6.0** folder and run **dotnet PatreonDownloader.App.dll**
3. Compiled application will be placed into **PatreonDownloader.App\bin\\(Release/Debug)\net8.0**
4. Navigate to **PatreonDownloader.App\bin\\(Release/Debug)\net8.0** folder and run **dotnet PatreonDownloader.App.dll**

[Refer to official documentation to learn more about "dotnet build" command](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build?tabs=netcore31)

Expand All @@ -33,17 +33,17 @@ The resulting executable will require .NET Core Runtime to be installed on the c
2. Right click on **PatreonDownloader.App** solution and click **Publish**
3. Select desired publish profile and click **Publish**.

Application will be compiled and published in **PatreonDownloader.App\bin\publish\net6.0-(win/linux)-(x86/x64)-(release/debug)**.
Application will be compiled and published in **PatreonDownloader.App\bin\publish\net8.0-(win/linux)-(x86/x64)-(release/debug)**.

The application will be published as self-contained application and will not need .NET Runtime to function. To run the application use **PatreonDownloader.App(.exe)** executable.

## Building standalone executable via command line on all platforms
1. Launch command line in **PatreonDownloader.App** folder
2. Run the following command to build self-contained release build targeting .NET 6.0:
2. Run the following command to build self-contained release build targeting .NET 8.0:

Windows x64: **dotnet publish -c Release -r win-x64 --self-contained -f net6.0 -o bin\publish\net6.0-win-x64-release**
Windows x64: **dotnet publish -c Release -r win-x64 --self-contained -f net8.0 -o bin\publish\net6.0-win-x64-release**

Linux x64: **dotnet publish -c Release -r linux-x64 --self-contained -f net6.0 -o bin/publish/net6.0-linux-x64-release**
Linux x64: **dotnet publish -c Release -r linux-x64 --self-contained -f net8.0 -o bin/publish/net6.0-linux-x64-release**

[Refer to official documentation to learn more about "dotnet publish" command](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish?tabs=netcore31)

Expand All @@ -55,7 +55,7 @@ The application will be published as self-contained application and will not nee
PatreonDownloader uses additional plugins from Universal Download Platform which needs to be placed into appropriate folders in order to work correctly.

Google drive:
After building plugin binaries go to the output folder and copy **Google.Apis.Auth.dll, Google.Apis.Auth.PlatformServices.dll, Google.Apis.Core.dll, Google.Apis.dll, Google.Apis.Drive.v3.dll and UniversalDownloaderPlatform.GoogleDriveDownloader.dll** files into the **plugins** folder inside of PatreonDownloader folder.
After building plugin binaries go to the output folder and copy **Google.Apis.Auth.dll, Google.Apis.Core.dll, Google.Apis.dll, Google.Apis.Drive.v3.dll and UniversalDownloaderPlatform.GoogleDriveDownloader.dll** files into the **plugins** folder inside of PatreonDownloader folder.

Mega.nz:
After building plugin binaries go to the output folder and copy **MegaApiClient.dll and UniversalDownloaderPlatform.MegaDownloader.dll** files into the **plugins** folder inside of PatreonDownloader folder.

0 comments on commit bd74ccf

Please sign in to comment.