diff --git a/src/SDK/Language/DotNet.php b/src/SDK/Language/DotNet.php index d1e43ba5d..d3a456476 100644 --- a/src/SDK/Language/DotNet.php +++ b/src/SDK/Language/DotNet.php @@ -261,6 +261,11 @@ public function getFiles() 'template' => '/dotnet/src/Appwrite.sln', 'minify' => false, ], + [ + 'scope' => 'copy', + 'destination' => '/icon.png', + 'template' => '/dotnet/icon.png', + ], [ 'scope' => 'default', 'destination' => '/src/Appwrite/Appwrite.csproj', diff --git a/src/SDK/SDK.php b/src/SDK/SDK.php index 03c949f42..bed774600 100644 --- a/src/SDK/SDK.php +++ b/src/SDK/SDK.php @@ -475,6 +475,9 @@ public function generate($target) case 'default': $this->render($template, $destination, $block, $params, $minify); break; + case 'copy': + copy('templates' . $file['template'], $destination); + break; case 'service': foreach ($this->spec->getServices() as $key => $service) { $methods = $this->spec->getMethods($key); diff --git a/templates/dotnet/icon.png b/templates/dotnet/icon.png new file mode 100644 index 000000000..460b9f040 Binary files /dev/null and b/templates/dotnet/icon.png differ diff --git a/templates/dotnet/src/Appwrite/Appwrite.csproj.twig b/templates/dotnet/src/Appwrite/Appwrite.csproj.twig index dde2d6bd8..3d319eed7 100644 --- a/templates/dotnet/src/Appwrite/Appwrite.csproj.twig +++ b/templates/dotnet/src/Appwrite/Appwrite.csproj.twig @@ -8,14 +8,17 @@ {{sdk.shortDescription}} + icon.png {{spec.licenseName}} {{sdk.gitURL}} git {{sdk.gitURL}} + true +