diff --git a/CitizenMP Server Updater.sln b/CitizenMP Server Updater.sln
index b7a66fa..367c334 100644
--- a/CitizenMP Server Updater.sln
+++ b/CitizenMP Server Updater.sln
@@ -14,6 +14,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{DBC750
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibGit2Sharp", "deps\libgit2sharp\LibGit2Sharp\LibGit2Sharp.csproj", "{EE6ED99F-CB12-4683-B055-D28FC7357A34}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CitizenMP Server Updater Wrapper", "src\wrapper\CitizenMP Server Updater Wrapper.csproj", "{FBE699CA-0D29-4B46-9196-4210581F66CE}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -28,6 +30,10 @@ Global
{EE6ED99F-CB12-4683-B055-D28FC7357A34}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE6ED99F-CB12-4683-B055-D28FC7357A34}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE6ED99F-CB12-4683-B055-D28FC7357A34}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FBE699CA-0D29-4B46-9196-4210581F66CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FBE699CA-0D29-4B46-9196-4210581F66CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FBE699CA-0D29-4B46-9196-4210581F66CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FBE699CA-0D29-4B46-9196-4210581F66CE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/src/updater/CitizenMP Server Updater.csproj b/src/updater/CitizenMP Server Updater.csproj
index ff5a6f4..f6e4378 100644
--- a/src/updater/CitizenMP Server Updater.csproj
+++ b/src/updater/CitizenMP Server Updater.csproj
@@ -8,7 +8,7 @@
Exe
Properties
CitizenMP.Server.Installer
- citimp_upd
+ citizenmp_server_updater
v4.0
512
49f15a44
@@ -25,6 +25,7 @@
prompt
4
false
+ false
AnyCPU
@@ -36,11 +37,11 @@
false
- $(SolutionDir)\bin\$(Configuration)\$(Platform)\
- $(SolutionDir)\obj\$(TargetName)\$(Configuration)\$(Platform)\
- $(SolutionDir)\obj\$(TargetName)\$(Configuration)\$(Platform)\
- $(SolutionDir)\obj\$(TargetName)\$(Configuration)\$(Platform)\
- $(SolutionDir)\bin\$(Configuration)\$(Platform)\
+ $(SolutionDir)\bin\$(Configuration)\$(Platform)\$(AssemblyName)\
+ $(SolutionDir)\obj\$(AssemblyName)\$(Configuration)\$(Platform)\
+ $(SolutionDir)\obj\$(AssemblyName)\$(Configuration)\$(Platform)\
+ $(SolutionDir)\obj\$(AssemblyName)\$(Configuration)\$(Platform)\
+ $(SolutionDir)\bin\$(Configuration)\$(Platform)\$(AssemblyName)\
CitizenMP.Server.Installer.Program
diff --git a/src/updater/Properties/AssemblyInfo.cs b/src/updater/Properties/AssemblyInfo.cs
index e488877..5c759f9 100644
--- a/src/updater/Properties/AssemblyInfo.cs
+++ b/src/updater/Properties/AssemblyInfo.cs
@@ -1,6 +1,8 @@
using System.Reflection;
using System.Runtime.InteropServices;
+#if !NO_COMMANDLINE
using CommandLine;
+#endif
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -13,8 +15,10 @@ using CommandLine;
[assembly: AssemblyCopyright("© 2014-2015 Carl Kittelberger")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
+#if !NO_COMMANDLINE
[assembly: AssemblyLicense("This is free software. You may redistribute copies of it under the terms of the MIT License .")]
[assembly: AssemblyUsage("Usage: citimp_upd.exe [options...] ")]
+#endif
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
diff --git a/src/wrapper/App.config b/src/wrapper/App.config
new file mode 100644
index 0000000..74ade9d
--- /dev/null
+++ b/src/wrapper/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/src/wrapper/CitizenMP Server Updater Wrapper.csproj b/src/wrapper/CitizenMP Server Updater Wrapper.csproj
new file mode 100644
index 0000000..12cf2bf
--- /dev/null
+++ b/src/wrapper/CitizenMP Server Updater Wrapper.csproj
@@ -0,0 +1,90 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {FBE699CA-0D29-4B46-9196-4210581F66CE}
+ Exe
+ Properties
+ CitizenMP.Server.Updater.Wrapper
+ citimp_upd
+ v4.0
+ 512
+
+ ..\..\
+ true
+ 9453c0f1
+
+
+ AnyCPU
+ true
+ full
+ false
+ TRACE;DEBUG;NO_COMMANDLINE
+ prompt
+ 4
+ false
+ false
+
+
+ AnyCPU
+ pdbonly
+ true
+ TRACE;NO_COMMANDLINE
+ prompt
+ 4
+ false
+ false
+
+
+ $(SolutionDir)\bin\$(Configuration)\$(Platform)\
+ $(SolutionDir)\obj\$(TargetName)\$(Configuration)\$(Platform)\
+ $(SolutionDir)\obj\$(TargetName)\$(Configuration)\$(Platform)\
+ $(SolutionDir)\obj\$(TargetName)\$(Configuration)\$(Platform)\
+ $(SolutionDir)\bin\$(Configuration)\$(Platform)\
+
+
+ Program
+
+
+
+
+
+
+ Properties\AssemblyInfo.cs
+
+
+
+
+
+
+
+
+
+
+
+
+ {ddf5040e-9c6c-4686-800b-d4563c289f01}
+ CitizenMP Server Updater
+ False
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/wrapper/FodyWeavers.xml b/src/wrapper/FodyWeavers.xml
new file mode 100644
index 0000000..2e6d4a7
--- /dev/null
+++ b/src/wrapper/FodyWeavers.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/wrapper/Program.cs b/src/wrapper/Program.cs
new file mode 100644
index 0000000..dd154d7
--- /dev/null
+++ b/src/wrapper/Program.cs
@@ -0,0 +1,19 @@
+using System.Linq;
+using System.Reflection;
+
+// ReSharper disable once CheckNamespace
+internal class Program
+{
+ private static void Main(string[] args)
+ {
+ var mainAsm = Assembly.Load("citizenmp_server_updater");
+
+ mainAsm.GetType("Costura.AssemblyLoader")
+ .GetMethod("Attach")
+ .Invoke(null, null);
+
+ mainAsm.GetType("CitizenMP.Server.Installer.Program")
+ .GetMethod("Main", BindingFlags.NonPublic | BindingFlags.Static)
+ .Invoke(null, new object[] {args});
+ }
+}
\ No newline at end of file
diff --git a/src/wrapper/packages.config b/src/wrapper/packages.config
new file mode 100644
index 0000000..83c52cc
--- /dev/null
+++ b/src/wrapper/packages.config
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file