Skip to content

Commit 3990141

Browse files
committed
First Commit
Committing the initial parts of the DotNetCompressor Project. Added the code. Added a basic readme.
1 parent 2bd4b9b commit 3990141

5 files changed

Lines changed: 728 additions & 0 deletions

File tree

Source/AppMethod.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+

2+
ResourceManager rm = new ResourceManager("resource", Assembly.GetExecutingAssembly());
3+
byte[] appBytes = (byte[])rm.GetObject("%appname%");
4+
5+
//Loading App
6+
int appSize = %appsize%;
7+
MemoryStream memStr = new MemoryStream(appBytes);
8+
var gStream = new %mode%;
9+
10+
11+
12+
byte[] tAppBytes = new byte[appSize];
13+
14+
gStream.Read(tAppBytes, 0, appSize);
15+
16+
gStream.Close();
17+
18+
//End Loading App

Source/AppMethodEnd.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+

2+
//nothing passed on yet.
3+
4+
try {
5+
Assembly.Load(tAppBytes).EntryPoint.Invoke(null, new object[] { args });
6+
} catch(Exception ex)
7+
{
8+
Assembly.Load(tAppBytes).EntryPoint.Invoke(null, new object[] {});
9+
}
10+
11+
tAppBytes = null;

Source/Assembly.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[assembly: AssemblyTitle("")]
2+
[assembly: AssemblyDescription("")]
3+
[assembly: AssemblyConfiguration("")]
4+
[assembly: AssemblyCompany("")]
5+
[assembly: AssemblyProduct("")]
6+
[assembly: AssemblyCopyright("Copyright ©")]
7+
[assembly: AssemblyTrademark("")]
8+
[assembly: AssemblyCulture("")]
9+
10+
// Version information for an assembly consists of the following four values:
11+
//
12+
// Major Version
13+
// Minor Version
14+
// Build Number
15+
// Revision
16+
//
17+
// You can specify all the values or you can default the Build and Revision Numbers
18+
// by using the '*' as shown below:
19+
// [assembly: AssemblyVersion("1.0.*")]
20+
[assembly: AssemblyVersion("1.0.0.0")]
21+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)