Beispiel #1
0
        internal ProjectTransferData(IProject project)
        {
            this.model   = project;
            version      = "2";
            target       = project.target;
            buildSystem  = project.buildSystem;
            debugSupport = project.debugSupport;

            configurations = project.configurations.Select(c => new vtConfiguration(c)).ToList();
        }
Beispiel #2
0
 /// <summary>
 /// Creates a new <see cref="IntermediateCompilerOptions"/> instance with the <paramref name="optimize"/>,
 /// <paramref name="comVisible"/>, <paramref name="allowUnsafeCode"/>,
 /// <paramref name="generateXMLDocs"/>, and <paramref name="target"/> provided.
 /// </summary>
 /// <param name="optimize">Whether to optimize the code in the resulted assembly.</param>
 /// <param name="comVisible">Whether the assembly is visible to COM targets.</param>
 /// <param name="allowUnsafeCode">Whether the assembly resulted will allow unsafe code to be
 /// generated.</param>
 /// <param name="generateXMLDocs">Whether to generate XML documentation with the
 /// resulted assembl.</param>
 /// <param name="target">The file name for the resulted <see cref="System.Reflection.Assembly"/>.</param>
 /// <param name="debugSupport">The level of support to give to a debugger.</param>
 public IntermediateCompilerOptions(string target, bool optimize = false, bool comVisible = false, bool allowUnsafeCode = false,
                                    bool generateXMLDocs         = false, bool inMemory   = false, bool keepTempFiles   = false, DebugSupport debugSupport = DebugSupport.Full)
 {
     this.KeepTempFiles   = keepTempFiles;
     this.target          = target;
     this.optimize        = optimize;
     this.comVisible      = COMVisible;
     this.allowUnsafeCode = allowUnsafeCode;
     this.generateXMLDocs = generateXMLDocs;
     this.inMemory        = inMemory;
     this.debugSupport    = debugSupport;
 }
Beispiel #3
0
        public override string GetDebugCommand(DebugSupport support, IIntermediateCompilerOptions options)
        {
            switch (support)
            {
            case DebugSupport.None:
                return(DebugNone);

            case DebugSupport.PDB:
                return(DebugPDBOnly);

            case DebugSupport.Full:
                return(DebugFull);
            }
            return(string.Empty);
        }
Beispiel #4
0
 public abstract string GetDebugCommand(DebugSupport support, IIntermediateCompilerOptions options);