Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
Committing the initial parts of the DotNetCompressor Project.

Added the code.
Added a basic readme.
  • Loading branch information
TotalTechGeek committed Mar 27, 2016
1 parent 2bd4b9b commit 3990141
Show file tree
Hide file tree
Showing 5 changed files with 728 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Source/AppMethod.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

ResourceManager rm = new ResourceManager("resource", Assembly.GetExecutingAssembly());
byte[] appBytes = (byte[])rm.GetObject("%appname%");

//Loading App
int appSize = %appsize%;
MemoryStream memStr = new MemoryStream(appBytes);
var gStream = new %mode%;



byte[] tAppBytes = new byte[appSize];

gStream.Read(tAppBytes, 0, appSize);

gStream.Close();

//End Loading App
11 changes: 11 additions & 0 deletions Source/AppMethodEnd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

//nothing passed on yet.

try {
Assembly.Load(tAppBytes).EntryPoint.Invoke(null, new object[] { args });
} catch(Exception ex)
{
Assembly.Load(tAppBytes).EntryPoint.Invoke(null, new object[] {});
}

tAppBytes = null;
21 changes: 21 additions & 0 deletions Source/Assembly.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("Copyright ©")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Loading

0 comments on commit 3990141

Please sign in to comment.