-
Notifications
You must be signed in to change notification settings - Fork 407
Expand file tree
/
Copy pathPropertyGenerator.cs
More file actions
60 lines (53 loc) · 2.07 KB
/
PropertyGenerator.cs
File metadata and controls
60 lines (53 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Text;
namespace CodeGen.Generators.NanoFrameworkGen
{
class PropertyGenerator : GeneratorBase
{
private readonly string _version;
public PropertyGenerator(string version)
{
_version = version;
}
public string Generate()
{
Writer.WL(GeneratedFileHeader);
Writer.W($@"using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle(""CUnitsNet"")]
[assembly: AssemblyDescription(""Get all the common units of measurement and the conversions between them. It is light-weight and thoroughly tested."")]
[assembly: AssemblyConfiguration("""")]
[assembly: AssemblyCompany(""Andreas Gullberg Larsen"")]
[assembly: AssemblyProduct(""nanoFramework UnitsNet"")]
[assembly: AssemblyCopyright(""Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com)."")]
[assembly: AssemblyTrademark("""")]
[assembly: AssemblyCulture("""")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion(""{_version}"")]
[assembly: AssemblyFileVersion(""{_version}"")]
//////////////////////////////////////////////////
// This assembly doens't require native support //
[assembly: AssemblyNativeVersion(""0.0.0.0"")]
//////////////////////////////////////////////////
");
return Writer.ToString();
}
}
}