Fixed pdb and mdb copying.
This commit is contained in:
parent
f8cbcf2f2f
commit
b6ecd787fc
2 changed files with 4 additions and 11 deletions
BIN
Build/Build.exe
BIN
Build/Build.exe
Binary file not shown.
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue