コード例 #1
0
ファイル: ToolsetState.cs プロジェクト: supersks/msbuild
        /// <summary>
        /// Additional constructor to make unit testing the TaskRegistry support easier
        /// </summary>
        /// <remarks>
        /// Internal for unit test purposes only.
        /// </remarks>
        /// <param name="engine"></param>
        /// <param name="toolset"></param>
        /// <param name="getFiles"></param>
        /// <param name="loadXmlFromPath"></param>
        internal ToolsetState(Engine engine,
                              Toolset toolset,
                              GetFiles getFiles,
                              LoadXmlFromPath loadXmlFromPath
                              )
        {
            this.parentEngine    = engine;
            this.loggingServices = engine.LoggingServices;

            ErrorUtilities.VerifyThrowArgumentNull(toolset, nameof(toolset));
            this.toolset = toolset;

            this.getFiles        = getFiles;
            this.loadXmlFromPath = loadXmlFromPath;
        }
コード例 #2
0
ファイル: ToolsetState.cs プロジェクト: nikson/msbuild
        /// <summary>
        /// Additional constructor to make unit testing the TaskRegistry support easier
        /// </summary>
        /// <remarks>
        /// Internal for unit test purposes only.
        /// </remarks>
        /// <param name="engine"></param>
        /// <param name="toolset"></param>
        /// <param name="getFiles"></param>
        /// <param name="loadXmlFromPath"></param>
        internal ToolsetState(Engine engine,
                         Toolset toolset,
                         GetFiles getFiles,
                         LoadXmlFromPath loadXmlFromPath
                        )
        {
            this.parentEngine = engine;
            this.loggingServices = engine.LoggingServices;

            ErrorUtilities.VerifyThrowArgumentNull(toolset, "toolset");
            this.toolset = toolset;

            this.getFiles = getFiles;
            this.loadXmlFromPath = loadXmlFromPath;
        }
コード例 #3
0
ファイル: Toolset.cs プロジェクト: cameron314/msbuild
        /// <summary>
        /// Additional constructor to make unit testing the TaskRegistry support easier
        /// </summary>
        /// <remarks>
        /// Internal for unit test purposes only.
        /// </remarks>
        /// <param name="toolsVersion">Name of the toolset</param>
        /// <param name="toolsPath">Path to this toolset's tasks and targets</param>
        /// <param name="buildProperties">
        /// Properties that should be associated with the Toolset.
        /// May be null, in which case an empty property group will be used.
        /// </param>
        /// <param name="projectCollection">The project collection.</param>
        /// <param name="getFiles">A delegate to intercept GetFiles calls.  For unit testing.</param>
        /// <param name="loadXmlFromPath">A delegate to intercept Xml load calls.  For unit testing.</param>
        internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<ProjectPropertyInstance> buildProperties, ProjectCollection projectCollection, DirectoryGetFiles getFiles, LoadXmlFromPath loadXmlFromPath, string msbuildOverrideTasksPath, DirectoryExists directoryExists)
            : this(toolsVersion, toolsPath, buildProperties, projectCollection.EnvironmentProperties, projectCollection.GlobalPropertiesCollection, null, msbuildOverrideTasksPath, null)
        {
            ErrorUtilities.VerifyThrowInternalNull(getFiles, "getFiles");
            ErrorUtilities.VerifyThrowInternalNull(loadXmlFromPath, "loadXmlFromPath");

            _directoryExists = directoryExists;
            _getFiles = getFiles;
            _loadXmlFromPath = loadXmlFromPath;
        }