整理使用过的一些开源项目、工具、网站

整理一下近期的收藏夹,之后根据项目中的使用状况,进行更新。html

 

NuGet 

官网:git

NuGet Gallery | Homegithub

Package Manager Dialogsql

 

各类数据库的链接字符串写法

ConnectionStrings.com - Forgot that connection string? Get it here!shell

 

SQLite

官网:SQLite Home Page数据库

.NET封装:System.Data.SQLite: Homejson

SQLite可视化管理工具汇总,SQLite Expert、SQLiteStudio、SQLiteSpy三选一windows

一、链接字符串app

Normally, GUIDs are stored in a binary format. Use this connection string to store GUIDs as text.框架

"Data Source=c:\mydb.db;Version=3;Password=myPassword;BinaryGUID=False;"

Note that storing GUIDs as text uses more space in the database.

BinaryGUID=False必定要的,不然使用Guid做为参数查询数据的时候查不出来,即便Guid是对的。这是由于SQLite默认将Guid类型的数据以Binary类型来存储。

二、使用System.Data.SQLite

安装部署时,只须要复制.db数据库文件以及System.Data.SQLite的相关dll,不须要其余安装

2.一、VS2015设计时支持

System.Data.SQLite: Downloads Page,下载sqlite-netFx46-setup-bundle-x86-2015-1.0.99.0.exe

This is the only setup package that is capable of installing the design-time components for Visual Studio 2015.

2.二、安装

使用NuGet,搜索并安装System.Data.SQLite.Core

 

ORM - Dapper

官网:

GitHub - StackExchange/dapper-dot-net: Dapper - a simple object mapper for .Net

参考资料:

Dapper C# 访问SQLite - 百千合 - 博客园

SQLite + Dapper = Simple Data Access Layer

dapper学习 - 随笔分类 - 一线码农 - 博客园

安装:

使用NuGet,搜索并安装Dapper

 

序列化 - Json.NET

官网:

Json.NET - Newtonsoft

Json.NET - Home

GitHub - JamesNK/Newtonsoft.Json: Json.NET is a popular high-performance JSON framework for .NET

文档:

Json.NET Documentation

Json的序列化与反序列化

Newtonsoft.Json高级用法

安装:

使用NuGet,搜索并安装Newtonsoft.Json

 

音频 - NAudio

官网:

NAudio - Home

GitHub - naudio/NAudio: Audio and MIDI library for .NET

安装:

VS2015,使用NuGet搜索不到

工具-NuGet包管理器-程序包管理器控制台,运行PM> Install-Package NAudio

 

NPOI

官网:

NPOI - Home

GitHub - tonyqus/npoi: a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.

源码中有Example

安装:

VS2015,NuGet,运行PM> Install-Package NPOI

 

二维码 - ThoughtWorks.QRCode

官网:

GitHub - aaronogan/QR.NET: Continuing development of the QRCode library by ThoughtWorks

Open Source QRCode Library - CodeProject

参考资料:

C#调用ThoughtWorks.QRCode.dll生成带参数二维码 - CSDN博客

安装:

使用NuGet,搜索并安装ThoughtWorks.QRCode

备选方案:

一、QrCode.Net - Home

二、ZXing.Net - Home

 

蓝牙 - 32feet.NET

官网:

32feet.NET - Home

参考资料:

用C#在windows上操控电脑自带蓝牙(入道指南) - 春暖花开 - 博客频道 - CSDN.NET

Bluetooth - Jake Lin - 博客园

安装:

使用NuGet,搜索并安装32feet.NET

 

Thriple

WPF控件,方便地应用3D翻转效果

惋惜,经过控件Content、BackContent属性设置的界面元素,会被拉伸而改变大小,弃用

官网:

Thriple - Home

参考资料:

Rotating WPF Content in 3D Space - CodeProject

安装:

手动引用Thriple.dll

 

FluidKit

WPF特效控件库,其中的TransitionPresenter控件,能够用于3D翻转

官网:

FluidKit - Home

安装:

使用NuGet,搜索并安装FluidKit

 

LoadingIndicators.WPF

WPF控件库,8种等待加载效果

官网:

GitHub - 100GPing100/LoadingIndicators.WPF: A collection of loading indicators for WPF.

安装:

使用Nuget,搜索并安装LoadingIndicators.WPF

 

MahApps.Metro

WPF控件库,Metro风格

官网:

MahApps.Metro Documentation

GitHub - MahApps/MahApps.Metro: A toolkit for creating Metro / Modern UI styled WPF apps.

安装:

使用Nuget,搜索并安装MahApps.Metro

 

GIF - WpfAnimatedGif

WPF未提供显示GIF动态图片的控件。

若是使用WindowsFormsHost控件加载WindowsForms的PictureBox控件,能够显示GIF,但存在设置WPF窗体透明度的问题。

所以使用Nuget搜索“gif”,找到该项目。

官网:

GitHub - XamlAnimatedGif/WpfAnimatedGif: A simple library to display animated GIF images in WPF, usable in XAML or in code.

安装:

使用Nuget,搜索并安装WpfAnimatedGif

有关GIF的其余参考资料:

[WPF疑难]在WPF中显示动态GIF - 周银辉 - 博客园(使用该类库显示有些GIF,会有快速鬼畜播放的问题)

【2012.12.18更新】WPF支持GIF的各类方法 - CSDN博客

【续】WPF支持GIF的各类方法 - CSDN博客

ImageAnimator.Animate 方法 (System.Drawing)

 

日志 - NLog

官网:

NLog/NLog: NLog - Advanced and Structured Logging for Various .NET Platforms

参考资料:

Tutorial · NLog/NLog Wiki

一个简单好用的日志框架NLog - 天方 - 博客园

安装:

使用Nuget,搜索并安装NLog.Config

 

托盘 - NotifyIcon.Wpf

官网:

hardcodet.net » WPF NotifyIcon

参考资料:

WPF NotifyIcon - CodeProject

安装:

使用Nuget,搜索并安装Hardcodet.NotifyIcon.Wpf

相关文章
相关标签/搜索