What's the best way to license when hosting a Blazor WebAssembly on Github Pages?

Hello Syncfusion-Team,

currently doing my first Blazor Project, which I'm gonna host on Github Pages.
In the past, I've used Syncfusion in WPF-Projects and just excluded App.xaml.cs (with git update-index --assume-unchanged) from pushing changes to Github, so my License Key wasn't shown online.


However, in my Blazor Project, I'm using Github Actions to automatically build the projects on commits and push them to Github Pages (used this tutorial: https://swimburger.net/blog/dotnet/how-to-deploy-aspnet-blazor-webassembly-to-github-pages). However, for successfully using Syncfusion in this project, I'd need to include my license key in Program.cs while commiting, so my key would be visible in the public repository.

Is there any other way to license instead of adding my license key in the Project's Code? Or having a special license key, which only works for this project and isn't usable in other projects?


1 Reply 1 reply marked as answer

BH BharatRam Harikrishnan Syncfusion Team June 6, 2023 07:45 AM UTC

Hi Alexander,


To avoid the licensing issue, you need to either register a license key or use our licensed NuGet packages from licensed installer.


In your case, we suggest you store our licensed NuGet packages in any repository manager (like Nexus or Azure DevOps feed) which is shipped along with our licensed installer (location - C:\Program Files (x86)\Syncfusion\Essential Studio\Blazor\{version}\NuGetPackages).


Then in your GitHub Actions workflow, you can restore the packages from your private package source located at the repository manager. Here's a code snippet for reference:


.yaml

jobs:

build:

runs-on: ubuntu latest

 

Steps:

//…

- name: Restore packages

run: dotnet restore --source " https://myprivatenupkg.com"

- name: Build

run: dotnet build MyProject.csproj

//…


Please visit the following links to download the latest web installer or offline installer that suits your requirements:

Web Installer:  https://blazor.syncfusion.com/documentation/installation/web-installer/how-to-download

Offline Installer:   https://blazor.syncfusion.com/documentation/installation/offline-installer/how-to-download


Refer to the documentation links below for step-by-step installation guidelines:

Web Installer:  https://blazor.syncfusion.com/documentation/installation/web-installer/how-to-install

Offline Installer:   https://blazor.syncfusion.com/documentation/installation/offline-installer/how-to-install


Regards,

Bharat Ram H


Marked as answer
Loader.
Up arrow icon