Skip to content

Commit f1b6f0b

Browse files
authored
Update nuget icon (microsoft#10672)
Update nuget icon from url to local file because the old tag is deprecated.
1 parent c1cf16e commit f1b6f0b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

ORT_icon_for_light_bg.png

339 KB
Loading

csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<PackageProjectUrl>https://github.com/Microsoft/onnxruntime</PackageProjectUrl>
5050
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
5151
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
52-
<PackageIconUrl>https://go.microsoft.com/fwlink/?linkid=2049168</PackageIconUrl>
52+
<PackageIcon>ORT_icon_for_light_bg.png</PackageIcon>
5353
<PackageReleaseNotes>
5454
Release Def:
5555
Branch: $(BUILD_SOURCEBRANCH)
@@ -178,7 +178,7 @@
178178
CopyToOutputDirectory="PreserveNewest"
179179
Visible="false"
180180
/>
181-
<None Include="$(OnnxRuntimeCsharpRoot)\..\LICENSE.txt;$(OnnxRuntimeCsharpRoot)\..\ThirdPartyNotices.txt;$(OnnxRuntimeCsharpRoot)\..\docs\Privacy.md"
181+
<None Include="$(OnnxRuntimeCsharpRoot)\..\LICENSE.txt;$(OnnxRuntimeCsharpRoot)\..\ThirdPartyNotices.txt;$(OnnxRuntimeCsharpRoot)\..\ORT_icon_for_light_bg.png;$(OnnxRuntimeCsharpRoot)\..\docs\Privacy.md"
182182
PackagePath="\"
183183
Pack="true"
184184
Visible="false"

tools/nuget/generate_nuspec_for_native_nuget.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ def generate_tags(list, tags):
151151
list.append('<tags>' + tags + '</tags>')
152152

153153

154-
def generate_icon_url(list, icon_url):
155-
list.append('<iconUrl>' + icon_url + '</iconUrl>')
154+
def generate_icon(list, icon_file):
155+
list.append('<icon>' + icon_file + '</icon>')
156156

157157

158158
def generate_license(list):
@@ -257,7 +257,7 @@ def generate_metadata(list, args):
257257
generate_description(metadata_list, args.package_name)
258258
generate_copyright(metadata_list, '\xc2\xa9 ' + 'Microsoft Corporation. All rights reserved.')
259259
generate_tags(metadata_list, 'ONNX ONNX Runtime Machine Learning')
260-
generate_icon_url(metadata_list, 'https://go.microsoft.com/fwlink/?linkid=2049168')
260+
generate_icon(metadata_list, 'ORT_icon_for_light_bg.png')
261261
generate_license(metadata_list)
262262
generate_project_url(metadata_list, 'https://github.com/Microsoft/onnxruntime')
263263
generate_repo_url(metadata_list, 'https://github.com/Microsoft/onnxruntime.git', args.commit_id)
@@ -613,6 +613,8 @@ def generate_files(list, args):
613613
'" target="ThirdPartyNotices.txt" />')
614614
files_list.append('<file src=' + '"' + os.path.join(args.sources_path, 'docs', 'Privacy.md') +
615615
'" target="Privacy.md" />')
616+
files_list.append('<file src=' + '"' + os.path.join(args.sources_path, 'ORT_icon_for_light_bg.png') +
617+
'" target="ORT_icon_for_light_bg.png" />')
616618
files_list.append('</files>')
617619

618620
list += files_list

0 commit comments

Comments
 (0)