Skip to content

Commit 3f0bca9

Browse files
JamieMageeCopilot
andcommitted
chore: replace 2-string Resources.resx with constants
The resx contained only two never-localized strings and its <resheader> still referenced System.Windows.Forms. Replaced with an internal static Resources class with const strings; call sites are unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6335b25 commit 3f0bca9

4 files changed

Lines changed: 8 additions & 221 deletions

File tree

src/Microsoft.ComponentDetection.Common/Microsoft.ComponentDetection.Common.csproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,4 @@
2121
<ProjectReference Include="..\Microsoft.ComponentDetection.Contracts\Microsoft.ComponentDetection.Contracts.csproj" />
2222
</ItemGroup>
2323

24-
<ItemGroup>
25-
<Compile Update="Resources.Designer.cs">
26-
<DependentUpon>Resources.resx</DependentUpon>
27-
<DesignTime>True</DesignTime>
28-
<AutoGen>True</AutoGen>
29-
</Compile>
30-
<EmbeddedResource Update="Resources.resx">
31-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
32-
<Generator>ResXFileCodeGenerator</Generator>
33-
</EmbeddedResource>
34-
</ItemGroup>
35-
3624
</Project>

src/Microsoft.ComponentDetection.Common/Resources.Designer.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Microsoft.ComponentDetection.Common;
2+
3+
internal static class Resources
4+
{
5+
internal const string MissingComponentId = "The component object does not have a componentId specified";
6+
7+
internal const string MissingNodeInDependencyGraph = "Node with id {0} has not be inserted in the dependency graph";
8+
}

src/Microsoft.ComponentDetection.Common/Resources.resx

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

0 commit comments

Comments
 (0)