当前位置: 首页>>代码示例>>C#>>正文


C# Derived.GetStartInfoPublic方法代码示例

本文整理汇总了C#中Derived.GetStartInfoPublic方法的典型用法代码示例。如果您正苦于以下问题:C# Derived.GetStartInfoPublic方法的具体用法?C# Derived.GetStartInfoPublic怎么用?C# Derived.GetStartInfoPublic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Derived的用法示例。


在下文中一共展示了Derived.GetStartInfoPublic方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetsResponseFile

        public static void SetsResponseFile()
        {
            // arrange
            var msbuild = new Derived { ResponseFile = "foo.rsp", };
            var expectedArgs = "@foo.rsp";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例2: SetsPreprocess

        public static void SetsPreprocess(string preprocess, string expectedArgs)
        {
            // arrange
            var msbuild = new Derived { Preprocess = preprocess, };

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:11,代码来源:MSBuildFacts.cs

示例3: SetsProperties

        public static void SetsProperties()
        {
            // arrange
            var msbuild = new Derived
            {
                Properties = new
                {
                    Configuration = "Release",
                    WarningLevel = 2,
                },
            };

            var expectedArgs = "/property:Configuration=Release /property:WarningLevel=2";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:20,代码来源:MSBuildFacts.cs

示例4: SetsVersion

        public static void SetsVersion()
        {
            // arrange
            var msbuild = new Derived { Version = true, };
            var expectedArgs = "/version";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例5: GivesHintsForSupportedVisualStudioVersions

        public static void GivesHintsForSupportedVisualStudioVersions(string version)
        {
            // arrange
            var msbuild = new Derived { MSBuildVersion = version, };

            // act
            var ex = Record.Exception(() => msbuild.GetStartInfoPublic());

            // assert
            ex.Should().BeOfType<InvalidOperationException>();
            ex.Message.Should().ContainEquivalentOf("MSBuild 2.0 (Visual Studio 2005) or later");
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例6: SetsToolsVersion

        public static void SetsToolsVersion()
        {
            // arrange
            var msbuild = new Derived { ToolsVersion = "3.5" };
            var expectedArgs = "/toolsversion:3.5";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例7: SetsValidate

        public static void SetsValidate(string validate, string expectedArgs)
        {
            // arrange
            var msbuild = new Derived { Validate = validate, };

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:11,代码来源:MSBuildFacts.cs

示例8: SetsIgnoreProjectExtensions

        public static void SetsIgnoreProjectExtensions()
        {
            // arrange
            var msbuild = new Derived { IgnoreProjectExtensions = new[] { ".vcproj", ".sln" }, };
            var expectedArgs = "/ignoreprojectextensions:.vcproj,.sln";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例9: SetsLoggers

        public static void SetsLoggers()
        {
            // arrange
            var msbuild = new Derived();
            msbuild.Loggers.Add(new Logger("C1.dll") { LoggerClass = "C1.Foo", LoggerParameters = "C1Bar;C1Baz" });
            msbuild.Loggers.Add(new Logger("F1.dll"));
            msbuild.Loggers.Add(new Logger("C2.dll") { LoggerClass = "C2.Foo" });
            msbuild.Loggers.Add(new Logger("F2.dll") { LoggerParameters = "F2Bar;F2Baz" });

            var expectedArgs =
                "/logger:C1.Foo,C1.dll;C1Bar;C1Baz " +
                "/logger:F1.dll " +
                "/logger:C2.Foo,C2.dll " +
                "/logger:F2.dll;F2Bar;F2Baz";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:21,代码来源:MSBuildFacts.cs

示例10: SetsFileLoggerParameters


//.........这里部分代码省略.........
                    EnableMPLogging = true,
                    DisableMPLogging = true,
                    ErrorsOnly = true,
                    ForceNoAlign = true,
                    NoItemAndPropertyList = true,
                    NoSummary = true,
                    PerformanceSummary = true,
                    ShowCommandLine = true,
                    ShowEventId = true,
                    ShowTimestamp = true,
                    Summary = true,
                    Verbosity = Verbosity.Minimal,
                    WarningsOnly = true,
                    Append = true,
                    LogFile = "logfile.txt",
                    Encoding = "UTF-8",
                }
            });

            // the lot
            msbuild.FileLoggers.Add(new FileLogger
            {
                Number = 1,
                FileLoggerParameters = new FileLoggerParameters
                {
                    DisableConsoleColor = true,
                    EnableMPLogging = true,
                    DisableMPLogging = true,
                    ErrorsOnly = true,
                    ForceNoAlign = true,
                    NoItemAndPropertyList = true,
                    NoSummary = true,
                    PerformanceSummary = true,
                    ShowCommandLine = true,
                    ShowEventId = true,
                    ShowTimestamp = true,
                    Summary = true,
                    Verbosity = Verbosity.Minimal,
                    WarningsOnly = true,
                    Append = false,
                    LogFile = "logfile1.txt",
                    Encoding = "Unicode",
                }
            });

            msbuild.FileLoggers.Add(new FileLogger
            {
                Number = 2,
                FileLoggerParameters = new FileLoggerParameters
                {
                    // NOTE (adamralph): no Append
                    DisableConsoleColor = true,
                    EnableMPLogging = true,
                    DisableMPLogging = true,
                    ErrorsOnly = true,
                    ForceNoAlign = true,
                    NoItemAndPropertyList = true,
                    NoSummary = true,
                    PerformanceSummary = true,
                    ShowCommandLine = true,
                    ShowEventId = true,
                    ShowTimestamp = true,
                    Summary = true,
                    Verbosity = Verbosity.Minimal,
                    WarningsOnly = true,
                    LogFile = "logfile2.txt",
                    Encoding = "ASCII",
                }
            });

            msbuild.FileLoggers.Add(new FileLogger
            {
                Number = 3,
            });

            var expectedArgs =
                "/fileLogger" +
                " " +
                "/fileLogger" +
                " " +
                "/fileLogger /fileloggerparameters:DisableConsoleColor;DisableMPLogging;EnableMPLogging;" +
                "ErrorsOnly;ForceNoAlign;NoItemAndPropertyList;NoSummary;PerformanceSummary;ShowCommandLine;" +
                "ShowEventId;ShowTimestamp;Summary;WarningsOnly;Append=true;Encoding=UTF-8;LogFile=logfile.txt;verbosity=minimal" +
                " " +
                "/fileLogger1 /fileloggerparameters1:DisableConsoleColor;DisableMPLogging;EnableMPLogging;" +
                "ErrorsOnly;ForceNoAlign;NoItemAndPropertyList;NoSummary;PerformanceSummary;ShowCommandLine;" +
                "ShowEventId;ShowTimestamp;Summary;WarningsOnly;Append=false;Encoding=Unicode;LogFile=logfile1.txt;verbosity=minimal" +
                " " +
                "/fileLogger2 /fileloggerparameters2:DisableConsoleColor;DisableMPLogging;EnableMPLogging;" +
                "ErrorsOnly;ForceNoAlign;NoItemAndPropertyList;NoSummary;PerformanceSummary;ShowCommandLine;" +
                "ShowEventId;ShowTimestamp;Summary;WarningsOnly;Encoding=ASCII;LogFile=logfile2.txt;verbosity=minimal" +
                " " +
                "/fileLogger3";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:101,代码来源:MSBuildFacts.cs

示例11: SetsHelp

        public static void SetsHelp()
        {
            // arrange
            var msbuild = new Derived { Help = true };
            var expectedArgs = "/help";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例12: SetsDistributedFileLogger

        public static void SetsDistributedFileLogger()
        {
            // arrange
            var msbuild = new Derived { DistributedFileLogger = true, };
            var expectedArgs = "/distributedFileLogger";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例13: SetsDetailedSummary

        public static void SetsDetailedSummary()
        {
            // arrange
            var msbuild = new Derived { DetailedSummary = true, };
            var expectedArgs = "/detailedsummary";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs

示例14: SetsConsoleLoggerParameters

        public static void SetsConsoleLoggerParameters()
        {
            // arrange
            var msbuild = new Derived
            {
                ConsoleLoggerParameters = new ConsoleLoggerParameters
                {
                    DisableConsoleColor = true,
                    EnableMPLogging = true,
                    DisableMPLogging = true,
                    ErrorsOnly = true,
                    ForceNoAlign = true,
                    NoItemAndPropertyList = true,
                    NoSummary = true,
                    PerformanceSummary = true,
                    ShowCommandLine = true,
                    ShowEventId = true,
                    ShowTimestamp = true,
                    Summary = true,
                    Verbosity = Verbosity.Minimal,
                    WarningsOnly = true,
                }
            };

            var expectedArgs = "/consoleloggerparameters:DisableConsoleColor;DisableMPLogging;EnableMPLogging;" +
                "ErrorsOnly;ForceNoAlign;NoItemAndPropertyList;NoSummary;PerformanceSummary;ShowCommandLine;" +
                "ShowEventId;ShowTimestamp;Summary;WarningsOnly;verbosity=minimal";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:34,代码来源:MSBuildFacts.cs

示例15: SetsSolution

        public static void SetsSolution()
        {
            // arrange
            var msbuild = new Derived { Solution = "Foo.sln", };
            var expectedArgs = "Foo.sln";

            // act
            var startInfo = msbuild.GetStartInfoPublic();

            // assert
            startInfo.Arguments.Should().Be(expectedArgs);
        }
开发者ID:modulexcite,项目名称:bau-msbuild,代码行数:12,代码来源:MSBuildFacts.cs


注:本文中的Derived.GetStartInfoPublic方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。