Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 427e315

Browse files
committed
Move things around
1 parent 51479a7 commit 427e315

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,5 +238,4 @@ WiX.Toolset.DummyFile.txt
238238
nunit-UnitTests.xml
239239
nunit-TrackingCollectionTests.xml
240240
GitHubVS.sln.DotSettings
241-
src/GitHub.Exports/Settings/IPackageSettings.cs
242-
src/GitHub.VisualStudio/Settings/PackageSettingsGen.cs
241+
**/generated/*.cs

src/GitHub.Exports/GitHub.Exports.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
<ItemGroup>
139139
<Compile Include="Authentication\AuthenticationResultExtensions.cs" />
140140
<Compile Include="Extensions\ServiceProviderExtensions.cs" />
141-
<Compile Include="Settings\IPackageSettings.cs">
141+
<Compile Include="Settings\generated\IPackageSettings.cs">
142142
<AutoGen>True</AutoGen>
143143
<DesignTime>True</DesignTime>
144144
<DependentUpon>IPackageSettings.tt</DependentUpon>
@@ -188,7 +188,7 @@
188188
</ProjectReference>
189189
</ItemGroup>
190190
<ItemGroup>
191-
<Content Include="Settings\IPackageSettings.tt">
191+
<Content Include="Settings\generated\IPackageSettings.tt">
192192
<Generator>TextTemplatingFileGenerator</Generator>
193193
<LastGenOutput>IPackageSettings.cs</LastGenOutput>
194194
</Content>
@@ -199,7 +199,6 @@
199199
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
200200
<Import Project="$(SolutionDir)\src\common\t4.targets" />
201201
<Import Project="$(SolutionDir)\lib\Microsoft.TextTemplating.targets" />
202-
203202
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
204203
Other similar extension points exist, see Microsoft.Common.targets.
205204
<Target Name="BeforeBuild">

src/GitHub.Exports/Settings/IPackageSettings.tt renamed to src/GitHub.Exports/Settings/generated/IPackageSettings.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<#@ import namespace="Newtonsoft.Json.Linq" #>
99
<#@ output extension=".cs" #>
1010
<#
11-
var file = this.Host.ResolvePath(@"..\..\common\settings.json");
11+
var file = this.Host.ResolvePath(@"..\..\..\common\settings.json");
1212
var json = JObject.Parse(File.ReadAllText(file));
1313
#>
1414
// This is an automatically generated file, based on settings.json and PackageSettingsGen.tt
1515
/* settings.json content:
16-
<#@ include file="..\..\common\settings.json" #>
16+
<#@ include file="..\..\..\common\settings.json" #>
1717
*/
1818
namespace GitHub.Settings
1919
{

src/GitHub.VisualStudio/GitHub.VisualStudio.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@
250250
<Compile Include="Services\Program.cs" />
251251
<Compile Include="Services\SharedResources.cs" />
252252
<Compile Include="Settings\PackageSettings.cs" />
253-
<Compile Include="Settings\PackageSettingsGen.cs">
253+
<Compile Include="Settings\generated\PackageSettings.cs">
254254
<AutoGen>True</AutoGen>
255255
<DesignTime>True</DesignTime>
256-
<DependentUpon>PackageSettingsGen.tt</DependentUpon>
256+
<DependentUpon>PackageSettings.tt</DependentUpon>
257257
</Compile>
258258
<Compile Include="Settings\Settings.cs" />
259259
<Compile Include="Base\PackageBase.cs" />
@@ -345,9 +345,8 @@
345345
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
346346
<IncludeInVSIX>true</IncludeInVSIX>
347347
</Content>
348-
<Content Include="Settings\PackageSettingsGen.tt">
348+
<Content Include="Settings\generated\PackageSettings.tt">
349349
<Generator>TextTemplatingFileGenerator</Generator>
350-
<LastGenOutput>PackageSettingsGen.cs</LastGenOutput>
351350
<CustomToolNamespace>GitHub.VisualStudio.Settings</CustomToolNamespace>
352351
</Content>
353352
<None Include="packages.config">

src/GitHub.VisualStudio/Settings/PackageSettingsGen.tt renamed to src/GitHub.VisualStudio/Settings/generated/PackageSettings.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<#@ import namespace="Newtonsoft.Json.Linq" #>
88
<#@ output extension=".cs" #>
99
<#
10-
var file = this.Host.ResolvePath(@"..\..\common\settings.json");
10+
var file = this.Host.ResolvePath(@"..\..\..\common\settings.json");
1111
var json = JObject.Parse(File.ReadAllText(file));
1212
#>
1313
// This is an automatically generated file, based on settings.json and PackageSettingsGen.tt
1414
/* settings.json content:
15-
<#@ include file="..\..\common\settings.json" #>
15+
<#@ include file="..\..\..\common\settings.json" #>
1616
*/
1717

1818
using GitHub.Settings;

0 commit comments

Comments
 (0)