mirror of
https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities.git
synced 2026-09-04 00:56:24 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.31019.35
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stone_Red-C-Sharp-Utilities", "Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities.csproj", "{6765093D-4C7B-4E55-A46C-A4621287E91D}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{6765093D-4C7B-4E55-A46C-A4621287E91D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{6765093D-4C7B-4E55-A46C-A4621287E91D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{6765093D-4C7B-4E55-A46C-A4621287E91D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{6765093D-4C7B-4E55-A46C-A4621287E91D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {46AD57C6-62DC-4651-8680-FBB4EA4DA648}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netstandard2.1</TargetFramework>
|
||||||
|
<RootNamespace>Stone_Red_C_Sharp_Utilities</RootNamespace>
|
||||||
|
<Authors>Stone_Red</Authors>
|
||||||
|
<PackageTags>Console, Table, Print</PackageTags>
|
||||||
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
|
<Description>Adds useful console extentions.</Description>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<DocumentationFile>C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities.xml</DocumentationFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
<DocumentationFile>C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities.xml</DocumentationFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,137 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>Stone_Red-C-Sharp-Utilities</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="T:Stone_Red_Utilities.ArrListExtentions.TableStyle">
|
||||||
|
<summary>
|
||||||
|
Table Style
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.Default">
|
||||||
|
<summary>
|
||||||
|
The default representaion of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.Minimum">
|
||||||
|
<summary>
|
||||||
|
The minimal representation of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.Alternative">
|
||||||
|
<summary>
|
||||||
|
The alternative representaion of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.List">
|
||||||
|
<summary>
|
||||||
|
The list representaion of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.ArrListExtentions.ArrayListExt">
|
||||||
|
<summary>
|
||||||
|
<see cref="T:System.Array"/> and <see cref="T:System.Collections.Generic.List`1"/> Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ArrListExtentions.ArrayListExt.Print(System.Array,System.Char,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Prints items of array not
|
||||||
|
</summary>
|
||||||
|
<param name="array"></param>
|
||||||
|
<param name="delimiter"></param>
|
||||||
|
<param name="printToDebugConsole"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ArrListExtentions.ArrayListExt.Print``1(System.Collections.Generic.List{``0},System.Char,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Prints items of list
|
||||||
|
</summary>
|
||||||
|
<param name="list"></param>
|
||||||
|
<param name="delimiter"></param>
|
||||||
|
<param name="printToDebugConsole"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ArrListExtentions.ArrayListExt.PrintTable``1(``0[0:,0:],Stone_Red_Utilities.ArrListExtentions.TableStyle)">
|
||||||
|
<summary>
|
||||||
|
Creates and prints table from 2D array
|
||||||
|
</summary>
|
||||||
|
<typeparam name="T"></typeparam>
|
||||||
|
<param name="array"></param>
|
||||||
|
<param name="tableStyle"></param>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.BoolExtentions.BoolExt">
|
||||||
|
<summary>
|
||||||
|
<see cref="T:System.Boolean"/> Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.BoolExtentions.BoolExt.OneWayFalse(System.Boolean@,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Sets value to true if input is false. If input is true the value will not change.
|
||||||
|
</summary>
|
||||||
|
<param name="bol"></param>
|
||||||
|
<param name="bol1"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.BoolExtentions.BoolExt.OneWayTrue(System.Boolean@,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Sets value to true if input is true. If input is false the value will not change.
|
||||||
|
</summary>
|
||||||
|
<param name="bol"></param>
|
||||||
|
<param name="bol1"></param>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.ColorConsole.ConsoleExt">
|
||||||
|
<summary>
|
||||||
|
Console Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ColorConsole.ConsoleExt.Write(System.Object,System.ConsoleColor)">
|
||||||
|
<summary>
|
||||||
|
Writes the text representation of the specified object to the standard output stream.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="color"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ColorConsole.ConsoleExt.WriteLine(System.Object,System.ConsoleColor)">
|
||||||
|
<summary>
|
||||||
|
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="color"></param>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.StringExtentions.StringExt">
|
||||||
|
<summary>
|
||||||
|
<see cref="T:System.String"/> Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.EqualsIgnoreCase(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Determines whether this string and a specified <see cref="T:System.String"/> object have the same value regardless of upper and lower case. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="str"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.EqualsIgnoreSpaces(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Determines whether this string and a specified <see cref="T:System.String"/> object have the same value regardless of spaces. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="str"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.EqualsIgnoreSpacesAndCase(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Determines whether this string and a specified <see cref="T:System.String"/> object have the same value regardless of upper and lower case and spaces. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="str"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.ToFileName(System.String,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Removes all invalid chars from file name
|
||||||
|
</summary>
|
||||||
|
<param name="str"></param>
|
||||||
|
<param name="allowSpaces"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
@@ -0,0 +1,307 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Stone_Red_Utilities.ArrListExtentions
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Table Style
|
||||||
|
/// </summary>
|
||||||
|
public enum TableStyle
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The default representaion of the table
|
||||||
|
/// </summary>
|
||||||
|
Default,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The minimal representation of the table
|
||||||
|
/// </summary>
|
||||||
|
Minimum,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The alternative representaion of the table
|
||||||
|
/// </summary>
|
||||||
|
Alternative,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The list representaion of the table
|
||||||
|
/// </summary>
|
||||||
|
List
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <see cref="Array"/> and <see cref="List{T}"/> Extentions
|
||||||
|
/// </summary>
|
||||||
|
public static class ArrayListExt
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Prints items of array not
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="array"></param>
|
||||||
|
/// <param name="delimiter"></param>
|
||||||
|
/// <param name="printToDebugConsole"></param>
|
||||||
|
public static void Print(this Array array, char delimiter = ',', bool printToDebugConsole = false)
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
string split = delimiter + (delimiter == '\n' ? string.Empty : " ");
|
||||||
|
foreach (var item in array)
|
||||||
|
{
|
||||||
|
if (item is Array arr)
|
||||||
|
{
|
||||||
|
arr.Print(delimiter, printToDebugConsole);
|
||||||
|
}
|
||||||
|
else if (printToDebugConsole)
|
||||||
|
{
|
||||||
|
Debug.Write(item.ToString() + (i < array.Length - 1 ? split : string.Empty));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.Write(item.ToString() + (i < array.Length - 1 ? split : string.Empty));
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Prints items of list
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="list"></param>
|
||||||
|
/// <param name="delimiter"></param>
|
||||||
|
/// <param name="printToDebugConsole"></param>
|
||||||
|
public static void Print<T>(this List<T> list, char delimiter = ',', bool printToDebugConsole = false)
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
string split = delimiter + (delimiter == '\n' ? string.Empty : " ");
|
||||||
|
foreach (var item in list)
|
||||||
|
{
|
||||||
|
if (item is Array arr)
|
||||||
|
{
|
||||||
|
arr.Print(delimiter, printToDebugConsole);
|
||||||
|
}
|
||||||
|
else if (item is List<T> ls)
|
||||||
|
{
|
||||||
|
ls.Print(delimiter, printToDebugConsole);
|
||||||
|
}
|
||||||
|
else if (printToDebugConsole)
|
||||||
|
{
|
||||||
|
Debug.Write(item.ToString() + (i < list.Count - 1 ? split : string.Empty));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.Write(item.ToString() + (i < list.Count - 1 ? split : string.Empty));
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Creates and prints table from 2D array
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
/// <param name="array"></param>
|
||||||
|
/// <param name="tableStyle"></param>
|
||||||
|
public static void PrintTable<T>(this T[,] array, TableStyle tableStyle = TableStyle.Default)
|
||||||
|
{
|
||||||
|
int[] itemLength = new int[array.GetLength(1)];
|
||||||
|
char verticalChar = tableStyle == TableStyle.Minimum ? ' ' : '|';
|
||||||
|
|
||||||
|
for (int i = 0; i < array.GetLength(0); i++)
|
||||||
|
{
|
||||||
|
for (int j = 0; j < array.GetLength(1); j++)
|
||||||
|
{
|
||||||
|
itemLength[j] = Math.Max(array[i, j].ToString().Length + 2, itemLength[j]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
PrintLine(tableStyle, itemLength, array.GetLength(1), tableStyle == TableStyle.List);
|
||||||
|
for (int i = 0; i < array.GetLength(0); i++)
|
||||||
|
{
|
||||||
|
for (int j = 0; j < array.GetLength(1); j++)
|
||||||
|
{
|
||||||
|
string item = " " + array[i, j].ToString() + " ";
|
||||||
|
item = verticalChar + item + new string(' ', itemLength[j] - item.Length);
|
||||||
|
Console.Write(tableStyle == TableStyle.Minimum && j == 0 ? item.TrimStart() : item);
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.Write(verticalChar);
|
||||||
|
|
||||||
|
PrintLine(tableStyle, itemLength, array.GetLength(1), i == 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void PrintLine(TableStyle tableStyle, int[] itemLength, int itemCount, bool forcePrint = false)
|
||||||
|
{
|
||||||
|
char intersect = tableStyle == TableStyle.Alternative || tableStyle == TableStyle.List ? '+' : '-';
|
||||||
|
|
||||||
|
Console.WriteLine();
|
||||||
|
if (tableStyle == TableStyle.Minimum || tableStyle == TableStyle.List)
|
||||||
|
{
|
||||||
|
if (tableStyle == TableStyle.List && forcePrint)
|
||||||
|
Console.Write(intersect);
|
||||||
|
if (!forcePrint)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.Write(intersect);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int k = 0; k < itemCount; k++)
|
||||||
|
{
|
||||||
|
Console.Write(new string('-', itemLength[k] - (tableStyle == TableStyle.Minimum ? 1 : 0)) + intersect);
|
||||||
|
}
|
||||||
|
Console.WriteLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Stone_Red_Utilities.BoolExtentions
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <see cref="bool"/> Extentions
|
||||||
|
/// </summary>
|
||||||
|
public static class BoolExt
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Sets value to true if input is false. If input is true the value will not change.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="bol"></param>
|
||||||
|
/// <param name="bol1"></param>
|
||||||
|
public static void OneWayFalse(this ref bool bol, bool bol1)
|
||||||
|
{
|
||||||
|
if (bol == true && !bol1)
|
||||||
|
bol = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sets value to true if input is true. If input is false the value will not change.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="bol"></param>
|
||||||
|
/// <param name="bol1"></param>
|
||||||
|
public static void OneWayTrue(this ref bool bol, bool bol1)
|
||||||
|
{
|
||||||
|
if (bol == false && bol1)
|
||||||
|
bol = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Stone_Red_Utilities.ColorConsole
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Console Extentions
|
||||||
|
/// </summary>
|
||||||
|
public static class ConsoleExt
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Writes the text representation of the specified object to the standard output stream.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
/// <param name="color"></param>
|
||||||
|
public static void Write(object value, ConsoleColor color)
|
||||||
|
{
|
||||||
|
lock (Console.Out)
|
||||||
|
{
|
||||||
|
ConsoleColor oldColor = Console.ForegroundColor;
|
||||||
|
Console.ForegroundColor = color;
|
||||||
|
Console.Write(value);
|
||||||
|
Console.ForegroundColor = oldColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
/// <param name="color"></param>
|
||||||
|
public static void WriteLine(object value, ConsoleColor color)
|
||||||
|
{
|
||||||
|
lock (Console.Out)
|
||||||
|
{
|
||||||
|
ConsoleColor oldColor = Console.ForegroundColor;
|
||||||
|
Console.ForegroundColor = color;
|
||||||
|
Console.WriteLine(value);
|
||||||
|
Console.ForegroundColor = oldColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Stone_Red_Utilities.StringExtentions
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <see cref="string"/> Extentions
|
||||||
|
/// </summary>
|
||||||
|
public static class StringExt
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Determines whether this string and a specified <see cref="String"/> object have the same value regardless of upper and lower case. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
/// <param name="str"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static bool EqualsIgnoreCase(this string str, string value)
|
||||||
|
{
|
||||||
|
return str.ToLower().Equals(value.ToLower());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines whether this string and a specified <see cref="String"/> object have the same value regardless of spaces. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
/// <param name="str"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static bool EqualsIgnoreSpaces(this string str, string value)
|
||||||
|
{
|
||||||
|
return str.Replace(" ", string.Empty).Equals(value.Replace(" ", string.Empty));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines whether this string and a specified <see cref="String"/> object have the same value regardless of upper and lower case and spaces. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
/// <param name="str"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static bool EqualsIgnoreSpacesAndCase(this string str, string value)
|
||||||
|
{
|
||||||
|
return str.Replace(" ", string.Empty).ToLower().Equals(value.Replace(" ", string.Empty).ToLower());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Removes all invalid chars from file name
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="str"></param>
|
||||||
|
/// <param name="allowSpaces"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static string ToFileName(this string str, bool allowSpaces = false)
|
||||||
|
{
|
||||||
|
char[] invalidChars = Path.GetInvalidFileNameChars();
|
||||||
|
|
||||||
|
if (!allowSpaces)
|
||||||
|
str = str.Replace(" ", string.Empty);
|
||||||
|
|
||||||
|
foreach (var item in invalidChars)
|
||||||
|
{
|
||||||
|
str = str.Replace(item.ToString(), string.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
var normalizedString = str.Normalize(NormalizationForm.FormD);
|
||||||
|
var stringBuilder = new StringBuilder();
|
||||||
|
|
||||||
|
foreach (var c in normalizedString)
|
||||||
|
{
|
||||||
|
var unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);
|
||||||
|
if (unicodeCategory != UnicodeCategory.NonSpacingMark)
|
||||||
|
{
|
||||||
|
stringBuilder.Append(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return stringBuilder.ToString().Normalize(NormalizationForm.FormC);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
+24
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETStandard,Version=v2.1/",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETStandard,Version=v2.1": {},
|
||||||
|
".NETStandard,Version=v2.1/": {
|
||||||
|
"Stone_Red-C-Sharp-Utilities/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"Stone_Red-C-Sharp-Utilities.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"Stone_Red-C-Sharp-Utilities/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,137 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>Stone_Red-C-Sharp-Utilities</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="T:Stone_Red_Utilities.ArrListExtentions.TableStyle">
|
||||||
|
<summary>
|
||||||
|
Table Style
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.Default">
|
||||||
|
<summary>
|
||||||
|
The default representaion of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.Minimum">
|
||||||
|
<summary>
|
||||||
|
The minimal representation of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.Alternative">
|
||||||
|
<summary>
|
||||||
|
The alternative representaion of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:Stone_Red_Utilities.ArrListExtentions.TableStyle.List">
|
||||||
|
<summary>
|
||||||
|
The list representaion of the table
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.ArrListExtentions.ArrayListExt">
|
||||||
|
<summary>
|
||||||
|
<see cref="T:System.Array"/> and <see cref="T:System.Collections.Generic.List`1"/> Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ArrListExtentions.ArrayListExt.Print(System.Array,System.Char,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Prints items of array not
|
||||||
|
</summary>
|
||||||
|
<param name="array"></param>
|
||||||
|
<param name="delimiter"></param>
|
||||||
|
<param name="printToDebugConsole"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ArrListExtentions.ArrayListExt.Print``1(System.Collections.Generic.List{``0},System.Char,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Prints items of list
|
||||||
|
</summary>
|
||||||
|
<param name="list"></param>
|
||||||
|
<param name="delimiter"></param>
|
||||||
|
<param name="printToDebugConsole"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ArrListExtentions.ArrayListExt.PrintTable``1(``0[0:,0:],Stone_Red_Utilities.ArrListExtentions.TableStyle)">
|
||||||
|
<summary>
|
||||||
|
Creates and prints table from 2D array
|
||||||
|
</summary>
|
||||||
|
<typeparam name="T"></typeparam>
|
||||||
|
<param name="array"></param>
|
||||||
|
<param name="tableStyle"></param>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.BoolExtentions.BoolExt">
|
||||||
|
<summary>
|
||||||
|
<see cref="T:System.Boolean"/> Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.BoolExtentions.BoolExt.OneWayFalse(System.Boolean@,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Sets value to true if input is false. If input is true the value will not change.
|
||||||
|
</summary>
|
||||||
|
<param name="bol"></param>
|
||||||
|
<param name="bol1"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.BoolExtentions.BoolExt.OneWayTrue(System.Boolean@,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Sets value to true if input is true. If input is false the value will not change.
|
||||||
|
</summary>
|
||||||
|
<param name="bol"></param>
|
||||||
|
<param name="bol1"></param>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.ColorConsole.ConsoleExt">
|
||||||
|
<summary>
|
||||||
|
Console Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ColorConsole.ConsoleExt.Write(System.Object,System.ConsoleColor)">
|
||||||
|
<summary>
|
||||||
|
Writes the text representation of the specified object to the standard output stream.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="color"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.ColorConsole.ConsoleExt.WriteLine(System.Object,System.ConsoleColor)">
|
||||||
|
<summary>
|
||||||
|
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="color"></param>
|
||||||
|
</member>
|
||||||
|
<member name="T:Stone_Red_Utilities.StringExtentions.StringExt">
|
||||||
|
<summary>
|
||||||
|
<see cref="T:System.String"/> Extentions
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.EqualsIgnoreCase(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Determines whether this string and a specified <see cref="T:System.String"/> object have the same value regardless of upper and lower case. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="str"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.EqualsIgnoreSpaces(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Determines whether this string and a specified <see cref="T:System.String"/> object have the same value regardless of spaces. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="str"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.EqualsIgnoreSpacesAndCase(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Determines whether this string and a specified <see cref="T:System.String"/> object have the same value regardless of upper and lower case and spaces. A parameter specifies the culture, case, and sort rules used in the comparison.
|
||||||
|
</summary>
|
||||||
|
<param name="value"></param>
|
||||||
|
<param name="str"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:Stone_Red_Utilities.StringExtentions.StringExt.ToFileName(System.String,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Removes all invalid chars from file name
|
||||||
|
</summary>
|
||||||
|
<param name="str"></param>
|
||||||
|
<param name="allowSpaces"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
|
||||||
|
<metadata>
|
||||||
|
<id>Stone_Red-C-Sharp-Utilities</id>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<authors>Stone_Red</authors>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<description>Adds useful console extentions.</description>
|
||||||
|
<tags>Console, Table, Print</tags>
|
||||||
|
<dependencies>
|
||||||
|
<group targetFramework=".NETStandard2.1" />
|
||||||
|
</dependencies>
|
||||||
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll" target="lib\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll" />
|
||||||
|
<file src="C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.xml" target="lib\netstandard2.1\Stone_Red-C-Sharp-Utilities.xml" />
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName = "")]
|
||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
// Laufzeitversion:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
// der Code erneut generiert wird.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Stone_Red-C-Sharp-Utilities")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("Stone_Red-C-Sharp-Utilities")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("Stone_Red-C-Sharp-Utilities")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Von der MSBuild WriteCodeFragment-Klasse generiert.
|
||||||
|
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
1bfc26715da325c9040ef87e88a7a37ef16dab63
|
||||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
|||||||
|
b8d735afa8278acfe5c2ea39122acb06a457bac7
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.deps.json
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.dll
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.pdb
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.AssemblyInfo.cs
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.dll
|
||||||
|
C:\Users\Schule\Documents\POS\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.0\Stone_Red-C-Sharp-Utilities.pdb
|
||||||
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
// Laufzeitversion:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
// der Code erneut generiert wird.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Stone_Red")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyDescriptionAttribute("Adds useful console extentions.")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("Stone_Red-C-Sharp-Utilities")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("Stone_Red-C-Sharp-Utilities")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Von der MSBuild WriteCodeFragment-Klasse generiert.
|
||||||
|
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
8c2e203d84daa0b8e5b9ced52713101c4bfeb992
|
||||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
|||||||
|
720090d901031d5b30d715855746daa6aaddc3bc
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.deps.json
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.pdb
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.AssemblyInfoInputs.cache
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.AssemblyInfo.cs
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.pdb
|
||||||
|
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.xml
|
||||||
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"format": 1,
|
||||||
|
"restore": {
|
||||||
|
"C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj": {}
|
||||||
|
},
|
||||||
|
"projects": {
|
||||||
|
"C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||||
|
"projectName": "Stone_Red-C-Sharp-Utilities",
|
||||||
|
"projectPath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\David\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Microsoft\\Xamarin\\NuGet\\"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\David\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"netstandard2.1"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netstandard2.1": {
|
||||||
|
"targetAlias": "netstandard2.1",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netstandard2.1": {
|
||||||
|
"targetAlias": "netstandard2.1",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"NETStandard.Library": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.103\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\David\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.1</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"targets": {
|
||||||
|
".NETStandard,Version=v2.1": {}
|
||||||
|
},
|
||||||
|
"libraries": {},
|
||||||
|
"projectFileDependencyGroups": {
|
||||||
|
".NETStandard,Version=v2.1": []
|
||||||
|
},
|
||||||
|
"packageFolders": {
|
||||||
|
"C:\\Users\\David\\.nuget\\packages\\": {},
|
||||||
|
"C:\\Microsoft\\Xamarin\\NuGet\\": {}
|
||||||
|
},
|
||||||
|
"project": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||||
|
"projectName": "Stone_Red-C-Sharp-Utilities",
|
||||||
|
"projectPath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\David\\.nuget\\packages\\",
|
||||||
|
"outputPath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Microsoft\\Xamarin\\NuGet\\"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\David\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"netstandard2.1"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netstandard2.1": {
|
||||||
|
"targetAlias": "netstandard2.1",
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netstandard2.1": {
|
||||||
|
"targetAlias": "netstandard2.1",
|
||||||
|
"imports": [
|
||||||
|
"net461",
|
||||||
|
"net462",
|
||||||
|
"net47",
|
||||||
|
"net471",
|
||||||
|
"net472",
|
||||||
|
"net48"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true,
|
||||||
|
"frameworkReferences": {
|
||||||
|
"NETStandard.Library": {
|
||||||
|
"privateAssets": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.103\\RuntimeIdentifierGraph.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"dgSpecHash": "OD3S2PWuQPadb3YXVH/TFgttmtjOKEVETA8QX9aG0cwuXdgBYbJfZIrRqjQ5ftaDT3bOn/k9aLahlqPTvz92YQ==",
|
||||||
|
"success": true,
|
||||||
|
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
|
||||||
|
"expectedPackageFiles": [],
|
||||||
|
"logs": []
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user