Linux .NET workload manifest. Please do not reference directly.
$ dotnet add package Linux.Sdk.ManifestLinux is separate TPM for developing Linux applications within a single project, if there are other TargetFrameworks using the main net7.0 TPM.
Just install and add net7.0-linux to TargetFrameworks.
You can install Linux workload for .NET 6.0/7.0/8.0 by using the installer script.
curl -sSL https://raw.githubusercontent.com/HavenDV/Linux/main/scripts/workload-install.sh | sudo bash
if you want to install a specific version of Linux workload or install to a specific directory, use the following command:
curl -sSL https://raw.githubusercontent.com/HavenDV/Linux/main/workload/scripts/workload-install.sh | bash /dev/stdin -v <version> -d <directory>
Invoke-WebRequest 'https://raw.githubusercontent.com/HavenDV/Linux/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1';
./workload-install.ps1 [-v <version>] [-d <directory>]
You can see the Linux workload as follows if it is properly installed.
PS D:\workspace> dotnet workload list
This command lists only workloads that were installed via `dotnet workload install` in this version of the SDK and not those that were installed via Visual Studio.
Installed Workload Ids
----------------------
maui
linux
Use `dotnet workload search` to find additional workloads to install.
Updates are avaliable for the following workload(s): maui linux. Run `dotnet workload update` to get the latest
You can test this project using these commands(tested on macOS) in src/tasks/tasks folder:
dotnet build /t:TestWorkload
dotnet build /t:WorkloadUninstall
other possible targets(it already included in targets above):
DownloadDotnetInstall
DotnetInstall
WorkloadInstall
BuildPackages
CleanArtifactsAndTemporaryFiles
You can override these properties:
/p:UseCurrentDotnet=true - Will install workload to current dotnet instead downloaded.