Fixed pdb and mdb copying.

This commit is contained in:
the_fiddler 2008-01-25 13:35:21 +00:00
parent c3998267ea
commit 3e45bbc85c
2 changed files with 4 additions and 11 deletions

Binary file not shown.

View file

@ -247,7 +247,6 @@ namespace OpenTK.Build
List<string> exe_matches = new List<string>();
List<string> dll_matches = new List<string>();
List<string> dll_config_matches = new List<string>();
List<string> symbol_matches = new List<string>();
Directory.CreateDirectory(BinPath);
Directory.CreateDirectory(ExePath);
@ -255,18 +254,10 @@ namespace OpenTK.Build
Directory.CreateDirectory(ExamplePath);
Directory.CreateDirectory(DataPath);
FindFiles(SourcePath, "*.pdb", symbol_matches);
FindFiles(SourcePath, "*.mdb", symbol_matches);
foreach (string m in symbol_matches)
{
File.Delete(Path.Combine(LibPath, Path.GetFileName(m)));
File.Copy(m, Path.Combine(LibPath, Path.GetFileName(m)));
File.Delete(Path.Combine(ExamplePath, Path.GetFileName(m)));
File.Copy(m, Path.Combine(ExamplePath, Path.GetFileName(m)));
}
// Move the libraries and the config files.
FindFiles(SourcePath, "*.dll", dll_matches);
FindFiles(SourcePath, "OpenTK.pdb", dll_matches);
FindFiles(SourcePath, "OpenTK.mdb", dll_matches);
foreach (string m in dll_matches)
{
File.Delete(Path.Combine(LibPath, Path.GetFileName(m)));
@ -286,6 +277,8 @@ namespace OpenTK.Build
// Then the examples.
FindFiles(Path.Combine(SourcePath, "Examples"), "*.exe", example_matches);
FindFiles(SourcePath, "Examples.pdb", example_matches);
FindFiles(SourcePath, "Examples.mdb", example_matches);
foreach (string m in example_matches)
{
File.Delete(Path.Combine(ExamplePath, Path.GetFileName(m)));