Skip to content

Commit 737c234

Browse files
Add application icon for Windows builds
1 parent a3f05f2 commit 737c234

6 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/Agent.Listener/Agent.Listener.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
88
</PropertyGroup>
99

10+
<PropertyGroup Condition="$(PackageRuntime.StartsWith('win'))">
11+
<ApplicationIcon>..\Misc\layoutbin\azure-pipelines-agent.ico</ApplicationIcon>
12+
</PropertyGroup>
13+
1014
<ItemGroup>
1115
<ProjectReference Include="..\Agent.Sdk\Agent.Sdk.csproj" />
1216
<ProjectReference Include="..\Microsoft.VisualStudio.Services.Agent\Microsoft.VisualStudio.Services.Agent.csproj" />

src/Agent.PluginHost/Agent.PluginHost.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
88
</PropertyGroup>
99

10+
<PropertyGroup Condition="$(PackageRuntime.StartsWith('win'))">
11+
<ApplicationIcon>..\Misc\layoutbin\azure-pipelines-agent.ico</ApplicationIcon>
12+
</PropertyGroup>
13+
1014
<ItemGroup>
1115
<ProjectReference Include="..\Agent.Sdk\Agent.Sdk.csproj" />
1216
</ItemGroup>

src/Agent.Service/Windows/AgentService.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
1616
<FileAlignment>512</FileAlignment>
1717
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
18+
<ApplicationIcon>..\..\Misc\layoutbin\azure-pipelines-agent.ico</ApplicationIcon>
1819
</PropertyGroup>
1920
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2021
<PlatformTarget>AnyCPU</PlatformTarget>

src/Agent.Worker/Agent.Worker.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
88
</PropertyGroup>
99

10+
<PropertyGroup Condition="$(PackageRuntime.StartsWith('win'))">
11+
<ApplicationIcon>..\Misc\layoutbin\azure-pipelines-agent.ico</ApplicationIcon>
12+
</PropertyGroup>
13+
1014
<ItemGroup>
1115
<ProjectReference Include="..\Microsoft.VisualStudio.Services.Agent\Microsoft.VisualStudio.Services.Agent.csproj" />
1216
<ProjectReference Include="..\Agent.Sdk\Agent.Sdk.csproj" />
34.2 KB
Binary file not shown.

src/dir.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113

114114
<ItemGroup>
115115
<LayoutRootFilesToDelete Include="$(LayoutRoot)/*.cmd" Condition="'$(PackageRuntime)' != 'win-x64' And '$(PackageRuntime)' != 'win-x86' And '$(PackageRuntime)' != 'win-arm64'"/>
116+
<LayoutRootFilesToDelete Include="$(LayoutRoot)/bin/azure-pipelines-agent.ico" Condition="'$(PackageRuntime)' != 'win-x64' And '$(PackageRuntime)' != 'win-x86' And '$(PackageRuntime)' != 'win-arm64'"/>
116117
<LayoutRootFilesToDelete Include="$(LayoutRoot)/*.sh" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86' Or '$(PackageRuntime)' == 'win-arm64'"/>
117118
<LayoutRootFilesToDelete Include="$(LayoutRoot)/license.html" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86' Or '$(PackageRuntime)' == 'win-arm64'"/>
118119
<LayoutRootFilesToDelete Include="$(LayoutRoot)/bin/AgentService.js" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86' Or '$(PackageRuntime)' == 'win-arm64'"/>

0 commit comments

Comments
 (0)