Skip to content

Commit eb8121b

Browse files
authored
Fic loc paths from projects for localization and remove res swix (#63)
* fix path for loc files * fix path to lcl files * mark vsix proj at not component * add common dynamic projects to setversion * fix path * remove unnecessary swix res and add option to set isproductcomonent for setup * check if property is set to true in microbuild before setting it * rename microbuild variable for clarity
1 parent 7504f40 commit eb8121b

11 files changed

Lines changed: 13 additions & 87 deletions

GoogleTestAdapter/Common.Dynamic.TAfGT/Common.Dynamic.TAfGT.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</PropertyGroup>
4141
<ItemGroup>
4242
<FilesToLocalize Include="$(OutDir)\GoogleTestAdapter.Common.Dynamic.dll">
43-
<TranslationFile>$(MSBuildThisFileDirectory)..\loc\lcl\{Lang}\GoogleTestAdapter.Common.Dynamic.lcl</TranslationFile>
43+
<TranslationFile>$(MSBuildThisFileDirectory)..\..\loc\lcl\{Lang}\GoogleTestAdapter.Common.Dynamic.dll.lcl</TranslationFile>
4444
</FilesToLocalize>
4545
<FilesToSign Include="$(OutDir)\GoogleTestAdapter.Common.Dynamic.dll" Condition="'$(RealSign)' == 'True'">
4646
<Authenticode>Microsoft</Authenticode>

GoogleTestAdapter/Core/Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</PropertyGroup>
4343
<ItemGroup>
4444
<FilesToLocalize Include="$(OutDir)\GoogleTestAdapter.Core.dll">
45-
<TranslationFile>$(MSBuildThisFileDirectory)..\loc\lcl\{Lang}\GoogleTestAdapter.Core.lcl</TranslationFile>
45+
<TranslationFile>$(MSBuildThisFileDirectory)..\..\loc\lcl\{Lang}\GoogleTestAdapter.Core.dll.lcl</TranslationFile>
4646
</FilesToLocalize>
4747
<FilesToSign Include="$(OutDir)\GoogleTestAdapter.Core.dll" Condition="'$(RealSign)' == 'True'">
4848
<Authenticode>Microsoft</Authenticode>

GoogleTestAdapter/DiaResolver/DiaResolver.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</PropertyGroup>
4545
<ItemGroup>
4646
<FilesToLocalize Include="$(OutDir)\GoogleTestAdapter.DiaResolver.dll">
47-
<TranslationFile>$(MSBuildThisFileDirectory)..\loc\lcl\{Lang}\GoogleTestAdapter.DiaResolver.lcl</TranslationFile>
47+
<TranslationFile>$(MSBuildThisFileDirectory)..\..\loc\lcl\{Lang}\GoogleTestAdapter.DiaResolver.dll.lcl</TranslationFile>
4848
</FilesToLocalize>
4949
<FilesToSign Include="$(OutDir)\GoogleTestAdapter.DiaResolver.dll" Condition="'$(RealSign)' == 'True'">
5050
<Authenticode>Microsoft</Authenticode>

GoogleTestAdapter/NewProjectWizard/NewProjectWizard.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</PropertyGroup>
4545
<ItemGroup>
4646
<FilesToLocalize Include="$(OutDir)\NewProjectWizard.dll">
47-
<TranslationFile>$(MSBuildThisFileDirectory)..\loc\lcl\{Lang}\NewProjectWizard.lcl</TranslationFile>
47+
<TranslationFile>$(MSBuildThisFileDirectory)..\..\loc\lcl\{Lang}\NewProjectWizard.dll.lcl</TranslationFile>
4848
<SettingsFile>$(LSBuildRoot)\MCP_excludeBaml.lss</SettingsFile>
4949
</FilesToLocalize>
5050
<FilesToSign Include="$(OutDir)\NewProjectWizard.dll" Condition="'$(RealSign)' == 'True'">

GoogleTestAdapter/Packaging.TAfGT/Packaging.TAfGT.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<CopyOutputSymbolsToOutputDirectory>true</CopyOutputSymbolsToOutputDirectory>
2727
<BypassVsixValidation>true</BypassVsixValidation>
2828
<DeployExtension Condition="'$(TestAdapterFlavor)' != 'TAfGT'">false</DeployExtension>
29-
<IsProductComponent>true</IsProductComponent>
29+
<IsProductComponent Condition="'$(ProductComponent)' == 'true'">true</IsProductComponent>
3030
</PropertyGroup>
3131
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3232
<DebugSymbols>true</DebugSymbols>

GoogleTestAdapter/SetVersion.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ Param([parameter(Mandatory=$true)] [string] $version)
22

33
$common_assembly_info = "Common\Properties\AssemblyInfo.cs"
44

5+
$common_dynamic_gta_assembly_info = "Common.Dynamic.GTA\Properties\AssemblyInfo.cs"
6+
$common_dynamic_tafgt_assembly_info = "Common.Dynamic.TAfGT\Properties\AssemblyInfo.cs"
7+
58
$core_assembly_info = "Core\Properties\AssemblyInfo.cs"
69
$coretests_assembly_info = "Core.Tests\Properties\AssemblyInfo.cs"
710

@@ -28,6 +31,9 @@ $wizard_assembly_info = "NewProjectWizard\Properties\AssemblyInfo.cs"
2831

2932
(Get-Content $common_assembly_info) | ForEach-Object { $_ -replace "0.1.0.0", $version } | Set-Content $common_assembly_info
3033

34+
(Get-Content $common_dynamic_gta_assembly_info) | ForEach-Object { $_ -replace "0.1.0.0", $version } | Set-Content $common_dynamic_gta_assembly_info
35+
(Get-Content $common_dynamic_tafgt_assembly_info) | ForEach-Object { $_ -replace "0.1.0.0", $version } | Set-Content $common_dynamic_tafgt_assembly_info
36+
3137
(Get-Content $core_assembly_info) | ForEach-Object { $_ -replace "0.1.0.0", $version } | Set-Content $core_assembly_info
3238
(Get-Content $coretests_assembly_info) | ForEach-Object { $_ -replace "0.1.0.0", $version } | Set-Content $coretests_assembly_info
3339

GoogleTestAdapter/TestAdapter/TestAdapter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</PropertyGroup>
4545
<ItemGroup>
4646
<FilesToLocalize Include="$(OutDir)\GoogleTestAdapter.TestAdapter.dll">
47-
<TranslationFile>$(MSBuildThisFileDirectory)..\loc\lcl\{Lang}\GoogleTestAdapter.TestAdapter.lcl</TranslationFile>
47+
<TranslationFile>$(MSBuildThisFileDirectory)..\..\loc\lcl\{Lang}\GoogleTestAdapter.TestAdapter.dll.lcl</TranslationFile>
4848
</FilesToLocalize>
4949
<FilesToSign Include="$(OutDir)\GoogleTestAdapter.TestAdapter.dll" Condition="'$(RealSign)' == 'True'">
5050
<Authenticode>Microsoft</Authenticode>

GoogleTestAdapter/VsPackage.TAfGT/VsPackage.TAfGT.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
</ItemGroup>
212212
<ItemGroup>
213213
<FilesToLocalize Include="$(OutDir)\GoogleTestAdapter.VsPackage.TAfGT.dll">
214-
<TranslationFile>$(MSBuildThisFileDirectory)..\loc\lcl\{Lang}\GoogleTestAdapter.VsPackage.TAfGT.lcl</TranslationFile>
214+
<TranslationFile>$(MSBuildThisFileDirectory)..\..\loc\lcl\{Lang}\GoogleTestAdapter.VsPackage.TAfGT.dll.lcl</TranslationFile>
215215
</FilesToLocalize>
216216
<FilesToSign Include="$(OutDir)\GoogleTestAdapter.VsPackage.TAfGT.dll" Condition="'$(RealSign)' == 'True'">
217217
<Authenticode>Microsoft</Authenticode>

swix/res/Microsoft.VisualStudio.VC.Ide.TestAdapterForGoogleTest.swixproj

Lines changed: 0 additions & 42 deletions
This file was deleted.

swix/res/Microsoft.VisualStudio.VC.Ide.TestAdapterForGoogleTest.swr

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)