File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ At build time a temporary `AssemblyInfo.cs` will be created that contains the
4545appropriate SemVer information. This will be included in the build pipeline.
4646Sample default:
4747
48- ``` c#
48+ ``` csharp
4949[assembly : AssemblyVersion (" 1.0.0.0" )]
5050[assembly : AssemblyFileVersion (" 1.0.0.0" )]
5151[assembly : AssemblyInformationalVersion (" 1.1.0+Branch.master.Sha.722aad3217bd49a6576b6f82f60884e612f9ba58" )]
@@ -63,7 +63,7 @@ Now when you build:
6363All other [ variables] ( ../more-info/variables.md ) will be injected into an
6464internal static class:
6565
66- ``` c#
66+ ``` csharp
6767namespace AssemblyName
6868{
6969 [CompilerGenerated ]
@@ -81,7 +81,7 @@ namespace AssemblyName
8181
8282##### All variables
8383
84- ```c#
84+ ```csharp
8585var assemblyName = assembly.GetName().Name;
8686var gitVersionInformationType = assembly.GetType(assemblyName + ".GitVersionInformation");
8787var fields = gitVersionInformationType.GetFields();
@@ -94,7 +94,7 @@ foreach (var field in fields)
9494
9595##### Specific variable
9696
97- ``` c#
97+ ``` csharp
9898var assemblyName = assembly .GetName ().Name ;
9999var gitVersionInformationType = assembly .GetType (assemblyName + " .GitVersionInformation" );
100100var versionField = gitVersionInformationType .GetField (" Major" );
You can’t perform that action at this time.
0 commit comments