Skip to content

Commit 3c5675b

Browse files
committed
WIP: Hardcode namespace for Resx generation
1 parent 3154a11 commit 3c5675b

File tree

2 files changed

+7
-0
lines changed
  • csharp
    • extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorWrapper
    • ql/integration-tests/all-platforms/standalone_resx

2 files changed

+7
-0
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorWrapper/Resx.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ protected override void GenerateAnalyzerConfig(IEnumerable<string> resources, st
2626
{
2727
using var sw = new StreamWriter(analyzerConfigPath);
2828
sw.WriteLine("is_global = true");
29+
sw.WriteLine("build_property.RootNamespace = abc"); // todo: fix the namespace
2930

3031
foreach (var f in resources.Select(f => f.Replace('\\', '/')))
3132
{
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
| Program | Program.<Main>$ |
22
| Program | Program.Program |
3+
| abc.test | abc.test.Culture |
4+
| abc.test | abc.test.GetResourceString |
5+
| abc.test | abc.test.Key123 |
6+
| abc.test | abc.test.Key456 |
7+
| abc.test | abc.test.ResourceManager |
8+
| abc.test | abc.test.s_resourceManager |

0 commit comments

Comments
 (0)