Skip to content

Commit

Permalink
Update Resources.tt for VS2022
Browse files Browse the repository at this point in the history
Also fixes a few other .tt files
  • Loading branch information
bricelam committed Jun 14, 2022
1 parent a4f5b82 commit b5cf058
Show file tree
Hide file tree
Showing 50 changed files with 578 additions and 1,308 deletions.
7 changes: 1 addition & 6 deletions src/EFCore.Abstractions/EFCore.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<None Update="Properties\AbstractionsStrings.Designer.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>AbstractionsStrings.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Diagnostics</CustomToolNamespace>
</None>
</ItemGroup>

Expand All @@ -42,10 +43,4 @@
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\AbstractionsStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Diagnostics</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<#
Session["ResourceFile"] = "AbstractionsStrings.resx";
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Properties";
Session["NoDiagnostics"] = true;
#>
<#@ include file="..\..\..\tools\Resources.tt" #>
8 changes: 1 addition & 7 deletions src/EFCore.Cosmos/EFCore.Cosmos.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<ItemGroup>
<None Update="Properties\CosmosStrings.Designer.tt">
<CustomToolNamespace></CustomToolNamespace>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Cosmos.Internal</CustomToolNamespace>
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>CosmosStrings.Designer.cs</LastGenOutput>
</None>
Expand All @@ -68,10 +68,4 @@
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\CosmosStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Cosmos.Internal</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/EFCore.Cosmos/Properties/CosmosStrings.Designer.tt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<#
Session["ResourceFile"] = "CosmosStrings.resx";
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Cosmos.Properties";
Session["LoggingDefinitionsClass"] = "Diagnostics.Internal.CosmosLoggingDefinitions";
#>
<#@ include file="..\..\..\tools\Resources.tt" #>
7 changes: 1 addition & 6 deletions src/EFCore.Design/EFCore.Design.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<None Update="Properties\DesignStrings.Designer.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>DesignStrings.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Internal</CustomToolNamespace>
</None>
</ItemGroup>

Expand All @@ -82,10 +83,4 @@
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\DesignStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Internal</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>
13 changes: 7 additions & 6 deletions src/EFCore.Design/Properties/DesignStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/EFCore.Design/Properties/DesignStrings.Designer.tt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<#
Session["ResourceFile"] = "DesignStrings.resx";
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Properties";
Session["LoggingDefinitionsClass"] = "DesignLoggingDefinitions";
Session["NoDiagnostics"] = true;
#>
Expand Down
2 changes: 1 addition & 1 deletion src/EFCore.Design/Properties/DesignStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,4 @@ Change your target project to the migrations project by using the Package Manage
<data name="WritingSnapshot" xml:space="preserve">
<value>Writing model snapshot to '{file}'.</value>
</data>
</root>
</root>
7 changes: 1 addition & 6 deletions src/EFCore.InMemory/EFCore.InMemory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<None Update="Properties\InMemoryStrings.Designer.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>InMemoryStrings.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.InMemory.Internal</CustomToolNamespace>
</None>
</ItemGroup>

Expand All @@ -62,10 +63,4 @@
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\InMemoryStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.InMemory.Internal</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions src/EFCore.InMemory/Properties/InMemoryStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/EFCore.InMemory/Properties/InMemoryStrings.Designer.tt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<#
Session["ResourceFile"] = "InMemoryStrings.resx";
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.InMemory.Properties";
Session["LoggingDefinitionsClass"] = "Diagnostics.Internal.InMemoryLoggingDefinitions";
#>
<#@ include file="..\..\..\tools\Resources.tt" #>
7 changes: 1 addition & 6 deletions src/EFCore.Proxies/EFCore.Proxies.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<None Update="Properties\ProxiesStrings.Designer.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>ProxiesStrings.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Internal</CustomToolNamespace>
</None>
</ItemGroup>

Expand All @@ -66,10 +67,4 @@
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\ProxiesStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Internal</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/EFCore.Proxies/Properties/ProxiesStrings.Designer.tt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<#
Session["ResourceFile"] = "ProxiesStrings.resx";
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Properties";
Session["LoggingDefinitionsClass"] = "ProxiesLoggingDefinitions";
Session["NoDiagnostics"] = true;
#>
Expand Down
7 changes: 1 addition & 6 deletions src/EFCore.Relational/EFCore.Relational.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<None Update="Properties\RelationalStrings.Designer.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>RelationalStrings.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Diagnostics</CustomToolNamespace>
</None>
</ItemGroup>

Expand All @@ -69,10 +70,4 @@
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\RelationalStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.Diagnostics</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>
32 changes: 16 additions & 16 deletions src/EFCore.Relational/Properties/RelationalStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<#
Session["ResourceFile"] = "RelationalStrings.resx";
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.Properties";
Session["LoggingDefinitionsClass"] = "RelationalLoggingDefinitions";
#>
<#@ include file="..\..\..\tools\Resources.tt" #>
7 changes: 1 addition & 6 deletions src/EFCore.SqlServer.NTS/EFCore.SqlServer.NTS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<None Update="Properties\SqlServerNTSStrings.Designer.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>SqlServerNTSStrings.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.SqlServer.Internal</CustomToolNamespace>
</None>
</ItemGroup>

Expand All @@ -79,10 +80,4 @@
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\SqlServerNTSStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.SqlServer.Internal</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<#
Session["ResourceFile"] = "SqlServerNTSStrings.resx";
Session["ResourceNamespace"] = "Microsoft.EntityFrameworkCore.SqlServer.Properties";
Session["LoggingDefinitionsClass"] = "SqlServerNtsLoggingDefinitions";
Session["NoDiagnostics"] = true;
#>
Expand Down
7 changes: 1 addition & 6 deletions src/EFCore.SqlServer/EFCore.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<None Update="Properties\SqlServerStrings.Designer.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>SqlServerStrings.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.EntityFrameworkCore.SqlServer.Internal</CustomToolNamespace>
</None>
</ItemGroup>

Expand All @@ -70,10 +71,4 @@
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\SqlServerStrings.resx">
<CustomToolNamespace>Microsoft.EntityFrameworkCore.SqlServer.Internal</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>

</Project>
Loading

0 comments on commit b5cf058

Please sign in to comment.