@@ -6,14 +6,21 @@ namespace CodeGen.Generators.NanoFrameworkGen
6
6
{
7
7
class PropertyGenerator : GeneratorBase
8
8
{
9
+ private readonly string _version ;
10
+
11
+ public PropertyGenerator ( string version )
12
+ {
13
+ _version = version ;
14
+ }
15
+
9
16
public override string Generate ( )
10
17
{
11
18
Writer . WL ( GeneratedFileHeader ) ;
12
- Writer . W ( @"using System.Reflection;
19
+ Writer . W ( $ @ "using System.Reflection;
13
20
using System.Runtime.CompilerServices;
14
21
using System.Runtime.InteropServices;
15
22
16
- // General Information about an assembly is controlled through the following
23
+ // General Information about an assembly is controlled through the following
17
24
// set of attributes. Change these attribute values to modify the information
18
25
// associated with an assembly.
19
26
[assembly: AssemblyTitle(""CUnitsNet"")]
@@ -25,23 +32,22 @@ public override string Generate()
25
32
[assembly: AssemblyTrademark("""")]
26
33
[assembly: AssemblyCulture("""")]
27
34
28
- // Setting ComVisible to false makes the types in this assembly not visible
29
- // to COM components. If you need to access a type in this assembly from
35
+ // Setting ComVisible to false makes the types in this assembly not visible
36
+ // to COM components. If you need to access a type in this assembly from
30
37
// COM, set the ComVisible attribute to true on that type.
31
38
[assembly: ComVisible(false)]
32
39
33
40
// Version information for an assembly consists of the following four values:
34
41
//
35
42
// Major Version
36
- // Minor Version
43
+ // Minor Version
37
44
// Build Number
38
45
// Revision
39
46
//
40
- // You can specify all the values or you can default the Build and Revision Numbers
47
+ // You can specify all the values or you can default the Build and Revision Numbers
41
48
// by using the '*' as shown below:
42
- // [assembly: AssemblyVersion(""1.0.*"")]
43
- [assembly: AssemblyVersion(""1.0.0.0"")]
44
- [assembly: AssemblyFileVersion(""1.0.0.0"")]
49
+ [assembly: AssemblyVersion(""{ _version } "")]
50
+ [assembly: AssemblyFileVersion(""{ _version } "")]
45
51
46
52
//////////////////////////////////////////////////
47
53
// This assembly doens't require native support //
0 commit comments