Skip to content

Commit 4ac2ece

Browse files
committed
more tweaks
1 parent b20032a commit 4ac2ece

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,15 @@ internal static partial class ThisAssembly
3737
public const string NeutralResourcesLanguage = "en-US";
3838
}
3939
```
40+
41+
### Namespace
42+
43+
Set the `ThisAssemblyNamespace` MSBuild property to set the namespace of the generated `ThisAssembly` class. Otherwise, it will be in the global namespace.
44+
45+
Put `ThisAssembly` in the projects root namespace.
46+
47+
```xml
48+
<PropertyGroup>
49+
<ThisAssemblyNamespace>$(RootNamespace)</ThisAssemblyNamespace>
50+
</PropertyGroup>
51+
```

src/AssemblyMetadata.Generators/AssemblyMetadataWriter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ public static string Generate(EquatableArray<AssemblyConstant> constants, string
4343
.AppendLine("\")]");
4444

4545
codeBuilder
46-
.AppendLine("[global::System.Diagnostics.DebuggerNonUserCodeAttribute]")
47-
.AppendLine("[global::System.Diagnostics.DebuggerStepThroughAttribute]")
4846
.AppendLine("internal static partial class ThisAssembly")
4947
.AppendLine("{")
5048
.IncrementIndent()

0 commit comments

Comments
 (0)