Compare commits
8
Commits
b4e17972b9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f3f3a7b89 | ||
|
|
cc579102cb | ||
|
|
e3d37988c9 | ||
|
|
61f26e69af | ||
|
|
528dcabf59 | ||
|
|
baed3c9e08 | ||
|
|
edb3069bb0 | ||
|
|
a5249f8fac |
+188
@@ -0,0 +1,188 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 1.6.2 - 2022-01-30 - ProgrammLogger improved
|
||||||
|
### New Features
|
||||||
|
* ProgrammLogger can now have a path while init, so not need to move the file
|
||||||
|
* Make it possible that two instances can use the same logfile
|
||||||
|
* IniReader GetValue can now have a default that returns if no setting is found
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Codingstyles
|
||||||
|
|
||||||
|
## 1.6.1 - 2022-01-20 - ProgrammLogger Fixed
|
||||||
|
### New Features
|
||||||
|
### Bugfixes
|
||||||
|
* Unhandled exception. System.IO.IOException: The file '/var/log/zwaybot/debug.log' already exists.
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.6.0 - 2022-01-09 - HttpEndpoint added
|
||||||
|
### New Features
|
||||||
|
* Add HttpEndpoint
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Change Readme that its link to the normal repo
|
||||||
|
* Codingstyles
|
||||||
|
* Fixing history
|
||||||
|
|
||||||
|
## 1.5.0 - 2021-04-10 - Add GetEvent so you can call events by string; Add OwnSingeton class
|
||||||
|
### New Features
|
||||||
|
* More allowed Chars for Chapters in inifile
|
||||||
|
* Add Contribution, Licence and readme
|
||||||
|
* Adding netcore
|
||||||
|
* Add changelog
|
||||||
|
* Filedhelper to helpter
|
||||||
|
* CmdArgs improvements
|
||||||
|
* Make netcore to default
|
||||||
|
* Add OwnSingleton
|
||||||
|
### Bugfixes
|
||||||
|
* WriteLine in Programmlogger sometimes make nonesense
|
||||||
|
* Writeline event are wrong
|
||||||
|
### Changes
|
||||||
|
* Remove the binary files
|
||||||
|
* Move all Classes to subfolder
|
||||||
|
* Codingstyles
|
||||||
|
|
||||||
|
## 1.4.0 - 2018-11-27 - Add Helper to Utils
|
||||||
|
### New Features
|
||||||
|
* Add Helper
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.1.3 - 2018-10-02 - Improve CmdArgs
|
||||||
|
### New Features
|
||||||
|
* CmdArgs now throw extensions if there is something wrong
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.1.2 - 2018-09-11 - Tiny Codingstyles
|
||||||
|
### New Features
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Codingstyles
|
||||||
|
|
||||||
|
## 1.1.1 - 2018-05-29 - ProgrammLogger neets to cleanup
|
||||||
|
### New Features
|
||||||
|
* Delete the Mess behind
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.1.0 - 2018-05-15 - ProgrammLogger
|
||||||
|
### New Features
|
||||||
|
* Add Programmlogger
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Codingstyles
|
||||||
|
|
||||||
|
## 1.0.7.0 - 2018-05-08 - Yet another IniReader improvemnt round again
|
||||||
|
### New Features
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Move searchpath to its own function
|
||||||
|
|
||||||
|
## 1.0.6.0 - 2017-12-22 - Yet another IniReader improvemnt round
|
||||||
|
### New Features
|
||||||
|
* Posibillity to add complete sections to an ini file
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.5.2 - 2017-09-26 - And Improve IniReader again
|
||||||
|
### New Features
|
||||||
|
* IniReader returns the Sections with or without Brackets now
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.5.1 - 2017-09-24 - Improve IniReader again
|
||||||
|
### New Features
|
||||||
|
### Bugfixes
|
||||||
|
* IniReader now supports umlaute
|
||||||
|
* IniReader matches with Brackets and without
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.5.0 - 2017-08-09 - Improve IniReader
|
||||||
|
### New Features
|
||||||
|
* IniReader can now return a whole segemt
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.4.1 - 2017-08-08 - Cleanup OwnView
|
||||||
|
### New Features
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* remove Init from OwnView
|
||||||
|
|
||||||
|
## 1.0.4.0 - 2017-04-30 - More Updater
|
||||||
|
### New Features
|
||||||
|
* continue Development of Updater
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.3.2 - 2017-04-26 - Next Updater
|
||||||
|
### New Features
|
||||||
|
* continue Development of Updater
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.3.1 - 2017-04-25 - EventArgsHelper
|
||||||
|
### New Features
|
||||||
|
* Add EventArgsHelper
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Codingstyles
|
||||||
|
* Moves LogEventArgs to EventArgsHelper
|
||||||
|
* Moves UpdaterEventArgs to EventArgsHelper
|
||||||
|
|
||||||
|
## 1.0.2.6 - 2017-04-24 - Better Updater
|
||||||
|
### New Features
|
||||||
|
* Add Updater
|
||||||
|
* Add Disposable Interface
|
||||||
|
* Using LogEventArgs now for Logging
|
||||||
|
* Make UpdaterEventArgs as Child of EventArgs
|
||||||
|
* Updater now using Ownobject as Parent
|
||||||
|
* Add VersionsInfo to Updater
|
||||||
|
* Updater spawns a Background Task to Check for Updates
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.2.5 - 2017-04-19 - Logging in OwnObject
|
||||||
|
### New Features
|
||||||
|
* Add Logging to OwnObject
|
||||||
|
### Bugfixes
|
||||||
|
* Avoid nullpointer exception in FileMutex
|
||||||
|
### Changes
|
||||||
|
* Codingstyles
|
||||||
|
|
||||||
|
## 1.0.2.3 - 2017-04-16 - OwnModel better
|
||||||
|
### New Features
|
||||||
|
* Add Remove observer on OwnModel
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Codingstyles
|
||||||
|
|
||||||
|
## 1.0.2.2 - 2017-03-09 - Make it nice
|
||||||
|
### New Features
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Codingstyles
|
||||||
|
|
||||||
|
## 1.0.2.1 - 2017-03-09 - Filemutex
|
||||||
|
### New Features
|
||||||
|
* Add Filemutex
|
||||||
|
### Bugfixes
|
||||||
|
* Filelogger backet on wrong pos
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.0.1 - 2016-12-03 - Filelogger improvements
|
||||||
|
### New Features
|
||||||
|
* Check Directory and if not exist add it
|
||||||
|
* Now logs with timestamp
|
||||||
|
* Can select logdir
|
||||||
|
* Add Abstract dispose to OwnController
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
## 1.0.0.0 - 2015-11-16 - Init
|
||||||
|
### New Features
|
||||||
|
* Add CmdArgs, FileLogger, IniReader, OwnController, OwnModel, OwnObject, OwnView,
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
# BlubbFish.Utils (Utils)
|
# BlubbFish.Utils (Utils)
|
||||||
Library containing helpfull utils
|
Library containing helpfull utils
|
||||||
|
|
||||||
|
Maybe you find this Repo on Github. This is a mirror from [here](https://git.blubbfish.net/vs_utils/Utils).
|
||||||
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.29215.179
|
VisualStudioVersion = 16.0.29215.179
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utils", "Utils\Utils_Core.csproj", "{A289C67C-BC49-46A0-8657-B444C605079E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utils", "Utils\Utils-4.7.1.csproj", "{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -11,15 +11,12 @@ Global
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{A289C67C-BC49-46A0-8657-B444C605079E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{A289C67C-BC49-46A0-8657-B444C605079E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{A289C67C-BC49-46A0-8657-B444C605079E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{A289C67C-BC49-46A0-8657-B444C605079E}.Release|Any CPU.Build.0 = Release|Any CPU
|
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {A7224DC4-69F1-4273-BE78-3D9DC80A28C5}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
EndGlobal
|
||||||
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.29215.179
|
VisualStudioVersion = 16.0.29215.179
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utils", "Utils\Utils.csproj", "{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utils", "Utils\Utils.csproj", "{A289C67C-BC49-46A0-8657-B444C605079E}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -11,12 +11,15 @@ Global
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{A289C67C-BC49-46A0-8657-B444C605079E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{A289C67C-BC49-46A0-8657-B444C605079E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{A289C67C-BC49-46A0-8657-B444C605079E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}.Release|Any CPU.Build.0 = Release|Any CPU
|
{A289C67C-BC49-46A0-8657-B444C605079E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {A7224DC4-69F1-4273-BE78-3D9DC80A28C5}
|
||||||
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|||||||
+21
-4
@@ -14,19 +14,25 @@ namespace BlubbFish.Utils
|
|||||||
#region Classes
|
#region Classes
|
||||||
public struct VaildArguments
|
public struct VaildArguments
|
||||||
{
|
{
|
||||||
public VaildArguments(ArgLength length, Boolean required)
|
public VaildArguments(ArgLength length, Boolean required, String @default = "", String description = "")
|
||||||
{
|
{
|
||||||
this.Required = required;
|
this.Required = required;
|
||||||
this.Length = length;
|
this.Length = length;
|
||||||
|
this.Description = description;
|
||||||
|
this.@Default = @default;
|
||||||
}
|
}
|
||||||
public VaildArguments(ArgLength length)
|
public VaildArguments(ArgLength length, String @default = "", String description = "")
|
||||||
{
|
{
|
||||||
this.Required = false;
|
this.Required = false;
|
||||||
this.Length = length;
|
this.Length = length;
|
||||||
|
this.Description = description;
|
||||||
|
this.@Default = @default;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArgLength Length { get; private set; }
|
public ArgLength Length { get; private set; }
|
||||||
public Boolean Required { get; private set; }
|
public Boolean Required { get; private set; }
|
||||||
|
public String Description { get; private set; }
|
||||||
|
public String Default { get; private set; }
|
||||||
}
|
}
|
||||||
private struct ArgTouple
|
private struct ArgTouple
|
||||||
{
|
{
|
||||||
@@ -107,6 +113,11 @@ namespace BlubbFish.Utils
|
|||||||
this.argList.Add(arg);
|
this.argList.Add(arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
foreach(KeyValuePair<String, VaildArguments> item in this.argsPosible) {
|
||||||
|
if(!this.HasArgumentType(item.Key) && item.Value.Length == ArgLength.Touple && item.Value.Default != "") {
|
||||||
|
this.argList.Add(new ArgTouple(item.Key, item.Value.Default));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -162,7 +173,10 @@ namespace BlubbFish.Utils
|
|||||||
String opt = "";
|
String opt = "";
|
||||||
foreach (KeyValuePair<String, VaildArguments> item in this.argsPosible) {
|
foreach (KeyValuePair<String, VaildArguments> item in this.argsPosible) {
|
||||||
if (item.Value.Required) {
|
if (item.Value.Required) {
|
||||||
req += item.Key + " " + ((item.Value.Length == ArgLength.Touple) ? " [data]\n" : "\n");
|
req += item.Key + " " + ((item.Value.Length == ArgLength.Touple) ? (item.Value.Default != "" ? " " + item.Value.Default + "\n" : " [data]\n") : "\n");
|
||||||
|
if(item.Value.Description != "") {
|
||||||
|
req += "\t" + item.Value.Description + "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (req != "") {
|
if (req != "") {
|
||||||
@@ -170,7 +184,10 @@ namespace BlubbFish.Utils
|
|||||||
}
|
}
|
||||||
foreach (KeyValuePair<String, VaildArguments> item in this.argsPosible) {
|
foreach (KeyValuePair<String, VaildArguments> item in this.argsPosible) {
|
||||||
if (!item.Value.Required) {
|
if (!item.Value.Required) {
|
||||||
opt += item.Key + " " + ((item.Value.Length == ArgLength.Touple) ? " [data]\n" : "\n");
|
opt += item.Key + " " + ((item.Value.Length == ArgLength.Touple) ? (item.Value.Default != "" ? " " + item.Value.Default + "\n" : " [data]\n") : "\n");
|
||||||
|
if (item.Value.Description != "") {
|
||||||
|
opt += "\t" + item.Value.Description + "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (opt != "") {
|
if (opt != "") {
|
||||||
|
|||||||
+1
-1
@@ -43,7 +43,7 @@ namespace BlubbFish.Utils
|
|||||||
_ = Directory.CreateDirectory(v);
|
_ = Directory.CreateDirectory(v);
|
||||||
logDir = v;
|
logDir = v;
|
||||||
}
|
}
|
||||||
if (logDir.Substring(logDir.Length - 1) != Path.DirectorySeparatorChar.ToString()) {
|
if (logDir[^1..] != Path.DirectorySeparatorChar.ToString()) {
|
||||||
logDir += Path.DirectorySeparatorChar;
|
logDir += Path.DirectorySeparatorChar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-2
@@ -23,7 +23,9 @@ namespace BlubbFish.Utils {
|
|||||||
public static void SetProperty(this Object o, String name, String value) {
|
public static void SetProperty(this Object o, String name, String value) {
|
||||||
PropertyInfo prop = o.GetType().GetProperty(name);
|
PropertyInfo prop = o.GetType().GetProperty(name);
|
||||||
if (prop.CanWrite) {
|
if (prop.CanWrite) {
|
||||||
if (prop.PropertyType == typeof(Boolean) && Boolean.TryParse(value, out Boolean vb)) {
|
if(prop.PropertyType == typeof(String)) {
|
||||||
|
prop.SetValue(o, value);
|
||||||
|
} else if (prop.PropertyType == typeof(Boolean) && Boolean.TryParse(value, out Boolean vb)) {
|
||||||
prop.SetValue(o, vb);
|
prop.SetValue(o, vb);
|
||||||
} else if (prop.PropertyType == typeof(Byte) && Byte.TryParse(value, out Byte v8)) {
|
} else if (prop.PropertyType == typeof(Byte) && Byte.TryParse(value, out Byte v8)) {
|
||||||
prop.SetValue(o, v8);
|
prop.SetValue(o, v8);
|
||||||
@@ -49,10 +51,16 @@ namespace BlubbFish.Utils {
|
|||||||
FieldInfo field = o.GetType().GetField(name);
|
FieldInfo field = o.GetType().GetField(name);
|
||||||
return field.IsPublic ? field.GetValue(o) : null;
|
return field.IsPublic ? field.GetValue(o) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Object GetField(this Type o, String name) {
|
public static Object GetField(this Type o, String name) {
|
||||||
FieldInfo field = o.GetField(name);
|
FieldInfo field = o.GetField(name);
|
||||||
return field.IsPublic ? field.GetValue(o) : null;
|
return field.IsPublic ? field.GetValue(o) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static T GetEvent<T>(this Object o, String name) {
|
||||||
|
FieldInfo field = o.GetType().GetField(name, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||||
|
return (T)field?.GetValue(o);
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region InterfaceHelper
|
#region InterfaceHelper
|
||||||
@@ -75,7 +83,7 @@ namespace BlubbFish.Utils {
|
|||||||
return attributes != null && attributes.Length > 0 ? attributes[0].Description : value.ToString();
|
return attributes != null && attributes.Length > 0 ? attributes[0].Description : value.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String ToUpperLower(this String s) => s.Length == 0 ? "" : s.Length == 1 ? s.ToUpper() : s[0].ToString().ToUpper() + s.Substring(1).ToLower();
|
public static String ToUpperLower(this String s) => s.Length == 0 ? "" : s.Length == 1 ? s.ToUpper() : s[0].ToString().ToUpper() + s[1..].ToLower();
|
||||||
|
|
||||||
public static void WriteError(String text) {
|
public static void WriteError(String text) {
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
Console.ForegroundColor = ConsoleColor.Red;
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
using System;
|
||||||
|
using System.Net;
|
||||||
|
using System.Net.Http;
|
||||||
|
using System.Net.Http.Headers;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BlubbFish.Utils {
|
||||||
|
public class HttpEndpoint {
|
||||||
|
private readonly HttpClient client = new HttpClient();
|
||||||
|
private readonly String server = "";
|
||||||
|
|
||||||
|
public enum RequestMethod {
|
||||||
|
GET,
|
||||||
|
POST,
|
||||||
|
PUT
|
||||||
|
}
|
||||||
|
|
||||||
|
public HttpEndpoint(String server, String auth = null) {
|
||||||
|
this.server = server;
|
||||||
|
if(auth != null) {
|
||||||
|
this.client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(auth);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public HttpEndpoint(String server, (String scheme, String parameter) auth) {
|
||||||
|
this.server = server;
|
||||||
|
this.client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(auth.scheme, auth.parameter);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<String> RequestString(String address, String json = "", Boolean withoutput = true, RequestMethod method = RequestMethod.GET) {
|
||||||
|
String ret = null;
|
||||||
|
try {
|
||||||
|
HttpResponseMessage response = null;
|
||||||
|
if(method == RequestMethod.POST || method == RequestMethod.PUT) {
|
||||||
|
HttpContent content = new StringContent(json);
|
||||||
|
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
|
||||||
|
//content.Headers.Add("Content-Type", "application/json");
|
||||||
|
if(method == RequestMethod.POST) {
|
||||||
|
response = await this.client.PostAsync(this.server + address, content);
|
||||||
|
} else if(method == RequestMethod.PUT) {
|
||||||
|
response = await this.client.PutAsync(this.server + address, content);
|
||||||
|
}
|
||||||
|
content.Dispose();
|
||||||
|
} else if(method == RequestMethod.GET) {
|
||||||
|
response = await this.client.GetAsync(this.server + address);
|
||||||
|
}
|
||||||
|
if(!response.IsSuccessStatusCode) {
|
||||||
|
throw new Exception(response.StatusCode + ": " + response.ReasonPhrase);
|
||||||
|
}
|
||||||
|
if(withoutput && response != null) {
|
||||||
|
ret = await response.Content.ReadAsStringAsync();
|
||||||
|
}
|
||||||
|
} catch(Exception e) {
|
||||||
|
throw new WebException(String.Format("Error while opening resource: \"{0}\" Method {1} Data {2} Fehler {3}", this.server + address, method, json, e.Message));
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
-10
@@ -31,8 +31,7 @@ namespace BlubbFish.Utils {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private InIReader(String filename)
|
private InIReader(String filename) {
|
||||||
{
|
|
||||||
foreach (String path in search_path) {
|
foreach (String path in search_path) {
|
||||||
if (File.Exists(path + Path.DirectorySeparatorChar + filename)) {
|
if (File.Exists(path + Path.DirectorySeparatorChar + filename)) {
|
||||||
this.filename = path + Path.DirectorySeparatorChar + filename;
|
this.filename = path + Path.DirectorySeparatorChar + filename;
|
||||||
@@ -60,8 +59,7 @@ namespace BlubbFish.Utils {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filename">Dateiname</param>
|
/// <param name="filename">Dateiname</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static InIReader GetInstance(String filename)
|
public static InIReader GetInstance(String filename) {
|
||||||
{
|
|
||||||
if (!instances.Keys.Contains(filename)) {
|
if (!instances.Keys.Contains(filename)) {
|
||||||
instances.Add(filename, new InIReader(filename));
|
instances.Add(filename, new InIReader(filename));
|
||||||
}
|
}
|
||||||
@@ -70,8 +68,7 @@ namespace BlubbFish.Utils {
|
|||||||
|
|
||||||
private void ReadAgain(Object sender, EventArgs e) => this.LoadFile();
|
private void ReadAgain(Object sender, EventArgs e) => this.LoadFile();
|
||||||
|
|
||||||
private void LoadFile()
|
private void LoadFile() {
|
||||||
{
|
|
||||||
this.inifile = new Dictionary<String, Dictionary<String, String>>();
|
this.inifile = new Dictionary<String, Dictionary<String, String>>();
|
||||||
StreamReader file = new StreamReader(this.filename);
|
StreamReader file = new StreamReader(this.filename);
|
||||||
List<String> buf = new List<String>();
|
List<String> buf = new List<String>();
|
||||||
@@ -96,7 +93,7 @@ namespace BlubbFish.Utils {
|
|||||||
} else {
|
} else {
|
||||||
if (line != "" && cap != "") {
|
if (line != "" && cap != "") {
|
||||||
String key = line.Substring(0, line.IndexOf('='));
|
String key = line.Substring(0, line.IndexOf('='));
|
||||||
String value = line.Substring(line.IndexOf('=') + 1);
|
String value = line[(line.IndexOf('=') + 1)..];
|
||||||
sub.Add(key, value);
|
sub.Add(key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,12 +149,11 @@ namespace BlubbFish.Utils {
|
|||||||
/// <param name="section">Name der Sektion</param>
|
/// <param name="section">Name der Sektion</param>
|
||||||
/// <param name="key">Name des Wertes</param>
|
/// <param name="key">Name des Wertes</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public String GetValue(String section, String key)
|
public String GetValue(String section, String key, String @default = null) {
|
||||||
{
|
|
||||||
if (!section.StartsWith("[")) {
|
if (!section.StartsWith("[")) {
|
||||||
section = "[" + section + "]";
|
section = "[" + section + "]";
|
||||||
}
|
}
|
||||||
return this.inifile.Keys.Contains(section) && this.inifile[section].Keys.Contains(key) ? this.inifile[section][key] : null;
|
return this.inifile.Keys.Contains(section) && this.inifile[section].Keys.Contains(key) ? this.inifile[section][key] : @default;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace BlubbFish.Utils {
|
||||||
|
public abstract class OwnSingeton<T> where T : class {
|
||||||
|
private static readonly Lazy<T> _instance = new Lazy<T>(() => CreateInstanceOfT());
|
||||||
|
public static T Instance => _instance.Value;
|
||||||
|
private static T CreateInstanceOfT() => Activator.CreateInstance(typeof(T), true) as T;
|
||||||
|
}
|
||||||
|
}
|
||||||
+31
-6
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BlubbFish.Utils {
|
namespace BlubbFish.Utils {
|
||||||
@@ -9,8 +10,8 @@ namespace BlubbFish.Utils {
|
|||||||
private ConsoleWriter errout;
|
private ConsoleWriter errout;
|
||||||
private String loggerfile;
|
private String loggerfile;
|
||||||
|
|
||||||
public ProgramLogger() {
|
public ProgramLogger(String path = null) {
|
||||||
this.loggerfile = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "output.log";
|
this.loggerfile = path ?? Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "output.log";
|
||||||
this.Init(this.loggerfile);
|
this.Init(this.loggerfile);
|
||||||
this.AttachToFw();
|
this.AttachToFw();
|
||||||
this.SetOutputs();
|
this.SetOutputs();
|
||||||
@@ -26,7 +27,7 @@ namespace BlubbFish.Utils {
|
|||||||
Console.Error.WriteLine("Cannot write to " + file);
|
Console.Error.WriteLine("Cannot write to " + file);
|
||||||
throw new ArgumentException("Cannot write to " + file);
|
throw new ArgumentException("Cannot write to " + file);
|
||||||
}
|
}
|
||||||
this.fw = new FileWriter(file);
|
this.fw = new FileWriter(FileWriter.GetFileSteam(file, false));
|
||||||
this.stdout = new ConsoleWriter(Console.Out, ConsoleWriterEventArgs.ConsoleType.Info);
|
this.stdout = new ConsoleWriter(Console.Out, ConsoleWriterEventArgs.ConsoleType.Info);
|
||||||
this.errout = new ConsoleWriter(Console.Error, ConsoleWriterEventArgs.ConsoleType.Error);
|
this.errout = new ConsoleWriter(Console.Error, ConsoleWriterEventArgs.ConsoleType.Error);
|
||||||
}
|
}
|
||||||
@@ -53,15 +54,37 @@ namespace BlubbFish.Utils {
|
|||||||
this.DisattachToFw();
|
this.DisattachToFw();
|
||||||
this.fw.Close();
|
this.fw.Close();
|
||||||
if(new FileInfo(this.loggerfile).Length > 0) {
|
if(new FileInfo(this.loggerfile).Length > 0) {
|
||||||
File.Move(this.loggerfile, file);
|
if(File.Exists(file)) {
|
||||||
|
this.FileCopy(this.loggerfile, file);
|
||||||
|
File.Delete(this.loggerfile);
|
||||||
|
} else {
|
||||||
|
File.Move(this.loggerfile, file);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
File.Delete(this.loggerfile);
|
File.Delete(this.loggerfile);
|
||||||
}
|
}
|
||||||
this.loggerfile = file;
|
this.loggerfile = file;
|
||||||
this.fw = new FileWriter(this.loggerfile);
|
this.fw = new FileWriter(FileWriter.GetFileSteam(this.loggerfile, true));
|
||||||
this.AttachToFw();
|
this.AttachToFw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose() {
|
||||||
|
this.DisattachToFw();
|
||||||
|
this.fw.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FileCopy(String source, String target) {
|
||||||
|
using FileStream fread = new FileStream(source, FileMode.Open);
|
||||||
|
using FileStream fwrite = new FileStream(target, FileMode.Create);
|
||||||
|
using TextReader reader = new StreamReader(fread);
|
||||||
|
using TextWriter writer = new StreamWriter(fwrite);
|
||||||
|
|
||||||
|
writer.Write(reader.ReadToEnd());
|
||||||
|
writer.Flush();
|
||||||
|
writer.Close();
|
||||||
|
reader.Close();
|
||||||
|
}
|
||||||
|
|
||||||
private void DisattachToFw() {
|
private void DisattachToFw() {
|
||||||
this.stdout.WriteEvent -= this.fw.Write;
|
this.stdout.WriteEvent -= this.fw.Write;
|
||||||
this.stdout.WriteLineEvent -= this.fw.WriteLine;
|
this.stdout.WriteLineEvent -= this.fw.WriteLine;
|
||||||
@@ -78,9 +101,11 @@ namespace BlubbFish.Utils {
|
|||||||
|
|
||||||
internal class FileWriter : StreamWriter {
|
internal class FileWriter : StreamWriter {
|
||||||
private Boolean newline = true;
|
private Boolean newline = true;
|
||||||
public FileWriter(String path) : base(path) {
|
public FileWriter(FileStream fs) : base(fs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static FileStream GetFileSteam(String path, Boolean append) => File.Open(path, append ? FileMode.Append : FileMode.Create, FileAccess.Write, RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? FileShare.Write : FileShare.ReadWrite);
|
||||||
|
|
||||||
public override Encoding Encoding => Encoding.UTF8;
|
public override Encoding Encoding => Encoding.UTF8;
|
||||||
public override Boolean AutoFlush { get => true; set => base.AutoFlush = value; }
|
public override Boolean AutoFlush { get => true; set => base.AutoFlush = value; }
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ using System.Runtime.InteropServices;
|
|||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("BlubbFish")]
|
[assembly: AssemblyCompany("BlubbFish")]
|
||||||
[assembly: AssemblyProduct("Utils")]
|
[assembly: AssemblyProduct("Utils")]
|
||||||
[assembly: AssemblyCopyright("Copyright © BlubbFish 2014 - 02.10.2018")]
|
[assembly: AssemblyCopyright("Copyright © BlubbFish 2014 - 10.04.2021")]
|
||||||
[assembly: AssemblyTrademark("BlubbFish")]
|
[assembly: AssemblyTrademark("BlubbFish")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
[assembly: NeutralResourcesLanguage("de-DE")]
|
[assembly: NeutralResourcesLanguage("de-DE")]
|
||||||
@@ -35,10 +35,11 @@ using System.Runtime.InteropServices;
|
|||||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||||
// übernehmen, indem Sie "*" eingeben:
|
// übernehmen, indem Sie "*" eingeben:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.4.0")]
|
[assembly: AssemblyVersion("1.5.0")]
|
||||||
[assembly: AssemblyFileVersion("1.4.0")]
|
[assembly: AssemblyFileVersion("1.5.0")]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 1.5.0 Add GetEvent so you can call events by string; Add OwnSingeton class
|
||||||
* 1.4.0 Add Helper to Utils
|
* 1.4.0 Add Helper to Utils
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>BlubbFish.Utils</RootNamespace>
|
||||||
|
<AssemblyName>Utils</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="CmdArgs.cs" />
|
||||||
|
<Compile Include="EventArgsHelper.cs" />
|
||||||
|
<Compile Include="FileLogger.cs" />
|
||||||
|
<Compile Include="FileMutex.cs" />
|
||||||
|
<Compile Include="Helper.cs" />
|
||||||
|
<Compile Include="InIReader.cs" />
|
||||||
|
<Compile Include="OwnController.cs" />
|
||||||
|
<Compile Include="OwnModel.cs" />
|
||||||
|
<Compile Include="OwnObject.cs" />
|
||||||
|
<Compile Include="OwnView.cs" />
|
||||||
|
<Compile Include="ProgramLogger.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="Updater.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="..\CHANGELOG.md" />
|
||||||
|
<Content Include="..\CONTRIBUTING.md" />
|
||||||
|
<Content Include="..\LICENSE" />
|
||||||
|
<Content Include="..\README.md" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
+52
-64
@@ -1,72 +1,60 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{FAC8CE64-BF13-4ECE-8097-AEB5DD060098}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>BlubbFish.Utils</RootNamespace>
|
|
||||||
<AssemblyName>Utils</AssemblyName>
|
<AssemblyName>Utils</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
|
<RootNamespace>BlubbFish.Utils</RootNamespace>
|
||||||
<FileAlignment>512</FileAlignment>
|
<Description>Provides useful classes for other projects</Description>
|
||||||
<TargetFrameworkProfile />
|
<Company>BlubbFish</Company>
|
||||||
</PropertyGroup>
|
<Authors>BlubbFish</Authors>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PackageId>Utils.BlubbFish</PackageId>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<Copyright>Copyright © BlubbFish 2014 - 30.01.2022</Copyright>
|
||||||
<DebugType>full</DebugType>
|
<Version>1.6.2</Version>
|
||||||
<Optimize>false</Optimize>
|
<NeutralLanguage>de-DE</NeutralLanguage>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<PackageProjectUrl>http://git.blubbfish.net/vs_utils/Utils</PackageProjectUrl>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<RepositoryUrl>http://git.blubbfish.net/vs_utils/Utils.git</RepositoryUrl>
|
||||||
<WarningLevel>4</WarningLevel>
|
<RepositoryType>git</RepositoryType>
|
||||||
</PropertyGroup>
|
<PackageReleaseNotes>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
1.6.2 - 2022-01-30 - ProgrammLogger improved
|
||||||
<DebugType>pdbonly</DebugType>
|
1.6.1 - 2022-01-20 - ProgrammLogger Fixed
|
||||||
<Optimize>true</Optimize>
|
1.6.0 - 2022-01-09 - HttpEndpoint added
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
1.5.0 - 2021-04-10 - Add GetEvent so you can call events by string; Add OwnSingeton class
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
1.4.0 - 2018-11-27 - Add Helper to Utils
|
||||||
<ErrorReport>prompt</ErrorReport>
|
1.1.3 - 2018-10-02 - Improve CmdArgs
|
||||||
<WarningLevel>4</WarningLevel>
|
1.1.2 - 2018-09-11 - Tiny Codingstyles
|
||||||
|
1.1.1 - 2018-05-29 - ProgrammLogger neets to cleanup
|
||||||
|
1.1.0 - 2018-05-15 - ProgrammLogger
|
||||||
|
1.0.7.0 - 2018-05-08 - Yet another IniReader improvemnt round again
|
||||||
|
1.0.6.0 - 2017-12-22 - Yet another IniReader improvemnt round
|
||||||
|
1.0.5.2 - 2017-09-26 - And Improve IniReader again
|
||||||
|
1.0.5.1 - 2017-09-24 - Improve IniReader again
|
||||||
|
1.0.5.0 - 2017-08-09 - Improve IniReader
|
||||||
|
1.0.4.1 - 2017-08-08 - Cleanup OwnView
|
||||||
|
1.0.4.0 - 2017-04-30 - More Updater
|
||||||
|
1.0.3.2 - 2017-04-26 - Next Updater
|
||||||
|
1.0.3.1 - 2017-04-25 - EventArgsHelper
|
||||||
|
1.0.2.6 - 2017-04-24 - Better Updater
|
||||||
|
1.0.2.5 - 2017-04-19 - Logging in OwnObject
|
||||||
|
1.0.2.3 - 2017-04-16 - OwnModel better
|
||||||
|
1.0.2.2 - 2017-03-09 - Make it nice
|
||||||
|
1.0.2.1 - 2017-03-09 - Filemutex
|
||||||
|
1.0.0.1 - 2016-12-03 - Filelogger improvements
|
||||||
|
1.0.0.0 - 2015-11-16 - Init
|
||||||
|
</PackageReleaseNotes>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Content Include="../CHANGELOG.md" />
|
||||||
<Reference Include="System.Core" />
|
<Content Include="../CONTRIBUTING.md" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Content Include="../LICENSE" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Content Include="../README.md" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="CmdArgs.cs" />
|
<None Include="..\LICENSE">
|
||||||
<Compile Include="EventArgsHelper.cs" />
|
<Pack>True</Pack>
|
||||||
<Compile Include="FileLogger.cs" />
|
<PackagePath></PackagePath>
|
||||||
<Compile Include="FileMutex.cs" />
|
</None>
|
||||||
<Compile Include="Helper.cs" />
|
|
||||||
<Compile Include="InIReader.cs" />
|
|
||||||
<Compile Include="OwnController.cs" />
|
|
||||||
<Compile Include="OwnModel.cs" />
|
|
||||||
<Compile Include="OwnObject.cs" />
|
|
||||||
<Compile Include="OwnView.cs" />
|
|
||||||
<Compile Include="ProgramLogger.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="Updater.cs" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="..\CHANGELOG.md" />
|
|
||||||
<Content Include="..\CONTRIBUTING.md" />
|
|
||||||
<Content Include="..\LICENSE" />
|
|
||||||
<Content Include="..\README.md" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
|
||||||
<AssemblyName>Utils</AssemblyName>
|
|
||||||
<RootNamespace>BlubbFish.Utils</RootNamespace>
|
|
||||||
<Description>Provides useful classes for other projects</Description>
|
|
||||||
<Company>BlubbFish</Company>
|
|
||||||
<Authors>BlubbFish</Authors>
|
|
||||||
<PackageId>Utils.BlubbFish</PackageId>
|
|
||||||
<Copyright>Copyright © BlubbFish 2014 - 02.10.2018</Copyright>
|
|
||||||
<AssemblyVersion>1.4.0</AssemblyVersion>
|
|
||||||
<FileVersion>1.4.0</FileVersion>
|
|
||||||
<NeutralLanguage>de-DE</NeutralLanguage>
|
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
|
||||||
<PackageProjectUrl>http://git.blubbfish.net/vs_utils/Utils</PackageProjectUrl>
|
|
||||||
<RepositoryUrl>http://git.blubbfish.net/vs_utils/Utils.git</RepositoryUrl>
|
|
||||||
<RepositoryType>git</RepositoryType>
|
|
||||||
<Version>1.4.0</Version>
|
|
||||||
<PackageReleaseNotes>1.4.0 Add Helper to Utils</PackageReleaseNotes>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="../CHANGELOG.md" />
|
|
||||||
<Content Include="../CONTRIBUTING.md" />
|
|
||||||
<Content Include="../LICENSE" />
|
|
||||||
<Content Include="../README.md" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="..\LICENSE">
|
|
||||||
<Pack>True</Pack>
|
|
||||||
<PackagePath></PackagePath>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
Reference in New Issue
Block a user