Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added eng/images/microsofticon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions eng/scripts/Pack-Nuget.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ try {
$serverProjectProperties = & "$projectPropertiesScript" -ProjectName "$serverName.csproj"
$platformOutputPath = "$OutputPath/nuget/$($serverDirectory.Name)/platform"
$wrapperOutputPath = "$OutputPath/nuget/$($serverDirectory.Name)/wrapper"
$packageIcon = $serverProjectProperties.PackageIcon
if (!$packageIcon) {
$packageIcon = "microsofticon.png"
}
$packageIconPath = "$RepoRoot/eng/images/$packageIcon"

New-Item -ItemType Directory -Force -Path $platformOutputPath | Out-Null
New-Item -ItemType Directory -Force -Path $wrapperOutputPath | Out-Null
Expand Down Expand Up @@ -97,7 +102,7 @@ try {
Copy-Item -Path "$nuspecSourcePath/README.md" -Destination $tempNugetWrapperDir -Force
Copy-Item -Path "$RepoRoot/LICENSE" -Destination $tempNugetWrapperDir -Force
Copy-Item -Path "$RepoRoot/NOTICE.txt" -Destination $tempNugetWrapperDir -Force
Copy-Item -Path $azureIconPath -Destination $tempNugetWrapperDir -Force
Copy-Item -Path $packageIconPath -Destination $tempNugetWrapperDir -Force

# Build the project
foreach ($platformDirectory in $platformDirectories) {
Expand All @@ -109,7 +114,7 @@ try {
New-Item -ItemType Directory -Force -Path $platformToolDir | Out-Null

Copy-Item -Path "$platformDirectory/dist/*" -Destination $platformToolDir -Recurse -Force
Copy-Item -Path $azureIconPath -Destination $tempPlatformDir -Force
Copy-Item -Path $packageIconPath -Destination $tempPlatformDir -Force
Copy-Item -Path "$RepoRoot/LICENSE" -Destination $tempPlatformDir -Force
Copy-Item -Path "$RepoRoot/NOTICE.txt" -Destination $tempPlatformDir -Force
$platformToolEntryPoint = (
Expand Down
4 changes: 4 additions & 0 deletions servers/Azure.Mcp.Server/src/Azure.Mcp.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<DockerImageName>azure-sdk/azure-mcp</DockerImageName>
<PackageId>Azure.Mcp</PackageId>
<ToolCommandName>$(CliName)</ToolCommandName>
<PackageIcon>azureicon.png</PackageIcon>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -65,4 +66,7 @@
<PackageReference Include="ModelContextProtocol" />
<PackageReference Include="System.CommandLine" />
</ItemGroup>
<ItemGroup>
<None Include="$(RepoRoot)\eng\images\azureicon.png" Pack="true" PackagePath="azureicon.png" />
</ItemGroup>
</Project>
Loading