C:\Jenkins\workspace\someproject>OpenCover.Console.Exe -target:"C:\program files\dotnet\dotnet.exe" -targetargs:"test \"src\SomeProject.Tests\SomeProject.Tests.csproj\" --configuration Debug --no-build" -output:"src\TestResults\SomeProject.Tests.coveragexml" -oldstyle -register:user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU GENERAL PUBLIC LICENSE | |
Version 3, 29 June 2007 | |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
Everyone is permitted to copy and distribute verbatim copies | |
of this license document, but changing it is not allowed. | |
Preamble | |
The GNU General Public License is a free, copyleft license for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ListExample | |
{ | |
using System.Collections.Generic; | |
public class Program | |
{ | |
private static readonly List<Animal> AnimalsToCheck = new List<Animal> | |
{ | |
new Animal { Eater = Eater.Carnivore, Format = 1 }, | |
new Animal { Eater = Eater.Herbivore, Format = 3 } |
- Install Java.
- Install Postgres.
- Create folder (e.g.
C:\Thingsboard
) --> Not underC:\Programm Files
orC:\Programm Files (x86)
as this will not work due to spaces in the path name. - Download Thingsboard as zip (See https://thingsboard.io/docs/user-guide/install/windows/) and unzip it under the folder from 3.
- Adjust the file
thingsboard.yml
in theconf
folder (Comment out HSQLDB DAO Configuration, Uncomment PostgreSQL DAO Configuration and adjust username and password (Host too, if needed). - Create the database
thingsboard
via pgAdmin or the command line in Postgres (Or rename it to something else and adjust the host parameter configuration, too). - Install Thingsboard using
.\install.bat
(Powershell in admin mode needed). - Start service with
net start thingsboard
.
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
- Badges are made with Shields.io.
- This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.
- 🇫🇷 Cette liste en français
- 🇨🇳🇹🇼 这个中文名单
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Does a check if topics match a certain topic filter. | |
/// </summary> | |
/// <param name="allowedTopic">The allowed topic.</param> | |
/// <param name="topic">The topic.</param> | |
/// <returns><c>true</c> if the topic is valid, <c>false</c> if not.</returns> | |
public static bool TopicMatch(string allowedTopic, string topic) | |
{ | |
if (string.IsNullOrWhiteSpace(allowedTopic) || string.IsNullOrWhiteSpace(topic)) | |
{ |
MQTTnet可以说是.Net 开发者的福音,在众多MQTT开源项目中,也有.Net的一份子。感谢 Christian!当发现这个开源项目时,我非常有兴趣。于是我开始了一个实验的项目。我并不是一个软件开发高手,项目代码写得很糟糕。所以并没有开源分享。以下我简单介绍关键代码的实现。同时也提出我遇到的问题,我们来共同学习吧!
创建一个设备信息表:Devices.cs
public class Devices
{
[Key]
public int Id { get; set; }
[Display(Name = "Tid")]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Example.Application | |
{ | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Mvc.Razor; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sync | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
sudo sed -i 's/jessie/buster/g' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
sudo sync | |
#sudo reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<!-- | |
Microsoft ResX Schema | |
Version 2.0 | |
The primary goals of this format is to allow a simple XML format | |
that is mostly human readable. The generation and parsing of the | |
various data types are done through the TypeConverter classes |