Skip to content

Commit 335bddf

Browse files
committed
Update Resources.tt for VS2022
Also fixes a few other .tt files
1 parent ee3ff6d commit 335bddf

File tree

49 files changed

+562
-1292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+562
-1292
lines changed

src/EFCore.Abstractions/EFCore.Abstractions.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<None Update="Properties\AbstractionsStrings.Designer.tt">
2828
<Generator>TextTemplatingFileGenerator</Generator>
2929
<LastGenOutput>AbstractionsStrings.Designer.cs</LastGenOutput>
30+
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Diagnostics</CustomToolNamespace>
3031
</None>
3132
</ItemGroup>
3233

@@ -42,10 +43,4 @@
4243
</Compile>
4344
</ItemGroup>
4445

45-
<ItemGroup>
46-
<EmbeddedResource Update="Properties\AbstractionsStrings.resx">
47-
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Diagnostics</CustomToolNamespace>
48-
</EmbeddedResource>
49-
</ItemGroup>
50-
5146
</Project>

src/EFCore.Abstractions/Properties/AbstractionsStrings.Designer.cs

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<#
22
Session["ResourceFile"] = "AbstractionsStrings.resx";
3+
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Properties";
34
Session["NoDiagnostics"] = true;
45
#>
56
<#@ include file="..\..\..\tools\Resources.tt" #>

src/EFCore.Cosmos/EFCore.Cosmos.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
<ItemGroup>
6060
<None Update="Properties\CosmosStrings.Designer.tt">
61-
<CustomToolNamespace></CustomToolNamespace>
61+
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Cosmos.Internal</CustomToolNamespace>
6262
<Generator>TextTemplatingFileGenerator</Generator>
6363
<LastGenOutput>CosmosStrings.Designer.cs</LastGenOutput>
6464
</None>
@@ -68,10 +68,4 @@
6868
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
6969
</ItemGroup>
7070

71-
<ItemGroup>
72-
<EmbeddedResource Update="Properties\CosmosStrings.resx">
73-
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Cosmos.Internal</CustomToolNamespace>
74-
</EmbeddedResource>
75-
</ItemGroup>
76-
7771
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<#
22
Session["ResourceFile"] = "CosmosStrings.resx";
3+
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Cosmos.Properties";
34
Session["LoggingDefinitionsClass"] = "Diagnostics.Internal.CosmosLoggingDefinitions";
45
#>
56
<#@ include file="..\..\..\tools\Resources.tt" #>

src/EFCore.Design/EFCore.Design.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<None Update="Properties\DesignStrings.Designer.tt">
6868
<Generator>TextTemplatingFileGenerator</Generator>
6969
<LastGenOutput>DesignStrings.Designer.cs</LastGenOutput>
70+
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Internal</CustomToolNamespace>
7071
</None>
7172
</ItemGroup>
7273

@@ -82,10 +83,4 @@
8283
</Compile>
8384
</ItemGroup>
8485

85-
<ItemGroup>
86-
<EmbeddedResource Update="Properties\DesignStrings.resx">
87-
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Internal</CustomToolNamespace>
88-
</EmbeddedResource>
89-
</ItemGroup>
90-
9186
</Project>

src/EFCore.Design/Properties/DesignStrings.Designer.cs

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/EFCore.Design/Properties/DesignStrings.Designer.tt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<#
22
Session["ResourceFile"] = "DesignStrings.resx";
3+
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Properties";
34
Session["LoggingDefinitionsClass"] = "DesignLoggingDefinitions";
45
Session["NoDiagnostics"] = true;
56
#>

src/EFCore.Design/Properties/DesignStrings.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,4 +429,4 @@ Change your target project to the migrations project by using the Package Manage
429429
<data name="WritingSnapshot" xml:space="preserve">
430430
<value>Writing model snapshot to '{file}'.</value>
431431
</data>
432-
</root>
432+
</root>

src/EFCore.InMemory/EFCore.InMemory.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<None Update="Properties\InMemoryStrings.Designer.tt">
4848
<Generator>TextTemplatingFileGenerator</Generator>
4949
<LastGenOutput>InMemoryStrings.Designer.cs</LastGenOutput>
50+
<CustomToolNamespace>Microsoft.EntityFrameworkCore.InMemory.Internal</CustomToolNamespace>
5051
</None>
5152
</ItemGroup>
5253

@@ -62,10 +63,4 @@
6263
</Compile>
6364
</ItemGroup>
6465

65-
<ItemGroup>
66-
<EmbeddedResource Update="Properties\InMemoryStrings.resx">
67-
<CustomToolNamespace>Microsoft.EntityFrameworkCore.InMemory.Internal</CustomToolNamespace>
68-
</EmbeddedResource>
69-
</ItemGroup>
70-
7166
</Project>

0 commit comments

Comments
 (0)