From a4daaed283ab3bdb071ba6caaed1f80c86370dbe Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Thu, 12 Jul 2012 14:11:56 +0000 Subject: [PATCH] --- XSharp/source/XSharp.XSC/Program.cs | 23 +++++ .../XSharp.XSC/Properties/AssemblyInfo.cs | 36 ++++++++ XSharp/source/XSharp.XSC/XSharp.XSC.csproj | 86 ++++++++++++++++++ .../XSharp.XSC/XSharp.XSC.csproj.vspscc | 10 ++ XSharp/source/XSharp.XSC/XSharp.ico | Bin 0 -> 5430 bytes 5 files changed, 155 insertions(+) create mode 100644 XSharp/source/XSharp.XSC/Program.cs create mode 100644 XSharp/source/XSharp.XSC/Properties/AssemblyInfo.cs create mode 100644 XSharp/source/XSharp.XSC/XSharp.XSC.csproj create mode 100644 XSharp/source/XSharp.XSC/XSharp.XSC.csproj.vspscc create mode 100644 XSharp/source/XSharp.XSC/XSharp.ico diff --git a/XSharp/source/XSharp.XSC/Program.cs b/XSharp/source/XSharp.XSC/Program.cs new file mode 100644 index 000000000..0169ee10b --- /dev/null +++ b/XSharp/source/XSharp.XSC/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using Cosmos.Compiler.XSharp; + +namespace XSharp.XSC { + class Program { + static void Main(string[] aArgs) { + try { + string xSrc = aArgs[0]; + string xNamespace = aArgs[1]; + + var xGenerator = new CSharpGenerator(); + xGenerator.Execute(xNamespace, xSrc); + } catch (Exception ex) { + Console.WriteLine(ex.Message); + Environment.Exit(1); + } + } + } +} diff --git a/XSharp/source/XSharp.XSC/Properties/AssemblyInfo.cs b/XSharp/source/XSharp.XSC/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..2d53cb330 --- /dev/null +++ b/XSharp/source/XSharp.XSC/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Cosmos.Compiler.XSharp.XSC")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Cosmos.Compiler.XSharp.XSC")] +[assembly: AssemblyCopyright("Copyright © 2012")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 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 +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f2b8882e-e831-4ba6-8f68-7809575f6bd9")] + +// 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")] diff --git a/XSharp/source/XSharp.XSC/XSharp.XSC.csproj b/XSharp/source/XSharp.XSC/XSharp.XSC.csproj new file mode 100644 index 000000000..b9e027a91 --- /dev/null +++ b/XSharp/source/XSharp.XSC/XSharp.XSC.csproj @@ -0,0 +1,86 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {7B8499A7-0A8D-44FC-8181-9666CC198025} + Exe + Properties + XSharp.XSC + XSC + v4.0 + Client + 512 + SAK + SAK + SAK + SAK + + + XSharp.ico + + + true + bin\Debug\ + DEBUG;TRACE + full + AnyCPU + bin\Debug\XSC.exe.CodeAnalysisLog.xml + true + GlobalSuppressions.cs + prompt + MinimumRecommendedRules.ruleset + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets + false + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules + false + + + bin\Release\ + TRACE + true + pdbonly + AnyCPU + bin\Release\XSC.exe.CodeAnalysisLog.xml + true + GlobalSuppressions.cs + prompt + MinimumRecommendedRules.ruleset + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets + false + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules + false + + + + + + + + + + + + + + + + + + + + {A281A1B1-C718-4BCB-A7BE-ED840A70449A} + Cosmos.Compiler.XSharp + + + + + \ No newline at end of file diff --git a/XSharp/source/XSharp.XSC/XSharp.XSC.csproj.vspscc b/XSharp/source/XSharp.XSC/XSharp.XSC.csproj.vspscc new file mode 100644 index 000000000..feffdecaa --- /dev/null +++ b/XSharp/source/XSharp.XSC/XSharp.XSC.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/XSharp/source/XSharp.XSC/XSharp.ico b/XSharp/source/XSharp.XSC/XSharp.ico new file mode 100644 index 0000000000000000000000000000000000000000..911c9d2a0159c856737a1fc474f7050c116372b8 GIT binary patch literal 5430 zcmcgw2~^bQ5nrPw8k(SDq9&SXjo^WDYCuCk5D^pvITaP23MgKwHq}&P<4r{CfuLvv zMHB_(6e(g2ps?QZv{6wINDVfH2odC3c7L7u)?IdkRCwie-kbfdnfc8(-+ae^C6aEE zHzY%cN~jzvIn_rZ(U(XheW>L2;vN#oEvk>CJ`$1G5OaTL=uWs!ue_}TbhEzxxL3h; zz23L?O8VW|-=k+|Y;?73akQlOqbP|^SKIBVy^>=Rou>(sUKI(FE{{WD8y(W(G~4%B6|cH?oeSzU~=uwVE61YS13DoI)XothuQzH&LJ9MkL z3i6w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