To configure GitHub access for LazyMagic: Create a GitHub Classic Personal Access Token with 'read:packages' scope, then create a NuGet.Config file in your User folder with your GitHub username and token to access LazyMagic packages.
This step configures your workstation to access GitHub-hosted NuGet packages from the LazyMagicOrg repository. These packages are essential components used in the LazyMagic sample system.
You need a GitHub Personal Access Token to authenticate with the LazyMagicOrg package repository:
ghp_
)Security Note: Keep the scope of access as limited as possible. The read:packages
scope is sufficient for LazyMagic.
Create a NuGet.Config file in your User folder to provide repository access credentials:
Open File Explorer and navigate to your User folder (typically C:\Users\YourUsername\
)
Create a new file named NuGet.Config with the following content:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="LazyMagic"
value = "https://nuget.pkg.github.com/LazyMagicOrg/index.json" />
</packageSources>
<packageSourceCredentials>
<LazyMagic>
<add key="Username" value="meongithub" />
<add key="ClearTextPassword" value="ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
</LazyMagic>
</packageSourceCredentials>
</configuration>
Replace the following values in your NuGet.Config file:
meongithub
→ Your actual GitHub usernameghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
→ Your Personal Access Token from Step 1To verify your configuration is working:
dotnet nuget list source
After successfully configuring GitHub access, proceed to install Visual Studio IDE in the next step of the LazyMagic setup process.