From 7fa662c8a17855b2db2eb96dfff532768937fb69 Mon Sep 17 00:00:00 2001 From: Spencer Bloom Date: Mon, 18 Nov 2019 13:41:02 -0800 Subject: [PATCH 1/4] update debug pdbs --- GoogleTestNuGet/Build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GoogleTestNuGet/Build.ps1 b/GoogleTestNuGet/Build.ps1 index 66bc3bd6d..7d57e1891 100644 --- a/GoogleTestNuGet/Build.ps1 +++ b/GoogleTestNuGet/Build.ps1 @@ -278,9 +278,9 @@ function Build-NuGet { Copy-CreateItem -Path "$BuildPath\RelWithDebInfo\gtest_main.pdb" -Destination "$DestinationPath\Release\gtest_main.pdb" } else { Copy-CreateItem -Path "$BuildPath\Debug\gtestd.lib" -Destination "$DestinationPath\Debug\gtestd.lib" - Copy-CreateItem -Path "$BuildPath\gtest.dir\Debug\gtest.pdb" -Destination "$DestinationPath\Debug\gtest.pdb" + Copy-CreateItem -Path "$BuildPath\gtest.dir\Debug\gtestd.pdb" -Destination "$DestinationPath\Debug\gtestd.pdb" Copy-CreateItem -Path "$BuildPath\Debug\gtest_maind.lib" -Destination "$DestinationPath\Debug\gtest_maind.lib" - Copy-CreateItem -Path "$BuildPath\gtest_main.dir\Debug\gtest_main.pdb" -Destination "$DestinationPath\Debug\gtest_main.pdb" + Copy-CreateItem -Path "$BuildPath\gtest_main.dir\Debug\gtest_maind.pdb" -Destination "$DestinationPath\Debug\gtest_maind.pdb" Copy-CreateItem -Path "$BuildPath\RelWithDebInfo\gtest.lib" -Destination "$DestinationPath\Release\gtest.lib" Copy-CreateItem -Path "$BuildPath\gtest.dir\RelWithDebInfo\gtest.pdb" -Destination "$DestinationPath\Release\gtest.pdb" From 512cc7cda7381e0a0060cea6b9aa8f9ef34b6883 Mon Sep 17 00:00:00 2001 From: Spencer Bloom Date: Mon, 18 Nov 2019 13:48:45 -0800 Subject: [PATCH 2/4] rename debug pdbs on copy for consistency --- GoogleTestNuGet/Build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GoogleTestNuGet/Build.ps1 b/GoogleTestNuGet/Build.ps1 index 7d57e1891..7970fcdf2 100644 --- a/GoogleTestNuGet/Build.ps1 +++ b/GoogleTestNuGet/Build.ps1 @@ -278,9 +278,9 @@ function Build-NuGet { Copy-CreateItem -Path "$BuildPath\RelWithDebInfo\gtest_main.pdb" -Destination "$DestinationPath\Release\gtest_main.pdb" } else { Copy-CreateItem -Path "$BuildPath\Debug\gtestd.lib" -Destination "$DestinationPath\Debug\gtestd.lib" - Copy-CreateItem -Path "$BuildPath\gtest.dir\Debug\gtestd.pdb" -Destination "$DestinationPath\Debug\gtestd.pdb" + Copy-CreateItem -Path "$BuildPath\gtest.dir\Debug\gtest.pdb" -Destination "$DestinationPath\Debug\gtestd.pdb" Copy-CreateItem -Path "$BuildPath\Debug\gtest_maind.lib" -Destination "$DestinationPath\Debug\gtest_maind.lib" - Copy-CreateItem -Path "$BuildPath\gtest_main.dir\Debug\gtest_maind.pdb" -Destination "$DestinationPath\Debug\gtest_maind.pdb" + Copy-CreateItem -Path "$BuildPath\gtest_main.dir\Debug\gtest_main.pdb" -Destination "$DestinationPath\Debug\gtest_maind.pdb" Copy-CreateItem -Path "$BuildPath\RelWithDebInfo\gtest.lib" -Destination "$DestinationPath\Release\gtest.lib" Copy-CreateItem -Path "$BuildPath\gtest.dir\RelWithDebInfo\gtest.pdb" -Destination "$DestinationPath\Release\gtest.pdb" From b64cc8b76a14bd254bcc4a15c94f00911c944d9f Mon Sep 17 00:00:00 2001 From: Spencer Bloom Date: Mon, 18 Nov 2019 15:59:32 -0800 Subject: [PATCH 3/4] update all versions to be consistent --- .../GoogleTestProjectTemplate/GoogleTest.vstemplate | 2 +- GoogleTestAdapter/Packaging.TAfGT/Packaging.TAfGT.csproj | 6 +++--- .../Packaging.TAfGT/source.extension.vsixmanifest | 6 +++--- GoogleTestNuGet/googletest.nuspec.tt | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/GoogleTestAdapter/GoogleTestProjectTemplate/GoogleTest.vstemplate b/GoogleTestAdapter/GoogleTestProjectTemplate/GoogleTest.vstemplate index 470b68558..70121ee25 100644 --- a/GoogleTestAdapter/GoogleTestProjectTemplate/GoogleTest.vstemplate +++ b/GoogleTestAdapter/GoogleTestProjectTemplate/GoogleTest.vstemplate @@ -26,7 +26,7 @@ - + diff --git a/GoogleTestAdapter/Packaging.TAfGT/Packaging.TAfGT.csproj b/GoogleTestAdapter/Packaging.TAfGT/Packaging.TAfGT.csproj index 5958a887b..d72c49bea 100644 --- a/GoogleTestAdapter/Packaging.TAfGT/Packaging.TAfGT.csproj +++ b/GoogleTestAdapter/Packaging.TAfGT/Packaging.TAfGT.csproj @@ -49,15 +49,15 @@ - + CopyIfNewer true - + CopyIfNewer true - + CopyIfNewer true diff --git a/GoogleTestAdapter/Packaging.TAfGT/source.extension.vsixmanifest b/GoogleTestAdapter/Packaging.TAfGT/source.extension.vsixmanifest index 82b8c6516..f7b9f2240 100644 --- a/GoogleTestAdapter/Packaging.TAfGT/source.extension.vsixmanifest +++ b/GoogleTestAdapter/Packaging.TAfGT/source.extension.vsixmanifest @@ -28,9 +28,9 @@ - - - + + + diff --git a/GoogleTestNuGet/googletest.nuspec.tt b/GoogleTestNuGet/googletest.nuspec.tt index d26d4b90d..a63f202bd 100644 --- a/GoogleTestNuGet/googletest.nuspec.tt +++ b/GoogleTestNuGet/googletest.nuspec.tt @@ -5,7 +5,7 @@ <#= PackageName #> - 1.8.1.1 + 1.8.1.2 Microsoft microsoft,visualcpp https://github.com/Microsoft/TestAdapterForGoogleTest From ed820968d6b72df0dc229a6eacb4ce9fd0ca3a39 Mon Sep 17 00:00:00 2001 From: Spencer Bloom Date: Mon, 18 Nov 2019 16:56:20 -0800 Subject: [PATCH 4/4] can't rename pdbs, special case targets for static debug pdb names --- GoogleTestNuGet/Build.ps1 | 4 ++-- GoogleTestNuGet/googletest.targets.tt | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/GoogleTestNuGet/Build.ps1 b/GoogleTestNuGet/Build.ps1 index 7970fcdf2..66bc3bd6d 100644 --- a/GoogleTestNuGet/Build.ps1 +++ b/GoogleTestNuGet/Build.ps1 @@ -278,9 +278,9 @@ function Build-NuGet { Copy-CreateItem -Path "$BuildPath\RelWithDebInfo\gtest_main.pdb" -Destination "$DestinationPath\Release\gtest_main.pdb" } else { Copy-CreateItem -Path "$BuildPath\Debug\gtestd.lib" -Destination "$DestinationPath\Debug\gtestd.lib" - Copy-CreateItem -Path "$BuildPath\gtest.dir\Debug\gtest.pdb" -Destination "$DestinationPath\Debug\gtestd.pdb" + Copy-CreateItem -Path "$BuildPath\gtest.dir\Debug\gtest.pdb" -Destination "$DestinationPath\Debug\gtest.pdb" Copy-CreateItem -Path "$BuildPath\Debug\gtest_maind.lib" -Destination "$DestinationPath\Debug\gtest_maind.lib" - Copy-CreateItem -Path "$BuildPath\gtest_main.dir\Debug\gtest_main.pdb" -Destination "$DestinationPath\Debug\gtest_maind.pdb" + Copy-CreateItem -Path "$BuildPath\gtest_main.dir\Debug\gtest_main.pdb" -Destination "$DestinationPath\Debug\gtest_main.pdb" Copy-CreateItem -Path "$BuildPath\RelWithDebInfo\gtest.lib" -Destination "$DestinationPath\Release\gtest.lib" Copy-CreateItem -Path "$BuildPath\gtest.dir\RelWithDebInfo\gtest.pdb" -Destination "$DestinationPath\Release\gtest.pdb" diff --git a/GoogleTestNuGet/googletest.targets.tt b/GoogleTestNuGet/googletest.targets.tt index 91fce8d18..348ae95e4 100644 --- a/GoogleTestNuGet/googletest.targets.tt +++ b/GoogleTestNuGet/googletest.targets.tt @@ -33,9 +33,12 @@ <# if (ConfigurationType == "dyn") { #> + + + <# } else { #> + + <# } #> - - <# if (ConfigurationType == "dyn") { #> @@ -49,16 +52,20 @@ <# if (ConfigurationType == "dyn") { #> + + + <# } else { #> + + <# } #> - - <# if (ConfigurationType == "dyn") { #> + <# } else { #> + + <# } #> - -