Diverse Anpassungen

This commit is contained in:
Eugen Höglinger 2024-10-02 15:37:20 +02:00
parent 4f5f8d94ad
commit 0ed26d282f
87 changed files with 717 additions and 336 deletions

Binary file not shown.

View File

@ -0,0 +1,65 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{FC5324DA-3FA6-41F7-9F11-4060E8057B55}|Test_ShowTextFile\\Test_ShowTextFile.csproj|c:\\cad\\git-workrepository\\visualstudio\\_dll\\showtextfile.git\\test_showtextfile\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{FC5324DA-3FA6-41F7-9F11-4060E8057B55}|Test_ShowTextFile\\Test_ShowTextFile.csproj|solutionrelative:test_showtextfile\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}|ShowTextFile\\ShowTextFile.csproj|C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\showtextfile\\showtextfile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}|ShowTextFile\\ShowTextFile.csproj|solutionrelative:showtextfile\\showtextfile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Form1.cs",
"DocumentMoniker": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\Test_ShowTextFile\\Form1.cs",
"RelativeDocumentMoniker": "Test_ShowTextFile\\Form1.cs",
"ToolTip": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\Test_ShowTextFile\\Form1.cs*",
"RelativeToolTip": "Test_ShowTextFile\\Form1.cs*",
"ViewState": "AgIAAAUAAAAAAAAAAAAowH0AAABmAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-10-02T13:34:26.159Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "ShowTextFile.cs",
"DocumentMoniker": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\ShowTextFile\\ShowTextFile.cs",
"RelativeDocumentMoniker": "ShowTextFile\\ShowTextFile.cs",
"ToolTip": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\ShowTextFile\\ShowTextFile.cs",
"RelativeToolTip": "ShowTextFile\\ShowTextFile.cs",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAYAAAABAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-10-02T13:34:26.255Z"
}
]
}
]
}
]
}

View File

@ -0,0 +1,65 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{FC5324DA-3FA6-41F7-9F11-4060E8057B55}|Test_ShowTextFile\\Test_ShowTextFile.csproj|c:\\cad\\git-workrepository\\visualstudio\\_dll\\showtextfile.git\\test_showtextfile\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{FC5324DA-3FA6-41F7-9F11-4060E8057B55}|Test_ShowTextFile\\Test_ShowTextFile.csproj|solutionrelative:test_showtextfile\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}|ShowTextFile\\ShowTextFile.csproj|C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\showtextfile\\showtextfile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}|ShowTextFile\\ShowTextFile.csproj|solutionrelative:showtextfile\\showtextfile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Form1.cs",
"DocumentMoniker": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\Test_ShowTextFile\\Form1.cs",
"RelativeDocumentMoniker": "Test_ShowTextFile\\Form1.cs",
"ToolTip": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\Test_ShowTextFile\\Form1.cs",
"RelativeToolTip": "Test_ShowTextFile\\Form1.cs",
"ViewState": "AgIAAAUAAAAAAAAAAAAowH0AAABmAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-10-02T13:34:26.159Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "ShowTextFile.cs",
"DocumentMoniker": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\ShowTextFile\\ShowTextFile.cs",
"RelativeDocumentMoniker": "ShowTextFile\\ShowTextFile.cs",
"ToolTip": "C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\ShowTextFile\\ShowTextFile.cs",
"RelativeToolTip": "ShowTextFile\\ShowTextFile.cs",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAYAAAABAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-10-02T13:34:26.255Z"
}
]
}
]
}
]
}

View File

@ -1,11 +1,11 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 17
VisualStudioVersion = 16.0.31624.102 VisualStudioVersion = 17.1.32421.90
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShowTextFile", "ShowTextFile\ShowTextFile.csproj", "{3FD018A8-E6B0-4886-9572-20536E0C180C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShowTextFile", "ShowTextFile\ShowTextFile.csproj", "{FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_ShowTextFile", "Test_ShowTextFile\Test_ShowTextFile.csproj", "{9E358856-190F-4D90-85DA-7394F86F9B22}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_ShowTextFile", "Test_ShowTextFile\Test_ShowTextFile.csproj", "{FC5324DA-3FA6-41F7-9F11-4060E8057B55}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -13,14 +13,14 @@ Global
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3FD018A8-E6B0-4886-9572-20536E0C180C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FD018A8-E6B0-4886-9572-20536E0C180C}.Debug|Any CPU.Build.0 = Debug|Any CPU {FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FD018A8-E6B0-4886-9572-20536E0C180C}.Release|Any CPU.ActiveCfg = Release|Any CPU {FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FD018A8-E6B0-4886-9572-20536E0C180C}.Release|Any CPU.Build.0 = Release|Any CPU {FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}.Release|Any CPU.Build.0 = Release|Any CPU
{9E358856-190F-4D90-85DA-7394F86F9B22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FC5324DA-3FA6-41F7-9F11-4060E8057B55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E358856-190F-4D90-85DA-7394F86F9B22}.Debug|Any CPU.Build.0 = Debug|Any CPU {FC5324DA-3FA6-41F7-9F11-4060E8057B55}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9E358856-190F-4D90-85DA-7394F86F9B22}.Release|Any CPU.ActiveCfg = Release|Any CPU {FC5324DA-3FA6-41F7-9F11-4060E8057B55}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9E358856-190F-4D90-85DA-7394F86F9B22}.Release|Any CPU.Build.0 = Release|Any CPU {FC5324DA-3FA6-41F7-9F11-4060E8057B55}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind. // die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("ShowTextFile")] [assembly: AssemblyTitle("ShowTextFile")]
[assembly: AssemblyDescription("Zeigt eine Textdatei im bevorzugten Editor oder in Notpad an.")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ShowTextFile")] [assembly: AssemblyProduct("ShowTextFile")]
@ -20,7 +20,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("3fd018a8-e6b0-4886-9572-20536e0c180c")] [assembly: Guid("fbae49fa-d638-48ed-8899-0b20dfa3ed8d")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
// //

View File

@ -1,11 +1,7 @@
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Eugen.ESystem.IO namespace Eugen.ESystem.IO
{ {

View File

@ -4,7 +4,7 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{3FD018A8-E6B0-4886-9572-20536E0C180C}</ProjectGuid> <ProjectGuid>{FBAE49FA-D638-48ED-8899-0B20DFA3ED8D}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ShowTextFile</RootNamespace> <RootNamespace>ShowTextFile</RootNamespace>
@ -34,12 +34,8 @@
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="ShowTextFile.cs" /> <Compile Include="ShowTextFile.cs" />

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +0,0 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")]

View File

@ -1 +1 @@
a53de154b2bb7e09689ffe1ddd4cea9951deded9 0af6590a2821d9ba2b28cd556414023be9001592

View File

@ -1,6 +1,6 @@
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.dll H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.pdb H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.AssemblyReference.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.dll H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.pdb H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\heshowtf.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\ShowTextFile\obj\Debug\ShowTextFile.csproj.AssemblyReference.cache

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,3 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>

View File

@ -1,17 +1,16 @@
 namespace Eugen.ESystem.Windows.Forms
namespace Test_ShowTextFile
{ {
partial class Form1 partial class Form1
{ {
/// <summary> /// <summary>
/// Erforderliche Designervariable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Verwendete Ressourcen bereinigen. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
if (disposing && (components != null)) if (disposing && (components != null))
@ -21,40 +20,30 @@ namespace Test_ShowTextFile
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Vom Windows Form-Designer generierter Code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Erforderliche Methode für die Designerunterstützung. /// Required method for Designer support - do not modify
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.buttonRunProgram = new System.Windows.Forms.Button();
this.groupBoxProgramInfo = new System.Windows.Forms.GroupBox(); this.groupBoxProgramInfo = new System.Windows.Forms.GroupBox();
this.labelProgramInfo = new System.Windows.Forms.Label(); this.labelProgramInfo = new System.Windows.Forms.Label();
this.groupBoxDLLInfo = new System.Windows.Forms.GroupBox(); this.groupBoxDLLInfo = new System.Windows.Forms.GroupBox();
this.labelDLLInfo = new System.Windows.Forms.Label(); this.labelDLLInfo = new System.Windows.Forms.Label();
this.buttonRunProgram = new System.Windows.Forms.Button();
this.groupBoxProgramInfo.SuspendLayout(); this.groupBoxProgramInfo.SuspendLayout();
this.groupBoxDLLInfo.SuspendLayout(); this.groupBoxDLLInfo.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonRunProgram
//
this.buttonRunProgram.Location = new System.Drawing.Point(12, 287);
this.buttonRunProgram.Name = "buttonRunProgram";
this.buttonRunProgram.Size = new System.Drawing.Size(776, 23);
this.buttonRunProgram.TabIndex = 0;
this.buttonRunProgram.Text = "Programm ausführen";
this.buttonRunProgram.UseVisualStyleBackColor = true;
this.buttonRunProgram.Click += new System.EventHandler(this.buttonRunProgram_Click);
//
// groupBoxProgramInfo // groupBoxProgramInfo
// //
this.groupBoxProgramInfo.Controls.Add(this.labelProgramInfo); this.groupBoxProgramInfo.Controls.Add(this.labelProgramInfo);
this.groupBoxProgramInfo.Location = new System.Drawing.Point(12, 372); this.groupBoxProgramInfo.Location = new System.Drawing.Point(12, 372);
this.groupBoxProgramInfo.Name = "groupBoxProgramInfo"; this.groupBoxProgramInfo.Name = "groupBoxProgramInfo";
this.groupBoxProgramInfo.Size = new System.Drawing.Size(385, 66); this.groupBoxProgramInfo.Size = new System.Drawing.Size(385, 66);
this.groupBoxProgramInfo.TabIndex = 11; this.groupBoxProgramInfo.TabIndex = 9;
this.groupBoxProgramInfo.TabStop = false; this.groupBoxProgramInfo.TabStop = false;
this.groupBoxProgramInfo.Text = "Programm Information"; this.groupBoxProgramInfo.Text = "Programm Information";
// //
@ -74,7 +63,7 @@ namespace Test_ShowTextFile
this.groupBoxDLLInfo.Location = new System.Drawing.Point(403, 372); this.groupBoxDLLInfo.Location = new System.Drawing.Point(403, 372);
this.groupBoxDLLInfo.Name = "groupBoxDLLInfo"; this.groupBoxDLLInfo.Name = "groupBoxDLLInfo";
this.groupBoxDLLInfo.Size = new System.Drawing.Size(385, 66); this.groupBoxDLLInfo.Size = new System.Drawing.Size(385, 66);
this.groupBoxDLLInfo.TabIndex = 12; this.groupBoxDLLInfo.TabIndex = 10;
this.groupBoxDLLInfo.TabStop = false; this.groupBoxDLLInfo.TabStop = false;
this.groupBoxDLLInfo.Text = "DLL Information"; this.groupBoxDLLInfo.Text = "DLL Information";
// //
@ -88,16 +77,26 @@ namespace Test_ShowTextFile
this.labelDLLInfo.TabIndex = 0; this.labelDLLInfo.TabIndex = 0;
this.labelDLLInfo.Text = "..."; this.labelDLLInfo.Text = "...";
// //
// buttonRunProgram
//
this.buttonRunProgram.Location = new System.Drawing.Point(12, 249);
this.buttonRunProgram.Name = "buttonRunProgram";
this.buttonRunProgram.Size = new System.Drawing.Size(776, 23);
this.buttonRunProgram.TabIndex = 13;
this.buttonRunProgram.Text = "Programm ausführen";
this.buttonRunProgram.UseVisualStyleBackColor = true;
this.buttonRunProgram.Click += new System.EventHandler(this.buttonRunProgram_Click_1);
//
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.buttonRunProgram);
this.Controls.Add(this.groupBoxProgramInfo); this.Controls.Add(this.groupBoxProgramInfo);
this.Controls.Add(this.groupBoxDLLInfo); this.Controls.Add(this.groupBoxDLLInfo);
this.Controls.Add(this.buttonRunProgram);
this.Name = "Form1"; this.Name = "Form1";
this.Text = "Test_ShowTextFile"; this.Text = "Test_About";
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
this.groupBoxProgramInfo.ResumeLayout(false); this.groupBoxProgramInfo.ResumeLayout(false);
this.groupBoxProgramInfo.PerformLayout(); this.groupBoxProgramInfo.PerformLayout();
@ -108,12 +107,10 @@ namespace Test_ShowTextFile
} }
#endregion #endregion
private System.Windows.Forms.Button buttonRunProgram;
private System.Windows.Forms.GroupBox groupBoxProgramInfo; private System.Windows.Forms.GroupBox groupBoxProgramInfo;
private System.Windows.Forms.Label labelProgramInfo; private System.Windows.Forms.Label labelProgramInfo;
private System.Windows.Forms.GroupBox groupBoxDLLInfo; private System.Windows.Forms.GroupBox groupBoxDLLInfo;
private System.Windows.Forms.Label labelDLLInfo; private System.Windows.Forms.Label labelDLLInfo;
private System.Windows.Forms.Button buttonRunProgram;
} }
} }

View File

@ -10,7 +10,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Eugen.ESystem.IO; using Eugen.ESystem.IO;
namespace Test_ShowTextFile using Eugen.ESystem.Windows.Forms;
namespace Eugen.ESystem.Windows.Forms
{ {
public partial class Form1 : Form public partial class Form1 : Form
{ {
@ -21,12 +23,10 @@ namespace Test_ShowTextFile
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
string copyright = GenerateCopyright(); string copyright = GenerateCopyright();
string icon = Application.StartupPath + "\\Info.bmp"; string icon = Application.StartupPath + "\\Info.bmp";
//Assembly Datum und Zeit //Assembly Datum und Zeit
static DateTime value = AssemblyDateTime(); static DateTime value = AssemblyDateTime();
string date = value.ToShortDateString(); string date = value.ToShortDateString();
string time = value.ToLongTimeString(); string time = value.ToLongTimeString();
private static DateTime AssemblyDateTime() private static DateTime AssemblyDateTime()
{ {
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
@ -43,6 +43,8 @@ namespace Test_ShowTextFile
private static string StartYear() private static string StartYear()
{ {
//string startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
//return startYear.Remove(0, startYear.LastIndexOf(" ") + 1);
string startYear = ""; string startYear = "";
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © ")) if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
{ {
@ -51,15 +53,7 @@ namespace Test_ShowTextFile
{ {
startYear = startYear.Remove(0, 1); startYear = startYear.Remove(0, 1);
} }
startYear = startYear.Remove(startYear.IndexOf(" "));
if (startYear.Contains("-"))
{
startYear = startYear.Remove(startYear.IndexOf("-"));
}
else
{
startYear = startYear.Remove(startYear.IndexOf(" "));
}
return startYear; return startYear;
} }
else else
@ -80,11 +74,8 @@ namespace Test_ShowTextFile
} }
else else
{ {
string temp = ((AssemblyCopyrightAttribute)attributes[0]).Copyright; //return String.Concat(((AssemblyCopyrightAttribute)attributes[0]).Copyright, "-", currentYear);
string start = temp.Remove(temp.IndexOf(startYear) - 1); return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear));
string end = (temp.Remove(0, temp.IndexOf(" by")));
return String.Concat(start, " ", startYear, "-", currentYear, end);
} }
} }
#endregion #endregion
@ -116,7 +107,7 @@ namespace Test_ShowTextFile
public Form1() public Form1()
{ {
SetProgramInfo(); SetProgramInfo(); //Name, Version und Copyright setzen
InitializeComponent(); InitializeComponent();
} }
@ -127,12 +118,12 @@ namespace Test_ShowTextFile
labelDLLInfo.Text = String.Concat(ShowTextFile.DllName, "\r\n", ShowTextFile.DllVersion, "\r\n", ShowTextFile.Copyright); // Zeigt die DLL-Information an labelDLLInfo.Text = String.Concat(ShowTextFile.DllName, "\r\n", ShowTextFile.DllVersion, "\r\n", ShowTextFile.Copyright); // Zeigt die DLL-Information an
} }
private void buttonRunProgram_Click(object sender, EventArgs e) private void buttonRunProgram_Click_1(object sender, EventArgs e)
{ {
// //
//TODO: Hier Programmcode einfügen der ausgeführt werden soll //TODO: Hier Programmcode einfügen der ausgeführt werden soll
// //
string textFileName = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Daten\Textdatei.txt"; string textFileName = @"C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Daten\Textdatei.txt";
//Wenn die Datei nicht angezeigt werden kann, dann eine Fehlermeldung ausgeben //Wenn die Datei nicht angezeigt werden kann, dann eine Fehlermeldung ausgeben
if (!ShowTextFile.Show(textFileName)) if (!ShowTextFile.Show(textFileName))

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace Test_ShowTextFile namespace Eugen.ESystem.Windows.Forms
{ {
static class Program static class Program
{ {

View File

@ -5,12 +5,12 @@ using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden // Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind. // die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("Test_ShowTextFile")] [assembly: AssemblyTitle("Test_About")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Test_ShowTextFile")] [assembly: AssemblyProduct("Test_About")]
[assembly: AssemblyCopyright("Copyright © 2021 by Eugen Höglinger")] [assembly: AssemblyCopyright("Copyright © 2019 by Eugen Höglinger")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -20,7 +20,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("9e358856-190f-4d90-85da-7394f86f9b22")] [assembly: Guid("fc5324da-3fa6-41f7-9f11-4060e8057b55")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
// //
@ -30,7 +30,7 @@ using System.Runtime.InteropServices;
// Revision // Revision
// //
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben: // indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")] //Wenn auskommentiert, dann gleich wie AssemblyVersion! // [assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,63 +0,0 @@
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
namespace Test_ShowTextFile.Properties {
using System;
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_ShowTextFile.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}

View File

@ -1,117 +0,0 @@
<?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
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -1,26 +0,0 @@
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
namespace Test_ShowTextFile.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}

View File

@ -1,7 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -1,21 +1,23 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\ILMerge.3.0.41\build\ILMerge.props" Condition="Exists('..\packages\ILMerge.3.0.41\build\ILMerge.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9E358856-190F-4D90-85DA-7394F86F9B22}</ProjectGuid> <ProjectGuid>{FC5324DA-3FA6-41F7-9F11-4060E8057B55}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Test_ShowTextFile</RootNamespace> <RootNamespace>Test_ShowTextFile</RootNamespace>
<AssemblyName>Test_ShowTextFile</AssemblyName> <AssemblyName>Test_ShowTextFile</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>false</Deterministic> <Deterministic>false</Deterministic>
<TargetFrameworkProfile /> <TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
@ -25,7 +27,6 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
@ -33,20 +34,22 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="heshowtf"> <Reference Include="heshowtf">
<HintPath>..\ShowTextFile\bin\Debug\heshowtf.dll</HintPath> <HintPath>..\ShowTextFile\bin\Debug\heshowtf.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -58,31 +61,23 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Form1.resx"> <EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="app.config" />
<None Include="packages.config" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\ILMerge.MSBuild.Task.1.0.7\build\ILMerge.MSBuild.Task.targets" Condition="Exists('..\packages\ILMerge.MSBuild.Task.1.0.7\build\ILMerge.MSBuild.Task.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\ILMerge.MSBuild.Task.1.0.7\build\ILMerge.MSBuild.Task.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILMerge.MSBuild.Task.1.0.7\build\ILMerge.MSBuild.Task.targets'))" />
<Error Condition="!Exists('..\packages\ILMerge.3.0.41\build\ILMerge.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILMerge.3.0.41\build\ILMerge.props'))" />
</Target>
</Project> </Project>

View File

@ -0,0 +1 @@
{"General":{"OutputFile":"C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\Test_ShowTextFile\\bin\\Debug\\ILMerge\\Test_ShowTextFile.exe","TargetPlatform":"v4,C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319","KeyFile":null,"AlternativeILMergePath":null,"InputAssemblies":["C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\Test_ShowTextFile\\bin\\Debug\\Test_ShowTextFile.exe","C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\ShowTextFile\\bin\\Debug\\heshowtf.dll"]},"Advanced":{"AllowMultipleAssemblyLevelAttributes":false,"AllowWildCards":false,"AllowZeroPeKind":false,"AttributeFile":null,"Closed":false,"CopyAttributes":true,"DebugInfo":true,"DelaySign":false,"DeleteCopiesOverwriteTarget":false,"ExcludeFile":"","FileAlignment":512,"Internalize":false,"Log":false,"LogFile":null,"PublicKeyTokens":true,"TargetKind":null,"UnionMerge":false,"Version":null,"XmlDocumentation":false,"AllowDuplicateType":null,"SearchDirectories":["C:\\CAD\\Git-WorkRepository\\VisualStudio\\_DLL\\ShowTextFile.git\\Test_ShowTextFile\\bin\\Debug\\","C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\"]}}

View File

@ -1,6 +1,3 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
50c31278cec88ca6877b5f88b917d5051e69d2e6

View File

@ -0,0 +1,13 @@
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Debug\Eugen.ESystem.Windows.Forms.Form1.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Debug\Test_About.csproj.GenerateResource.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Debug\Test_About.csproj.CoreCompileInputs.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Debug\Test_About.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Debug\About.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Debug\About.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Debug\de\About.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Debug\en\About.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Debug\Test_About.csprojAssemblyReference.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Debug\Test_About.csproj.CopyComplete
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Debug\Test_About.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Debug\Test_About.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Debug\Test_About.exe

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
39b35651c02727e7ce4e72f663376d813507137f

View File

@ -0,0 +1,39 @@
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\bin\Debug\Test_AboutBox.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\bin\Debug\Test_AboutBox.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\bin\Debug\AboutBox.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\bin\Debug\AboutBox.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\bin\Debug\de\AboutBox.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\bin\Debug\en\AboutBox.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\obj\Debug\Test_AboutBox.csprojAssemblyReference.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\obj\Debug\Eugen.ESystem.Windows.Forms.Form1.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.GenerateResource.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.CoreCompileInputs.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.CopyComplete
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\obj\Debug\Test_AboutBox.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\AboutBox\Test_AboutBox\obj\Debug\Test_AboutBox.pdb
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\Test_AboutBox.exe
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\Test_AboutBox.pdb
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\AboutBox.dll
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\AboutBox.pdb
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\de\AboutBox.resources.dll
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\en\AboutBox.resources.dll
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csprojAssemblyReference.cache
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Eugen.ESystem.Windows.Forms.Form1.resources
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.GenerateResource.cache
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.CopyComplete
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.exe
H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\Test_AboutBox.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\Test_AboutBox.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\heabox.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\heabox.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\de\heabox.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\bin\Debug\en\heabox.resources.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Eugen.ESystem.Windows.Forms.Form1.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.GenerateResource.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.CopyComplete
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\AboutBox.git\Test_AboutBox\obj\Debug\Test_AboutBox.csproj.AssemblyReference.cache

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
9e73677d002d12c5e3fda8ecb6c4d731279a6e3e ea6803a95b1b7946d81317608656db93c18fb68dec2897a5270b399429f85e3b

View File

@ -4,11 +4,22 @@ H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_Show
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.dll H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.pdb H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.AssemblyReference.cache H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.AssemblyReference.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.Form1.resources H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.SuggestedBindingRedirects.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.Properties.Resources.resources H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Eugen.ESystem.Windows.Forms.Form1.resources
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.GenerateResource.cache H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.GenerateResource.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CoreCompileInputs.cache H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CoreCompileInputs.cache
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CopyComplete H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CopyComplete
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.exe H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.pdb H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.SuggestedBindingRedirects.cache C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.exe.config
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.exe
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\Test_ShowTextFile.pdb
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.dll
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\bin\Debug\heshowtf.pdb
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.AssemblyReference.cache
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Eugen.ESystem.Windows.Forms.Form1.resources
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.GenerateResource.cache
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.csproj.CoreCompileInputs.cache
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_Sho.8761C477.Up2Date
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.exe
C:\CAD\Git-WorkRepository\VisualStudio\_DLL\ShowTextFile.git\Test_ShowTextFile\obj\Debug\Test_ShowTextFile.pdb

View File

@ -0,0 +1 @@
5be4694209b278b3b8a68315984ce8d67bcf5540

View File

@ -0,0 +1,13 @@
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Release\Test_About.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Release\Test_About.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Release\About.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Release\About.pdb
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Release\de\About.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\bin\Release\en\About.resources.dll
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Release\Test_About.csprojAssemblyReference.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Release\Eugen.ESystem.Windows.Forms.Form1.resources
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Release\Test_About.csproj.GenerateResource.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Release\Test_About.csproj.CoreCompileInputs.cache
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Release\Test_About.csproj.CopyComplete
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Release\Test_About.exe
H:\Programmieren\Visual Studio 2017\Projekte\_DLL\About\Test_About\obj\Release\Test_About.pdb

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ILMerge" version="3.0.41" targetFramework="net48" />
<package id="ILMerge.MSBuild.Task" version="1.0.7" targetFramework="net48" />
</packages>

BIN
packages/ILMerge.3.0.41/.signature.p7s vendored Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ILMergeConsolePath>$(MSBuildThisFileDirectory)..\tools\net452\ILMerge.exe</ILMergeConsolePath>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,374 @@
# ILMerge
Michael Barnett<br/>
Research in Software Engineering (RiSE)<br/>
Microsoft Research<br/>
Copyright &copy; Microsoft Corporation. All rights reserved.
# 1. Introduction
This document describes the ILMerge utility which merges multiple .NET assemblies into a single assembly. However, some .NET assemblies may not be able to be merged because they may contain features such as unmanaged code. I would highly recommend using peverify (the .NET Framework SDK tool) on the output of ILMerge to guarantee that the output is verifiable and will load in the .NET runtime.
ILMerge is packaged as a console application. But all of its functionality is also accessible programmatically. Note that Visual Studio **does** allow one to add an executable as a reference, so you can write a client that uses ILMerge as a library.
ILMerge takes a set of _input assemblies_ and merges them into one _target assembly_. The first assembly in the list of input assemblies is the _primary assembly_. When the primary assembly is an executable, then the target assembly is created as an executable with the same entry point as the primary assembly. Also, if the primary assembly has a strong name, and a .snk file is provided, then the target assembly is re-signed with the specified key so that it also has a strong name.
Note that anything that depended upon any of the names of the input assemblies, e.g., configuration files, must be updated to refer instead to the name of the target assembly.
Any Win32 Resources in the primary assembly are copied over into the target assembly.
There are many options that control the behavior of ILMerge. These are described in the next section.
# 2. Public Interface
The public interface for ILMerge is defined in the ILMerging namespace as the class ILMerge.
```csharp
namespace ILMerging
{
public class ILMerge { }
}
```
To use this class programmatically, just create an instance using the default (nullary) constructor. There are several properties and methods which are used to affect the behavior of the merging. The method `Merge()` is called to actually perform the merging.
## 2.1 AllowDuplicateType
```csharp
public void AllowDuplicateType(string typeName);
```
The normal behavior of ILMerge is to not allow there to be more than one public type with the same name. If such a duplicate is found, then an exception is thrown. However, ILMerge can just rename the type so that it no longer causes a conflict. For private types, this is not a problem since no outside client can see it anyway, so ILMerge just does the renaming by default. For public types, it is not often a useful feature to have it renamed. However, there are situations where it is needed. In particular, for obfuscated assemblies, it seems that the obfuscator defines an attribute and creates an assembly-level attribute for the obfuscated assembly using that attribute. This would mean that obfuscated assemblies cannot be merged.
So this option allows the user to either allow all public types to be renamed when they are duplicates, or to specify it for arbitrary type names. On the command line, there can be as many options as desired, if followed by a colon and a type name, otherwise just specify it alone with no colon (and type name) to allow all duplicates.
When used through the API, an argument of &quot;null&quot; means to allow all public types to be renamed.
**Default:** no duplicates of public types allowed
**Command line option:** `[/allowDup[:typeName]]*`
## 2.2 AllowMultipleAssemblyLevelAttributes
```csharp
public bool AllowMultipleAssemblyLevelAttributes { get; set; }
```
When this is set before calling Merge, then if the CopyAttributes property (Section 2.7) is also set, any assembly-level attributes names that have the same type are copied over into the target directory as long as the definition of the attribute type specifies that &quot;AllowMultiple&quot; is true.
**Default:** `false`
**Command line option:** `/allowMultiple`
## 2.3 AllowWildCards
```csharp
public bool AllowWildCards { get; set; }
```
When this is set before calling Merge, any wild cards in file names are expanded and all matching files will be used as input. Note that because the wild card matching is done by a call to Directory.GetFiles, it does not allow the characters &quot;..&quot; to appear in a file name. So if you want to specify a relative path containing &quot;..&quot; to move up a directory, you will have to use it with the &quot;/lib&quot; option (Section 2.20). That option does allow the use of &quot;..&quot; to move up directories.
**Default:** `false`
**Command line option:** `/wildcards`
## 2.4 AllowZeroPeKind
```csharp
public bool AllowZeroPeKind { get; set; }
```
When this is set before calling Merge, then if an assembly&#39;s PeKind flag (this is the value of the field listed as .corflags in the Manifest) is zero it will be treated as if it was ILonly. This can be used to allow C++ assemblies to be merged; it does not appear that the C++ compiler writes the value as ILonly. However, if such an assembly has any non-IL features, then they will probably not be copied over into the target assembly correctly. So please use this option with caution.
**Default:** `false`
**Command line option:** `/zeroPeKind`
## 2.5 AttributeFile
```csharp
public string AttributeFile { get; set; }
```
If this is set before calling Merge, then it specifies the path and filename to an _atttribute assembly_, an assembly that will be used to get all of the assembly-level attributes such as Culture, Version, etc. It will also be used to get the Win32 Resources from. It is mutually exclusive with the CopyAttributes property (Section 2.7). When it is not specified, then the Win32 Resources from the primary assembly are copied over into the target assembly. If it is not a full path, then the current directory is used.
**Default:** `null`
**Command line option:** `/attr:filename`
## 2.6 Closed
```csharp
public bool Closed { get; set; }
```
When this is set before calling Merge, then the &quot;transitive closure&quot; of the input assemblies is computed and added to the list of input assemblies. An assembly is considered part of the transitive closure if it is referenced, either directly or indirectly, from one of the originally specified input assemblies and it has an external reference to one of the input assemblies, or one of the assemblies that has such a reference. Complicated, but that is life...
**Default:** `false`
**Command line option:** `/closed`
## 2.7 CopyAttributes
```csharp
public bool CopyAttributes { get; set; }
```
When this is set before calling Merge, then the assembly level attributes of each input assembly are copied over into the target assembly. Any duplicate attribute overwrites a previously copied attribute. If you want to allow duplicates (for those attributes whose type specifies &quot;AllowMultiple&quot; in their definition), then you can also set the AllowMultipleAssemblyLevelAttributes (Section 2.2). The input assemblies are processed in the order they are specified. This option is mutually exclusive with specifying an attribute assembly, i.e., the property AttributeFile (Section 2.5). When an attribute assembly is specified, then no assembly-level attributes are copied over from the input assemblies.
**Default:** `false`
**Command line option:** `/copyattrs`
## 2.8 DebugInfo
```csharp
public bool DebugInfo { get; set; }
```
When this is set to true, ILMerge creates a .pdb file for the output assembly and merges into it any .pdb files found for input assemblies. If you do not want a .pdb file created for the output assembly, either set this property to false or else specify the /ndebug option at the command line.
**Default:** `true`
**Command line option:** `/ndebug`
## 2.9 DelaySign
```csharp
public bool DelaySign { get; set; }
```
When this is set before calling Merge, then the target assembly will be delay signed. This can be set only in conjunction with the `/keyfile` option (Section 2.13).
**Default:** `false`
## 2.10 ExcludeFile
```csharp
public string ExcludeFile { get; set; }
```
This property is used only in conjunction with the Internalize property (Section 2.12). When this is set before calling Merge, it indicates the path and filename that will be used to identify types that are not to have their visibility modified. If Internalize is true, but ExcludeFile is &quot;&quot;, then all types in any assembly other than the primary assembly are made non-public. Setting this property implicitly sets Internalize to true.
The contents of the file should be one regular expression per line. The syntax is that defined in the .NET namespace System.Text.RegularExpressions for regular expressions. The regular expressions are matched against each type&#39;s full name, e.g., &quot;System.Collections.IList&quot;. If the match fails, it is tried again with the assembly name (surrounded by square brackets) prepended to the type name. Thus, the pattern &quot;\\[A\\].\\\*&quot; excludes all types in assembly A from being made non-public. (The backslashes are required because the string is treated as a regular expression.) The pattern &quot;N.T&quot; will match all types named T in the namespace named N no matter what assembly they are defined in.
It is important to note that the regular expressions are _not_ anchored to the beginning of the string; if this is desired, use the appropriate regular expression operator characters to do so.
**Default:** &quot;&quot;
**Command line option:** `/internalize[:excludeFile]`
## 2.11 FileAlignment
```csharp
public int FileAlignment { get; set; }
```
This controls the file alignment used for the target assembly. The setter sets the value to the largest power of two that is no larger than the supplied argument, and is at least 512.
**Default:** `512`
**Command line option:** `/align:n`
## 2.12 Internalize
```csharp
public bool Internalize { get; set; }
```
This controls whether types in assemblies _other than_ the primary assembly have their visibility modified. When it is true, then all non-exempt types that are visible outside of their assembly have their visibility modified so that they are not visible from outside of the merged assembly. A type is exempt if its _full name_ matches a line from the ExcludeFile (Section 2.10) using the .NET regular expression engine.
**Default:** `false`
**Command line option:** `/internalize[:excludeFile]`
## 2.13 KeyFile
```csharp
public string KeyFile { get; set; }
```
When this is set before calling Merge, it specifies the path and filename to a .snk file. The target assembly will be signed with its contents and will then have a strong name. It can be used with the DelaySign property (Section 2.9) to have the target assembly delay signed. This can be done even if the primary assembly was fully signed.
**Default:** `null`
**Command line option:** `/keyfile:filename`
## 2.14 Log
```csharp
public bool Log { get; set; }
```
When this is set before calling Merge, then log messages are written. It is used in conjunction with the LogFile property. If Log is true, but LogFile is null, then log messages are written to Console.Out. To specify this behavior on the command line, the option &quot;/log&quot; can be given without a log file.
**Default:** `false`
**Command line option:** `/log[:logfile]`
## 2.15 LogFile
```csharp
public string LogFile { get; set; }
```
When this is set before calling Merge, it indicates the path and filename that log messages are written to. If Log is true, but LogFile is null, then log messages are written to Console.Out.
**Default:** `null`
**Command line option:** `/log[:logfile]`
## 2.16 Merge
```csharp
public void Merge();
```
Once all desired options are set, this method performs the actual merging.
## 2.17 OutputFile
```csharp
public string OutputFile { get; set; }
```
This must be set before calling Merge. It specifies the path and filename that the target assembly will be written to.
**Default:** `null`
**Command line option:** `/out:filename`
## 2.18 PublicKeyTokens
```csharp
public bool PublicKeyTokens { get; set; }
```
This must be set before calling Merge. It indicates whether external assembly references in the manifest of the target assembly will use full public keys (false) or public key tokens (true).
**Default:** `true`
**Command line option:** `/useFullPublicKeyForReferences`
## 2.19 SetInputAssemblies
```csharp
public void SetInputAssemblies(string[] assems);
```
When used programmatically, each element of the array should contain the path and filename of an input assembly. The first element of the array is considered to be the primary assembly.
## 2.20 SetSearchDirectories
```csharp
public void SetSearchDirectories(string[] dirs);
```
If specified, this sets the directories to be used to search for input assemblies. When used programmatically, each element of the array should contain a directory name. When specified on the command line, use a separate &quot;/lib&quot; option for each directory.
**Command line option:** `/lib:directory`
## 2.21 SetTargetPlatform
```csharp
public void SetTargetPlatform(string platform, string dir);
```
This method sets the .NET Framework for the target assembly to be the one specified by platform. Valid strings for the first argument are `v1`, `v1.1`, `v2`, and `v4`;. The `v` is case insensitive and is also optional. This way ILMerge can be used to &quot;cross-compile&quot;, i.e., it can run in one version of the framework and generate the target assembly so it will run under a different assembly. The second argument is the directory in which `mscorlib.dll` is to be found.
**Command line option:** `/targetplatform:version,platformdirectory`
## 2.22 StrongNameLost
```csharp
public bool StrongNameLost { get; }
```
Once merging is complete, this property is true if and only if the primary assembly had a strong name, but the target assembly does not. This can occur when an .snk file is not specified, or if something goes wrong trying to read its contents.
## 2.23 TargetKind
```csharp
public ILMerge.Kind { get; set; }
```
This controls whether the target assembly is created as a library, a console application or as a Windows application. When it is not specified, then the target assembly will be the same kind as that of the primary assembly. (In that case, the file extensions found on the specified target assembly and the primary assembly must match.) When it is specified, then the file extension of the target assembly must match the specification.
The possible values are `ILMerge.Kind.{Dll, Exe, WinExe}`
**Default:** `ILMerge.Kind.SameAsPrimaryAssembly`
**Command line option:** `/target:(library|exe|winexe)`
## 2.24 UnionMerge
```csharp
public bool { get; set; }
```
When this is true, then types with the same name are all merged into a single type in the target assembly. The single type is the union of all of the individual types in the input assemblies: it contains all of the members from each of the corresponding types in the input assemblies. It cannot be specified at the same time as `/allowDup`.
**Default:** `false`
**Command line option:** `/union`
## 2.25 Version
```csharp
public System.Version Version { get; set; }
```
When this has a non-null value, then the target assembly will be given its value as the version number of the assembly. When specified on the command line, the version is read in as a string and should look like &quot;6.2.1.3&quot; (but without the quote marks). The version must be a valid assembly version as defined by the attribute AssemblyVersion in the System.Reflection namespace.
**Default:** `null`
**Command line option:** `/ver:version`
## 2.26 XmlDocumentation
```csharp
public bool XmlDocumentation { get; set; }
```
This property controls whether XML documentation files are merged to produce an XML documentation file for the target assembly.
**Default:** `false`
**Command line option:** `/xmldocs`
# 3 Command Line Usage
The full command line for ILMerge is:
```
ilmerge [/lib:directory]* [/log[:filename]] [/keyfile:filename [/delaysign]] [/internalize[:filename]]
[/t[arget]:(library|exe|winexe)] [/closed] [/ndebug] [/ver:version] [/copyattrs [/allowMultiple]]
[/xmldocs] [/attr:filename] ([/targetplatform:<version>[,<platformdir>]]|v1|v1.1|v2|v4)
[/useFullPublicKeyForReferences] [/zeroPeKind] [/wildcards] [/allowDup[:typename]]*
[/allowDuplicateResources] [/union] [/align:n]
/out:filename <primary assembly> [<other assemblies>...]
```
All options that take arguments can use either `:` or `=` as a separator. Options can be in any order, but all of the options must precede the list of input assemblies.
# 4 Troubleshooting
## 4.1 Input assembly not merged in correctly
A common problem is that after merging some assemblies, you get an error message stating that an input assembly was not merged in correctly because it is still listed as an external reference in the merged assembly. The most common cause of this problem is that one of the input assemblies, B, has an external reference to the incorrectly merged assembly, A, and also an external reference to another assembly, C, that itself has an external reference to A. Suppose the reference to C is to a method that takes an argument whose type is defined in A. Then the type signature of the method call to the method in C still refers to the type from A even in the merged assembly. After all, ILMerge cannot go and modify the assembly C so that it now depends on the type as it is defined in the output assembly after it has been merged!
The solution is to use the closed option (Section 2.6) to have ILMerge compute the transitive closure of the input assemblies to prevent this kind of &quot;dangling reference&quot;. In the example, that would result in all three assemblies A, B, and C, being merged. There is no way to merge just A and B without there still being an external reference to A.
## 4.2 Merged assembly causes a runtime error (not present in the unmerged assemblies)
The most frequent cause of problems when executing the target assembly is that ILMerge has no way to merge resources. Therefore resources are just copied over from the input assemblies into the target assembly. If these resources encode references to types defined in the input assemblies, then at runtime your program may fail because the type returned from the resource does not match the type as it is defined in the target assembly. You may even see a message that &quot;type &#39;T&#39; cannot be converted to type &#39;T&#39;&quot;. This looks confusing because the messages do not show the assembly that each type is defined in. The actual error is that one type is defined in the input assembly while the other is defined in the target assembly.
I do not know of any way to have ILMerge do the right thing in such cases. There is no general way to decode resources and change any type references they contain.
# 5 Dependencies
ILMerge is a stand-alone assembly dependent only on the v4.0 .NET Framework. (It actually uses two other assemblies: the assembly that makes up CCI itself, `System.Compiler.dll`, and `AssemblyResolver.dll`, which provides a small component for finding and loading assemblies when requested by the CCI Reader. But those assemblies have been merged into ILMerge using ILMerge before it is distributed.)
# 6 Acknowledgements
Without [Herman Venter](https://github.com/hermanventer), this tool could not have been written. Not only because it completely depends on CCI to provide the underlying functionality for reading, transforming, and writing IL, but because of all of his help and support.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="$(MSBuildThisFileDirectory)..\tools\ILMerge.MsBuild.Task.dll" TaskName="MergeTask" />
<Target Name="MergeAssembly" AfterTargets="CopyFilesToOutputDirectory">
<ItemGroup>
<CopyLocalReferences Include="@(ReferencePath)" Condition=" '%(CopyLocal)' == 'true' "/>
<DoNotCopyReferences Include="@(ReferencePath)" Condition=" '%(CopyLocal)' == 'false' " />
</ItemGroup>
<MergeTask
SolutionDir="$(SolutionDir)"
SolutionPath="$(SolutionPath)"
ProjectDir="$(ProjectDir)"
ProjectFileName="$(ProjectFileName)"
ProjectPath="$(ProjectPath)"
TargetDir="$(TargetDir)"
TargetPath="$(TargetPath)"
TargetFileName="$(TargetFileName)"
InputAssemblies="@(CopyLocalReferences)"
AdditionalLocations="@(DoNotCopyReferences->'%(rootdir)%(directory)')"
TargetFrameworkVersion="$(TargetFrameworkVersion)"
TargetArchitecture="$(Platform)"
ILMergeConsolePath="$(ILMergeConsolePath)"
KeyFile="$(AssemblyOriginatorKeyFile)"
ConfigurationFilePath="$(ProjectDir)ILMergeConfig.json"
/>
</Target>
</Project>

Binary file not shown.

Binary file not shown.