Click here to Skip to main content
16,006,768 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
rivate string GetFilename(string file)
        {
            int length = file.Length - (file.LastIndexOf("\\") + 1) - 4;
            return file.Substring(file.LastIndexOf("\\") + 1, length);

        }

        private string GetExtension(string file)
        {
            return file.Substring(file.LastIndexOf(".") + 1);

        }

        private void MsbuildGeneratorBtn_Click(object sender, EventArgs e)
        {
            GenerateMSBuildFile();

            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                this.textBox1.Text = folderBrowserDialog1.SelectedPath;
            }



            
        }

        private void GenerateMSBuildFile()
        {
            List<ProjectFile> projectList = new List<ProjectFile>();
            


            //WriteBuildFileHeader();

            // Add all of the selected files to the template.
            foreach (var projectFile in projectFileList)
            {
                if (projectFile.IsSelected == true)
                {
                    Console.WriteLine(projectFile);
                    projectList.Add(projectFile);
                    //WriteItem(projectFile.FullPath, "C:\\");


                }

            }
Posted
Comments
Sergey Alexandrovich Kryukov 30-Nov-11 2:07am    
Not quite clear why and what this code sample does.
--SA

1 solution

The purpose of it is not quite clear, and UI library to be used is not tagged, so the short answer is: by using one of the file dialogs.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900