Skip to content

Commit

Permalink
md
Browse files Browse the repository at this point in the history
  • Loading branch information
vipwan committed Sep 7, 2024
1 parent 3cba199 commit 30e74ae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Gen-Metadata.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
## 自动创建程序集Metadata信息


#### 生成的Metadata信息包括:
```csharp
// <auto-generated/>
namespace Biwen.AutoClassGen.TestConsole.Generated;
[global::System.CodeDom.Compiler.GeneratedCode("Biwen.AutoClassGen", "1.3.9.6")]
public static class AssemblyMetadata
{
public const string TargetFramework = ".NETCoreApp,Version=v8.0";
public const string Company = "Inc";
public const string Configuration = "Debug";
public const string Copyright = "MIT";
public const string Description = "This is a test console App";
public const string FileVersion = "2.0.2";
public const string InformationalVersion = "2.0.1+3cba19993d7e9823630985a6af36b49a0e015e61";
public const string Product = "Test Console App";
public const string Title = "Biwen.AutoClassGen.TestConsole";
public const string Version = "2.0.1.0";
}
```


#### 使用方式:
```csharp
Console.WriteLine({namespace}.Generated.AssemblyMetadata.TargetFramework);
Expand Down

0 comments on commit 30e74ae

Please sign in to comment.