示例#1
0
        internal virtual void ApplyProjectPropertiesToConfig()
        {
            Logger.ZLogTrace("ApplyProjectPropertiesToConfig...");

            var configReader = new AssemblyConfigHelper();

            configReader.ApplyTokens(AssemblyInfo, ProjectProperties);

            Logger.ZLogTrace("ApplyProjectPropertiesToConfig done");
        }
示例#2
0
        internal virtual void ApplyProjectPropertiesToConfig()
        {
            this.Log.Trace("ApplyProjectPropertiesToConfig...");

            var configReader = new AssemblyConfigHelper(this.Log);

            configReader.ApplyTokens(this.AssemblyInfo, this.ProjectProperties);

            this.Log.Trace("ApplyProjectPropertiesToConfig done");
        }
示例#3
0
        protected virtual void BuildAssemblyLocation(XDocument doc)
        {
            this.Log.Trace("BuildAssemblyLocation...");

            if (string.IsNullOrEmpty(this.AssemblyLocation))
            {
                this.Configuration = this.Configuration ?? "Debug";
                this.Platform      = this.Platform ?? "AnyCPU";
                var outputPath = this.GetOutputPath(doc, this.Configuration, this.Platform);

                if (string.IsNullOrEmpty(outputPath.Item2))
                {
                    this.Configuration = "Release";
                    outputPath         = this.GetOutputPath(doc, this.Configuration, this.Platform);
                }

                this.AssemblyName     = this.GetAssemblyName(doc);
                this.AssemblyLocation = Path.Combine(outputPath.Item2, this.AssemblyName + ".dll");

                if (!File.Exists(this.AssemblyLocation) && !this.Rebuild)
                {
                    this.Configuration    = "Release";
                    outputPath            = this.GetOutputPath(doc, this.Configuration, this.Platform);
                    this.AssemblyLocation = Path.Combine(outputPath.Item2, this.AssemblyName + ".dll");
                }

                this.OutputPath = outputPath.Item1;
            }

            this.Log.Info("    Configuration:" + this.Configuration);
            this.Log.Info("    OutputPath:" + this.OutputPath);
            this.Log.Info("    AssemblyLocation:" + this.AssemblyLocation);

            var configReader = new AssemblyConfigHelper(this.Log);

            configReader.ApplyTokens(this.AssemblyInfo, this.OutputPath);

            this.Log.Trace("BuildAssemblyLocation done");
        }