Skip to content

Commit

Permalink
more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Sep 7, 2024
1 parent b20032a commit 4ac2ece
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,15 @@ internal static partial class ThisAssembly
public const string NeutralResourcesLanguage = "en-US";
}
```

### Namespace

Set the `ThisAssemblyNamespace` MSBuild property to set the namespace of the generated `ThisAssembly` class. Otherwise, it will be in the global namespace.

Put `ThisAssembly` in the projects root namespace.

```xml
<PropertyGroup>
<ThisAssemblyNamespace>$(RootNamespace)</ThisAssemblyNamespace>
</PropertyGroup>
```
2 changes: 0 additions & 2 deletions src/AssemblyMetadata.Generators/AssemblyMetadataWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ public static string Generate(EquatableArray<AssemblyConstant> constants, string
.AppendLine("\")]");

codeBuilder
.AppendLine("[global::System.Diagnostics.DebuggerNonUserCodeAttribute]")
.AppendLine("[global::System.Diagnostics.DebuggerStepThroughAttribute]")
.AppendLine("internal static partial class ThisAssembly")
.AppendLine("{")
.IncrementIndent()
Expand Down

0 comments on commit 4ac2ece

Please sign in to comment.