Svg2GeometryString 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Svg2GeometryString --version 1.0.0                
NuGet\Install-Package Svg2GeometryString -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Svg2GeometryString" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Svg2GeometryString --version 1.0.0                
#r "nuget: Svg2GeometryString, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Svg2GeometryString as a Cake Addin
#addin nuget:?package=Svg2GeometryString&version=1.0.0

// Install Svg2GeometryString as a Cake Tool
#tool nuget:?package=Svg2GeometryString&version=1.0.0                

Svg2GeometryString

开发的缘由:

  • WPF中的Path元素可以直接使用图形微语言的字符串来填充其Data属性,并可以显示出对应矢量图形。
  • Svg格式文件是可缩放矢量图形文件,他是基于图形微语言和XML文本格式形成的图形格式。
  • 常用的图标库(例如:IconFont、FontAwesome)都提供了SVG格式图标的数据复制或下载。
  • 但是直接复制或者下载SVG图标不能直接使用,需要删除格式重组,工作量比较多。
  • 所以就想加载SVG文件直接输出完整的图形微语言的字符串,可以直接绑定或者赋值给Path的Data,实现图标的显示。

好用的图标库推荐

iconfont-阿里巴巴矢量图标库

ByteDance IconPark (oceanengine.com)-字节跳动图标库

FontAwesome 字体图标中文Icon

使用说明

提供函数库、EXE可执行文件两种方式。

函数库:

用户可以传入一个SVG格式文件,返回文件对应的图形微语言数据字符串。

用户可以传入一个包含多个SVG格式文件的文件夹,返回文件夹内所有图标的微语言字符串,按照列表形式反馈

可执行文件:

用户输入一个文件夹地址,输出C#类结构的文件,每个属性代表一个字符串,防止文件名冲突,用户最好还需要输入文件名检查规则。

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 189 11/5/2023
1.0.0 102 11/3/2023