예제 #1
0
        public void WriteCleanProject(Project project)
        {
            writer.WriteStartElement("delete");
            writer.WriteAttributeString("file", "${build.dir}\\" + project.OutputFile);
            writer.WriteAttributeString("failonerror", "false");
            writer.WriteEndElement(); // delete

            writer.WriteStartElement("delete");
            writer.WriteAttributeString("file", "${build.dir}\\" + project.AssemblyName + ".pdb");
            writer.WriteAttributeString("failonerror", "false");
            writer.WriteEndElement(); // delete

            foreach (File file in project.GetResXResourceFiles())
            {
                string path =
                    project.RootNamespace +
                    "." +
                    Path.GetFileNameWithoutExtension(file.RelativePath) +
                    ".resources";

                writer.WriteStartElement("delete");
                writer.WriteAttributeString("file", "${build.dir}\\" + path);
                writer.WriteAttributeString("failonerror", "false");
                writer.WriteEndElement(); // delete
            }

            foreach (File file in project.GetNonResXResourceFiles())
            {
                writer.WriteStartElement("delete");
                writer.WriteAttributeString("file", file.RelativePathFromSolutionDirectory + file.ResourceName);
                writer.WriteAttributeString("failonerror", "false");
                writer.WriteEndElement(); // delete
            }
        }
예제 #2
0
        public void WriteEndProjectDependencies()
        {
            writer.Write(" $({0}_SOURCE_FILES)", GetProjectName(project));

            if (project.GetResXResourceFiles().Count > 0)
            {
                writer.Write(" $({0}_RESX_FILES)", GetProjectName(project));
            }

            if (project.GetNonResXResourceFiles().Count > 0)
            {
                writer.Write(" $({0}_RESOURCE_FILES)", GetProjectName(project));
            }

            writer.WriteLine();

            writer.WriteLine("\tif not exist $(" + GetProjectName(project) + "_DIRECTORY) md $(" + GetProjectName(project) + "_DIRECTORY)");
        }
예제 #3
0
        public void WriteCleanProject(Project project) {
            writer.WriteStartElement("delete");
            writer.WriteAttributeString("file", "${build.dir}\\" + project.OutputFile);
            writer.WriteAttributeString("failonerror", "false");
            writer.WriteEndElement(); // delete

            writer.WriteStartElement("delete");
            writer.WriteAttributeString("file", "${build.dir}\\" + project.AssemblyName + ".pdb");
            writer.WriteAttributeString("failonerror", "false");
            writer.WriteEndElement(); // delete

            foreach (File file in project.GetResXResourceFiles()) {
                string path =
                    project.RootNamespace +
                    "." +
                    Path.GetFileNameWithoutExtension(file.RelativePath) +
                    ".resources";

                writer.WriteStartElement("delete");
                writer.WriteAttributeString("file", "${build.dir}\\" + path);
                writer.WriteAttributeString("failonerror", "false");
                writer.WriteEndElement(); // delete
            }

            foreach (File file in project.GetNonResXResourceFiles()) {
                writer.WriteStartElement("delete");
                writer.WriteAttributeString("file", file.RelativePathFromSolutionDirectory + file.ResourceName);
                writer.WriteAttributeString("failonerror", "false");
                writer.WriteEndElement(); // delete
            }
        }