diff --git a/.gitignore b/.gitignore
index 8a30d25..44aadc1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -396,3 +396,13 @@ FodyWeavers.xsd
# JetBrains Rider
*.sln.iml
+
+# Exclude any new files in the bootstrap folder, only the manually added prebuild bootstrap
+bootstrap/debug
+bootstrap/*.pdb
+bootstrap/*.exe
+bootstrap/**
+bootstrap
+
+
+*.sln
\ No newline at end of file
diff --git a/bootstrap/prebuild.dll b/bootstrap/prebuild.dll
index 12402c8..53eaf34 100644
Binary files a/bootstrap/prebuild.dll and b/bootstrap/prebuild.dll differ
diff --git a/compile.bat b/compile.bat
new file mode 100644
index 0000000..f7dafff
--- /dev/null
+++ b/compile.bat
@@ -0,0 +1,4 @@
+@echo off
+
+runprebuild.bat
+dotnet build -c Release
\ No newline at end of file
diff --git a/compile.sh b/compile.sh
new file mode 100644
index 0000000..227c764
--- /dev/null
+++ b/compile.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Use the prebuild bootstrap to compile prebuild
+./runprebuild.sh
+dotnet build -c Release
\ No newline at end of file
diff --git a/prebuild.xml b/prebuild.xml
index f4a5f0b..15cf0f9 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -26,7 +26,7 @@
prebuild.xml
DEBUG;TRACE
false
- bin/Debug
+ ../../bootstrap/debug
true
Prebuild.snk
1595
+
+ false
+ false
TRACE
- bin/Release
+ ../../bootstrap/
true
false
Prebuild.snk
1595
+ false
+ false
@@ -74,5 +79,34 @@
+
+
+ Tara Piccari (tarapiccari@gmail.com)
+ C# Prebuild Scripting for code generation
+
+
+ ../../bootstrap/debug/
+ false
+ false
+
+
+
+
+ ../../bootstrap/
+ false
+ false
+
+
+
+
+
+
+
diff --git a/runprebuild.sh b/runprebuild.sh
index 55788e6..5713d98 100644
--- a/runprebuild.sh
+++ b/runprebuild.sh
@@ -1,2 +1,2 @@
-#!/bin/sh
-dotnet bootstrap/prebuild.dll /target vs2022 /targetframework net6_0 /excludedir = "obj | bin" /file prebuild.xml
+#!/bin/bash
+dotnet bootstrap/prebuild.dll /target vs2022 /excludedir = "obj | bin" /file prebuild.xml
diff --git a/src/App.ico b/source/Prebuild/App.ico
similarity index 100%
rename from src/App.ico
rename to source/Prebuild/App.ico
diff --git a/src/Core/Attributes/DataNodeAttribute.cs b/source/Prebuild/Core/Attributes/DataNodeAttribute.cs
similarity index 100%
rename from src/Core/Attributes/DataNodeAttribute.cs
rename to source/Prebuild/Core/Attributes/DataNodeAttribute.cs
diff --git a/src/Core/Attributes/OptionNodeAttribute.cs b/source/Prebuild/Core/Attributes/OptionNodeAttribute.cs
similarity index 100%
rename from src/Core/Attributes/OptionNodeAttribute.cs
rename to source/Prebuild/Core/Attributes/OptionNodeAttribute.cs
diff --git a/src/Core/Attributes/TargetAttribute.cs b/source/Prebuild/Core/Attributes/TargetAttribute.cs
similarity index 100%
rename from src/Core/Attributes/TargetAttribute.cs
rename to source/Prebuild/Core/Attributes/TargetAttribute.cs
diff --git a/src/Core/FatalException.cs b/source/Prebuild/Core/FatalException.cs
similarity index 100%
rename from src/Core/FatalException.cs
rename to source/Prebuild/Core/FatalException.cs
diff --git a/src/Core/Interfaces/IDataNode.cs b/source/Prebuild/Core/Interfaces/IDataNode.cs
similarity index 100%
rename from src/Core/Interfaces/IDataNode.cs
rename to source/Prebuild/Core/Interfaces/IDataNode.cs
diff --git a/src/Core/Interfaces/ITarget.cs b/source/Prebuild/Core/Interfaces/ITarget.cs
similarity index 100%
rename from src/Core/Interfaces/ITarget.cs
rename to source/Prebuild/Core/Interfaces/ITarget.cs
diff --git a/src/Core/Kernel.cs b/source/Prebuild/Core/Kernel.cs
similarity index 100%
rename from src/Core/Kernel.cs
rename to source/Prebuild/Core/Kernel.cs
diff --git a/src/Core/Nodes/AuthorNode.cs b/source/Prebuild/Core/Nodes/AuthorNode.cs
similarity index 100%
rename from src/Core/Nodes/AuthorNode.cs
rename to source/Prebuild/Core/Nodes/AuthorNode.cs
diff --git a/src/Core/Nodes/CleanFilesNode.cs b/source/Prebuild/Core/Nodes/CleanFilesNode.cs
similarity index 100%
rename from src/Core/Nodes/CleanFilesNode.cs
rename to source/Prebuild/Core/Nodes/CleanFilesNode.cs
diff --git a/src/Core/Nodes/CleanupNode.cs b/source/Prebuild/Core/Nodes/CleanupNode.cs
similarity index 100%
rename from src/Core/Nodes/CleanupNode.cs
rename to source/Prebuild/Core/Nodes/CleanupNode.cs
diff --git a/src/Core/Nodes/ConfigurationNode.cs b/source/Prebuild/Core/Nodes/ConfigurationNode.cs
similarity index 100%
rename from src/Core/Nodes/ConfigurationNode.cs
rename to source/Prebuild/Core/Nodes/ConfigurationNode.cs
diff --git a/src/Core/Nodes/ConfigurationNodeCollection.cs b/source/Prebuild/Core/Nodes/ConfigurationNodeCollection.cs
similarity index 100%
rename from src/Core/Nodes/ConfigurationNodeCollection.cs
rename to source/Prebuild/Core/Nodes/ConfigurationNodeCollection.cs
diff --git a/src/Core/Nodes/DataNode.cs b/source/Prebuild/Core/Nodes/DataNode.cs
similarity index 100%
rename from src/Core/Nodes/DataNode.cs
rename to source/Prebuild/Core/Nodes/DataNode.cs
diff --git a/src/Core/Nodes/DatabaseProjectNode.cs b/source/Prebuild/Core/Nodes/DatabaseProjectNode.cs
similarity index 100%
rename from src/Core/Nodes/DatabaseProjectNode.cs
rename to source/Prebuild/Core/Nodes/DatabaseProjectNode.cs
diff --git a/src/Core/Nodes/DatabaseReferenceNode.cs b/source/Prebuild/Core/Nodes/DatabaseReferenceNode.cs
similarity index 100%
rename from src/Core/Nodes/DatabaseReferenceNode.cs
rename to source/Prebuild/Core/Nodes/DatabaseReferenceNode.cs
diff --git a/src/Core/Nodes/DescriptionNode.cs b/source/Prebuild/Core/Nodes/DescriptionNode.cs
similarity index 100%
rename from src/Core/Nodes/DescriptionNode.cs
rename to source/Prebuild/Core/Nodes/DescriptionNode.cs
diff --git a/src/Core/Nodes/ExcludeNode.cs b/source/Prebuild/Core/Nodes/ExcludeNode.cs
similarity index 100%
rename from src/Core/Nodes/ExcludeNode.cs
rename to source/Prebuild/Core/Nodes/ExcludeNode.cs
diff --git a/src/Core/Nodes/FileNode.cs b/source/Prebuild/Core/Nodes/FileNode.cs
similarity index 100%
rename from src/Core/Nodes/FileNode.cs
rename to source/Prebuild/Core/Nodes/FileNode.cs
diff --git a/src/Core/Nodes/FilesNode.cs b/source/Prebuild/Core/Nodes/FilesNode.cs
similarity index 100%
rename from src/Core/Nodes/FilesNode.cs
rename to source/Prebuild/Core/Nodes/FilesNode.cs
diff --git a/src/Core/Nodes/MatchNode.cs b/source/Prebuild/Core/Nodes/MatchNode.cs
similarity index 100%
rename from src/Core/Nodes/MatchNode.cs
rename to source/Prebuild/Core/Nodes/MatchNode.cs
diff --git a/src/Core/Nodes/OptionsNode.cs b/source/Prebuild/Core/Nodes/OptionsNode.cs
similarity index 100%
rename from src/Core/Nodes/OptionsNode.cs
rename to source/Prebuild/Core/Nodes/OptionsNode.cs
diff --git a/src/Core/Nodes/PackageReferenceNode.cs b/source/Prebuild/Core/Nodes/PackageReferenceNode.cs
similarity index 100%
rename from src/Core/Nodes/PackageReferenceNode.cs
rename to source/Prebuild/Core/Nodes/PackageReferenceNode.cs
diff --git a/src/Core/Nodes/ProcessNode.cs b/source/Prebuild/Core/Nodes/ProcessNode.cs
similarity index 100%
rename from src/Core/Nodes/ProcessNode.cs
rename to source/Prebuild/Core/Nodes/ProcessNode.cs
diff --git a/src/Core/Nodes/ProjectNode.cs b/source/Prebuild/Core/Nodes/ProjectNode.cs
similarity index 100%
rename from src/Core/Nodes/ProjectNode.cs
rename to source/Prebuild/Core/Nodes/ProjectNode.cs
diff --git a/src/Core/Nodes/ProjectReferenceNode.cs b/source/Prebuild/Core/Nodes/ProjectReferenceNode.cs
similarity index 100%
rename from src/Core/Nodes/ProjectReferenceNode.cs
rename to source/Prebuild/Core/Nodes/ProjectReferenceNode.cs
diff --git a/src/Core/Nodes/ReferenceNode.cs b/source/Prebuild/Core/Nodes/ReferenceNode.cs
similarity index 100%
rename from src/Core/Nodes/ReferenceNode.cs
rename to source/Prebuild/Core/Nodes/ReferenceNode.cs
diff --git a/src/Core/Nodes/ReferencePathNode.cs b/source/Prebuild/Core/Nodes/ReferencePathNode.cs
similarity index 100%
rename from src/Core/Nodes/ReferencePathNode.cs
rename to source/Prebuild/Core/Nodes/ReferencePathNode.cs
diff --git a/src/Core/Nodes/SolutionNode.cs b/source/Prebuild/Core/Nodes/SolutionNode.cs
similarity index 100%
rename from src/Core/Nodes/SolutionNode.cs
rename to source/Prebuild/Core/Nodes/SolutionNode.cs
diff --git a/src/Core/Nodes/TextGenNode.cs b/source/Prebuild/Core/Nodes/TextGenNode.cs
similarity index 100%
rename from src/Core/Nodes/TextGenNode.cs
rename to source/Prebuild/Core/Nodes/TextGenNode.cs
diff --git a/src/Core/Parse/IfContext.cs b/source/Prebuild/Core/Parse/IfContext.cs
similarity index 100%
rename from src/Core/Parse/IfContext.cs
rename to source/Prebuild/Core/Parse/IfContext.cs
diff --git a/src/Core/Parse/Preprocessor.cs b/source/Prebuild/Core/Parse/Preprocessor.cs
similarity index 100%
rename from src/Core/Parse/Preprocessor.cs
rename to source/Prebuild/Core/Parse/Preprocessor.cs
diff --git a/src/Core/Targets/AutotoolsTarget.cs b/source/Prebuild/Core/Targets/AutotoolsTarget.cs
similarity index 100%
rename from src/Core/Targets/AutotoolsTarget.cs
rename to source/Prebuild/Core/Targets/AutotoolsTarget.cs
diff --git a/src/Core/Targets/DebugTarget.cs b/source/Prebuild/Core/Targets/DebugTarget.cs
similarity index 100%
rename from src/Core/Targets/DebugTarget.cs
rename to source/Prebuild/Core/Targets/DebugTarget.cs
diff --git a/src/Core/Targets/MakefileTarget.cs b/source/Prebuild/Core/Targets/MakefileTarget.cs
similarity index 100%
rename from src/Core/Targets/MakefileTarget.cs
rename to source/Prebuild/Core/Targets/MakefileTarget.cs
diff --git a/src/Core/Targets/MonoDevelopTarget.cs b/source/Prebuild/Core/Targets/MonoDevelopTarget.cs
similarity index 100%
rename from src/Core/Targets/MonoDevelopTarget.cs
rename to source/Prebuild/Core/Targets/MonoDevelopTarget.cs
diff --git a/src/Core/Targets/NAntTarget.cs b/source/Prebuild/Core/Targets/NAntTarget.cs
similarity index 100%
rename from src/Core/Targets/NAntTarget.cs
rename to source/Prebuild/Core/Targets/NAntTarget.cs
diff --git a/src/Core/Targets/SharpDevelop2Target.cs b/source/Prebuild/Core/Targets/SharpDevelop2Target.cs
similarity index 100%
rename from src/Core/Targets/SharpDevelop2Target.cs
rename to source/Prebuild/Core/Targets/SharpDevelop2Target.cs
diff --git a/src/Core/Targets/SharpDevelopTarget.cs b/source/Prebuild/Core/Targets/SharpDevelopTarget.cs
similarity index 100%
rename from src/Core/Targets/SharpDevelopTarget.cs
rename to source/Prebuild/Core/Targets/SharpDevelopTarget.cs
diff --git a/src/Core/Targets/ToolInfo.cs b/source/Prebuild/Core/Targets/ToolInfo.cs
similarity index 100%
rename from src/Core/Targets/ToolInfo.cs
rename to source/Prebuild/Core/Targets/ToolInfo.cs
diff --git a/src/Core/Targets/VS2002Target.cs b/source/Prebuild/Core/Targets/VS2002Target.cs
similarity index 100%
rename from src/Core/Targets/VS2002Target.cs
rename to source/Prebuild/Core/Targets/VS2002Target.cs
diff --git a/src/Core/Targets/VS2003Target.cs b/source/Prebuild/Core/Targets/VS2003Target.cs
similarity index 100%
rename from src/Core/Targets/VS2003Target.cs
rename to source/Prebuild/Core/Targets/VS2003Target.cs
diff --git a/src/Core/Targets/VS2005Target.cs b/source/Prebuild/Core/Targets/VS2005Target.cs
similarity index 100%
rename from src/Core/Targets/VS2005Target.cs
rename to source/Prebuild/Core/Targets/VS2005Target.cs
diff --git a/src/Core/Targets/VS2008Target.cs b/source/Prebuild/Core/Targets/VS2008Target.cs
similarity index 100%
rename from src/Core/Targets/VS2008Target.cs
rename to source/Prebuild/Core/Targets/VS2008Target.cs
diff --git a/src/Core/Targets/VS2010Target.cs b/source/Prebuild/Core/Targets/VS2010Target.cs
similarity index 100%
rename from src/Core/Targets/VS2010Target.cs
rename to source/Prebuild/Core/Targets/VS2010Target.cs
diff --git a/src/Core/Targets/VS2012Target.cs b/source/Prebuild/Core/Targets/VS2012Target.cs
similarity index 100%
rename from src/Core/Targets/VS2012Target.cs
rename to source/Prebuild/Core/Targets/VS2012Target.cs
diff --git a/src/Core/Targets/VS2013Target.cs b/source/Prebuild/Core/Targets/VS2013Target.cs
similarity index 100%
rename from src/Core/Targets/VS2013Target.cs
rename to source/Prebuild/Core/Targets/VS2013Target.cs
diff --git a/src/Core/Targets/VS2015Target.cs b/source/Prebuild/Core/Targets/VS2015Target.cs
similarity index 100%
rename from src/Core/Targets/VS2015Target.cs
rename to source/Prebuild/Core/Targets/VS2015Target.cs
diff --git a/src/Core/Targets/VS2017Target.cs b/source/Prebuild/Core/Targets/VS2017Target.cs
similarity index 100%
rename from src/Core/Targets/VS2017Target.cs
rename to source/Prebuild/Core/Targets/VS2017Target.cs
diff --git a/src/Core/Targets/VS2019Target.cs b/source/Prebuild/Core/Targets/VS2019Target.cs
similarity index 100%
rename from src/Core/Targets/VS2019Target.cs
rename to source/Prebuild/Core/Targets/VS2019Target.cs
diff --git a/src/Core/Targets/VS2022Target.cs b/source/Prebuild/Core/Targets/VS2022Target.cs
similarity index 100%
rename from src/Core/Targets/VS2022Target.cs
rename to source/Prebuild/Core/Targets/VS2022Target.cs
diff --git a/src/Core/Targets/VSGenericTarget.cs b/source/Prebuild/Core/Targets/VSGenericTarget.cs
similarity index 99%
rename from src/Core/Targets/VSGenericTarget.cs
rename to source/Prebuild/Core/Targets/VSGenericTarget.cs
index 3ab293f..4683a5a 100644
--- a/src/Core/Targets/VSGenericTarget.cs
+++ b/source/Prebuild/Core/Targets/VSGenericTarget.cs
@@ -691,8 +691,12 @@ public abstract class VSGenericTarget : ITarget
{
foreach(TextGenNode node in project.TextGenNodes)
{
+ string pathText = Path.Combine("Prebuild", "bootstrap", "SnapWrap.dll");
+ string filePath = Path.Combine(project.Path, node.Name);
+ string outputFile = Path.Combine(project.Path, node.OutputName);
+
ps.WriteLine(" ");
- ps.WriteLine($" ");
+ ps.WriteLine($" ");
ps.WriteLine($" ");
}
}
diff --git a/src/Core/Targets/VSVersion.cs b/source/Prebuild/Core/Targets/VSVersion.cs
similarity index 100%
rename from src/Core/Targets/VSVersion.cs
rename to source/Prebuild/Core/Targets/VSVersion.cs
diff --git a/src/Core/Targets/XcodeTarget.cs b/source/Prebuild/Core/Targets/XcodeTarget.cs
similarity index 100%
rename from src/Core/Targets/XcodeTarget.cs
rename to source/Prebuild/Core/Targets/XcodeTarget.cs
diff --git a/src/Core/UnknownLanguageException.cs b/source/Prebuild/Core/UnknownLanguageException.cs
similarity index 100%
rename from src/Core/UnknownLanguageException.cs
rename to source/Prebuild/Core/UnknownLanguageException.cs
diff --git a/src/Core/Utilities/CommandLineCollection.cs b/source/Prebuild/Core/Utilities/CommandLineCollection.cs
similarity index 100%
rename from src/Core/Utilities/CommandLineCollection.cs
rename to source/Prebuild/Core/Utilities/CommandLineCollection.cs
diff --git a/src/Core/Utilities/CurrentDirectory.cs b/source/Prebuild/Core/Utilities/CurrentDirectory.cs
similarity index 100%
rename from src/Core/Utilities/CurrentDirectory.cs
rename to source/Prebuild/Core/Utilities/CurrentDirectory.cs
diff --git a/src/Core/Utilities/Helper.cs b/source/Prebuild/Core/Utilities/Helper.cs
similarity index 100%
rename from src/Core/Utilities/Helper.cs
rename to source/Prebuild/Core/Utilities/Helper.cs
diff --git a/src/Core/Utilities/Log.cs b/source/Prebuild/Core/Utilities/Log.cs
similarity index 100%
rename from src/Core/Utilities/Log.cs
rename to source/Prebuild/Core/Utilities/Log.cs
diff --git a/src/Core/WarningException.cs b/source/Prebuild/Core/WarningException.cs
similarity index 100%
rename from src/Core/WarningException.cs
rename to source/Prebuild/Core/WarningException.cs
diff --git a/src/Prebuild.cs b/source/Prebuild/Prebuild.cs
similarity index 100%
rename from src/Prebuild.cs
rename to source/Prebuild/Prebuild.cs
diff --git a/source/Prebuild/Prebuild.csproj b/source/Prebuild/Prebuild.csproj
new file mode 100644
index 0000000..c17b6b6
--- /dev/null
+++ b/source/Prebuild/Prebuild.csproj
@@ -0,0 +1,262 @@
+
+
+
+ net7.0
+ false
+ Exe
+ false
+ disable
+ prebuild
+ true
+ false
+ false
+ false
+ True
+False
+
+
+
+ False
+ 285212672
+
+
+ DEBUG;TRACE
+
+ True
+ 4096
+ False
+ false
+ False
+ False
+ False
+ ..\..\bootstrap\debug\
+ False
+ False
+ False
+ 4
+ False
+ 1595
+ AnyCPU
+
+
+ False
+ 285212672
+
+
+ TRACE
+
+ False
+ 4096
+ True
+ false
+ False
+ False
+ False
+ ..\..\bootstrap\
+ False
+ False
+ False
+ 4
+ False
+ 1595
+ AnyCPU
+
+
+
+ System.EnterpriseServices
+ False
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+
diff --git a/src/Properties/AssemblyInfo.cs b/source/Prebuild/Properties/AssemblyInfo.cs
similarity index 100%
rename from src/Properties/AssemblyInfo.cs
rename to source/Prebuild/Properties/AssemblyInfo.cs
diff --git a/src/data/autotools.xml b/source/Prebuild/data/autotools.xml
similarity index 100%
rename from src/data/autotools.xml
rename to source/Prebuild/data/autotools.xml
diff --git a/src/data/dnpb-1.0.xsd b/source/Prebuild/data/dnpb-1.0.xsd
similarity index 100%
rename from src/data/dnpb-1.0.xsd
rename to source/Prebuild/data/dnpb-1.0.xsd
diff --git a/src/data/dnpb-1.1.xsd b/source/Prebuild/data/dnpb-1.1.xsd
similarity index 100%
rename from src/data/dnpb-1.1.xsd
rename to source/Prebuild/data/dnpb-1.1.xsd
diff --git a/src/data/dnpb-1.2.xsd b/source/Prebuild/data/dnpb-1.2.xsd
similarity index 100%
rename from src/data/dnpb-1.2.xsd
rename to source/Prebuild/data/dnpb-1.2.xsd
diff --git a/src/data/dnpb-1.3.xsd b/source/Prebuild/data/dnpb-1.3.xsd
similarity index 100%
rename from src/data/dnpb-1.3.xsd
rename to source/Prebuild/data/dnpb-1.3.xsd
diff --git a/src/data/dnpb-1.4.xsd b/source/Prebuild/data/dnpb-1.4.xsd
similarity index 100%
rename from src/data/dnpb-1.4.xsd
rename to source/Prebuild/data/dnpb-1.4.xsd
diff --git a/src/data/dnpb-1.5.xsd b/source/Prebuild/data/dnpb-1.5.xsd
similarity index 100%
rename from src/data/dnpb-1.5.xsd
rename to source/Prebuild/data/dnpb-1.5.xsd
diff --git a/src/data/prebuild-1.10.xsd b/source/Prebuild/data/prebuild-1.10.xsd
similarity index 100%
rename from src/data/prebuild-1.10.xsd
rename to source/Prebuild/data/prebuild-1.10.xsd
diff --git a/src/data/prebuild-1.11.xsd b/source/Prebuild/data/prebuild-1.11.xsd
similarity index 100%
rename from src/data/prebuild-1.11.xsd
rename to source/Prebuild/data/prebuild-1.11.xsd
diff --git a/src/data/prebuild-1.6.xsd b/source/Prebuild/data/prebuild-1.6.xsd
similarity index 100%
rename from src/data/prebuild-1.6.xsd
rename to source/Prebuild/data/prebuild-1.6.xsd
diff --git a/src/data/prebuild-1.7.xsd b/source/Prebuild/data/prebuild-1.7.xsd
similarity index 100%
rename from src/data/prebuild-1.7.xsd
rename to source/Prebuild/data/prebuild-1.7.xsd
diff --git a/src/data/prebuild-1.8.xsd b/source/Prebuild/data/prebuild-1.8.xsd
similarity index 100%
rename from src/data/prebuild-1.8.xsd
rename to source/Prebuild/data/prebuild-1.8.xsd
diff --git a/src/data/prebuild-1.9.xsd b/source/Prebuild/data/prebuild-1.9.xsd
similarity index 100%
rename from src/data/prebuild-1.9.xsd
rename to source/Prebuild/data/prebuild-1.9.xsd
diff --git a/source/SnapWrap/SnapWrap.cs b/source/SnapWrap/SnapWrap.cs
new file mode 100644
index 0000000..dcf352f
--- /dev/null
+++ b/source/SnapWrap/SnapWrap.cs
@@ -0,0 +1,45 @@
+using Microsoft.CodeAnalysis.CSharp.Scripting;
+using Microsoft.CodeAnalysis.Scripting;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace SnapWrap
+{
+ public class SnapWrap
+ {
+ public static void Main(string[] args)
+ {
+ string input = args[0];
+ string output = args[1];
+
+ try
+ {
+ var inputCode = File.ReadAllText(input);
+
+
+ var options = ScriptOptions.Default
+ .WithReferences(AppDomain.CurrentDomain.GetAssemblies()) // Add necessary assemblies
+ .WithImports("System");
+
+ using (var sw = new StreamWriter(output))
+ {
+ Console.SetOut(sw); // Redirect console output
+ var scriptState = CSharpScript.RunAsync(inputCode, options).Result;
+
+ // Reset console output
+ Console.SetOut(new StreamWriter(Console.OpenStandardOutput()));
+
+ Console.WriteLine("Output file generated successfully.");
+ }
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine($"ERROR: {ex.Message}");
+ }
+ }
+ }
+}
diff --git a/source/SnapWrap/SnapWrap.csproj b/source/SnapWrap/SnapWrap.csproj
new file mode 100644
index 0000000..4349f9a
--- /dev/null
+++ b/source/SnapWrap/SnapWrap.csproj
@@ -0,0 +1,68 @@
+
+
+
+ net7.0
+ false
+ Exe
+ false
+ disable
+ SnapWrap
+ true
+ false
+ false
+ True
+False
+
+
+
+ False
+ 285212672
+
+
+ DEBUG;TRACE
+
+ True
+ 4096
+ False
+ false
+ False
+ False
+ False
+ ..\..\bootstrap\debug\
+ False
+ False
+ False
+ 4
+ False
+ 1595
+ AnyCPU
+
+
+ False
+ 285212672
+
+
+ TRACE
+
+ False
+ 4096
+ True
+ false
+ False
+ False
+ False
+ ..\..\bootstrap\
+ False
+ False
+ False
+ 4
+ False
+ 1595
+ AnyCPU
+
+
+
+
+
+
+