forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNfNugetPackages.cs
155 lines (153 loc) · 15.7 KB
/
NfNugetPackages.cs
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
namespace nanoFramework.IoT.Device.CodeConverter
{
public static class NfNugetPackages
{
public static NugetPackages[] GetnfNugetPackages()
{
var nfNugetPackages = new[]
{
/*
new NugetPackages {
OldProjectReferenceString= @"<ProjectReference Include=""$(MainLibraryPath)System.Device.Gpio.csproj"" />",
NewProjectReferenceString = @"<Reference Include=""System.Device.Gpio"">$LF$ <HintPath>packages\nanoFramework.System.Device.Gpio.1.0.0-preview.38\lib\System.Device.Gpio.dll </HintPath ></Reference >
<Reference Include=""System.Device.Spi"">$LF$ <HintPath>packages\nanoFramework.System.Device.Spi.1.0.0-preview.30\lib\System.Device.Spi.dll</HintPath ></Reference > ",
PackageConfigReferenceString = @" <package id=""nanoFramework.System.Device.Gpio"" version=""1.0.0-preview.38"" targetFramework=""netnanoframework10"" />
<package id=""nanoFramework.System.Device.Spi"" version=""1.0.0-preview.30"" targetFramework=""netnanoframework10"" />"
},
*/
new NugetPackages {
Namespace="System.Device.Gpio",
OldProjectReferenceString= @"<ProjectReference Include=""$(MainLibraryPath)System.Device.Gpio.csproj"" />",
NewProjectReferenceString = @"<Reference Include=""System.Device.Gpio"">$LF$ <HintPath>packages\nanoFramework.System.Device.Gpio.1.0.0-preview.40\lib\System.Device.Gpio.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference> $LF$<Reference Include=""nanoFramework.Runtime.Events"">$LF$ <HintPath>packages\nanoFramework.Runtime.Events.1.9.0-preview.26\lib\nanoFramework.Runtime.Events.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference> ",
PackageConfigReferenceString = @" <package id=""nanoFramework.System.Device.Gpio"" version=""1.0.0-preview.40"" targetFramework=""netnanoframework10"" />
<package id=""nanoFramework.Runtime.Events"" version=""1.9.0-preview.26"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="System.Device.Spi",
OldProjectReferenceString= @"<ProjectReference Include=""$(MainLibraryPath)System.Device.Spi.csproj"" />",
NewProjectReferenceString = @"<Reference Include=""System.Device.Spi"">$LF$ <HintPath>packages\nanoFramework.System.Device.Spi.1.0.0-preview.38\lib\System.Device.Spi.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference> ",
PackageConfigReferenceString = @" <package id=""nanoFramework.System.Device.Spi"" version=""1.0.0-preview.38"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="System.Device.I2c",
OldProjectReferenceString= @"<ProjectReference Include=""$(MainLibraryPath)System.Device.I2c.csproj"" />",
NewProjectReferenceString = @"<Reference Include=""System.Device.I2c"">$LF$ <HintPath>packages\nanoFramework.System.Device.I2c.1.0.1-preview.33\lib\System.Device.I2c.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""nanoFramework.System.Device.I2c"" version=""1.0.1-preview.33"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="RelativeHumidity",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.RelativeHumidity"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.RelativeHumidity.4.92.0\lib\UnitsNet.RelativeHumidity.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.RelativeHumidity"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Temperature",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Temperature"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Temperature.4.92.0\lib\UnitsNet.Temperature.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Temperature"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="ElectricPotential",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.ElectricPotential"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.ElectricPotential.4.92.0\lib\UnitsNet.ElectricPotential.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.ElectricPotential"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Pressure",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Pressure"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Pressure.4.92.0\lib\UnitsNet.Pressure.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Pressure"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Length",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Length"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Length.4.92.0\lib\UnitsNet.Length.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Length"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Density",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Density"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Density.4.92.0\lib\UnitsNet.Density.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Density"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="ElectricCurrent",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.ElectricCurrent"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.ElectricCurrent.4.92.0\lib\UnitsNet.ElectricCurrent.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.ElectricCurrent"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Frequency",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Frequency"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Frequency.4.92.0\lib\UnitsNet.Frequency.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Frequency"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Illuminance",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Illuminance"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Illuminance.4.92.0\lib\UnitsNet.Illuminance.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Illuminance"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="ElectricCharge",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.ElectricCurrent"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.ElectricCurrent.4.92.0\lib\UnitsNet.ElectricCurrent.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.ElectricCurrent"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Ratio",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Ratio"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Ratio.4.92.0\lib\UnitsNet.Ratio.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Ratio"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Duration",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.Duration"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.Duration.4.92.0\lib\UnitsNet.Duration.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.Duration"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="VolumeConcentration",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.VolumeConcentration"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.VolumeConcentration.4.92.0\lib\UnitsNet.VolumeConcentration.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.VolumeConcentration"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="ElectricResistance",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.ElectricResistance"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.ElectricResistance.4.92.0\lib\UnitsNet.ElectricResistance.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.ElectricResistance"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="ElectricPotentialDc",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""UnitsNet.ElectricPotentialDc"">$LF$ <HintPath>packages\UnitsNet.nanoFramework.ElectricPotentialDc.4.92.0\lib\UnitsNet.ElectricPotentialDc.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""UnitsNet.nanoFramework.ElectricPotentialDc"" version=""4.92.0"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="System.Math",
CodeMatchString="Math.",
OldProjectReferenceString= @"--NA--",
NewProjectReferenceString = @"<Reference Include=""System.Math"">$LF$ <HintPath>packages\nanoFramework.System.Math.1.4.0-preview.7\lib\System.Math.dll</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""nanoFramework.System.Math"" version=""1.4.0-preview.7"" targetFramework=""netnanoframework10"" />"
},
/*
// Unit Tests
new NugetPackages {
Namespace="Xunit",
OldProjectReferenceString= @"<PackageReference Include=""xunit"" Version=""2.4.0"" />",
NewProjectReferenceString = @"<Reference Include=""nanoFramework.UnitTestLauncher"">$LF$ <HintPath>packages\nanoFramework.TestFramework.1.0.117\lib\nanoFramework.UnitTestLauncher.exe</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""nanoFramework.TestFramework"" version=""1.0.117"" targetFramework=""netnanoframework10"" />"
},
new NugetPackages {
Namespace="Xunit.Abstractions",
OldProjectReferenceString= @"<PackageReference Include=""xunit"" Version=""2.4.0"" />",
NewProjectReferenceString = @"<Reference Include=""nanoFramework.UnitTestLauncher"">$LF$ <HintPath>packages\nanoFramework.TestFramework.1.0.117\lib\nanoFramework.UnitTestLauncher.exe</HintPath>$LF$ <Private>True</Private>$LF$ </Reference>",
PackageConfigReferenceString = @" <package id=""nanoFramework.TestFramework"" version=""1.0.117"" targetFramework=""netnanoframework10"" />"
},
*/
};
return nfNugetPackages;
}
}
}