Skip to content

Commit 3a949eb

Browse files
committed
Migrate mscorlib to v2
- Update pipeline configs and helpers. - Update references. - Bump versions. - Update nuspec.
1 parent 8a237a3 commit 3a949eb

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

System.Device.Pwm/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/////////////////////////////////////////////////////////////////
1414
// This attribute is mandatory when building Interop libraries //
1515
// update this whenever the native assembly signature changes //
16-
[assembly: AssemblyNativeVersion("100.1.0.4")]
16+
[assembly: AssemblyNativeVersion("100.2.0.0")]
1717

1818
/////////////////////////////////////////////////////////////////
1919
// Setting ComVisible to false makes the types in this assembly not visible

System.Device.Pwm/System.Device.Pwm.nfproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
<AdditionalFiles Include="..\.sonarlint\nanoframework_system.device.pwm\CSharp\SonarLint.xml" Link="SonarLint.xml" />
5555
</ItemGroup>
5656
<ItemGroup>
57-
<Reference Include="mscorlib, Version=1.17.11.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
58-
<HintPath>..\packages\nanoFramework.CoreLibrary.1.17.11\lib\mscorlib.dll</HintPath>
57+
<Reference Include="mscorlib">
58+
<HintPath>..\packages\nanoFramework.CoreLibrary.2.0.0-preview.29\lib\netnano1.0\mscorlib.dll</HintPath>
5959
</Reference>
6060
</ItemGroup>
6161
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />

System.Device.Pwm/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="nanoFramework.CoreLibrary" version="1.17.11" targetFramework="netnano1.0" />
3+
<package id="nanoFramework.CoreLibrary" version="2.0.0-preview.29" targetFramework="netnano1.0" />
44
<package id="Nerdbank.GitVersioning" version="3.9.50" developmentDependency="true" targetFramework="netnano1.0" />
55
</packages>

System.Device.Pwm/packages.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
".NETnanoFramework,Version=v1.0": {
55
"nanoFramework.CoreLibrary": {
66
"type": "Direct",
7-
"requested": "[1.17.11, 1.17.11]",
8-
"resolved": "1.17.11",
9-
"contentHash": "HezzAc0o2XrSGf85xSeD/6xsO6ohF9hX6/iMQ1IZS6Zw6umr4WfAN2Jv0BrPxkaYwzEegJxxZujkHoUIAqtOMw=="
7+
"requested": "[2.0.0-preview.29, 2.0.0-preview.29]",
8+
"resolved": "2.0.0-preview.29",
9+
"contentHash": "7NDp9Sda9FTFBDN//X34r23rJBHUkCvyGvrFh9s5B8H2nMoet4J0OlEOiZRUsEPBXlsNpZFVp+Cd6OSjnLSg5A=="
1010
},
1111
"Nerdbank.GitVersioning": {
1212
"type": "Direct",

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ steps:
5252
- template: azure-pipelines-templates/class-lib-build.yml@templates
5353
parameters:
5454
sonarCloudProject: 'nanoframework_System.Device.Pwm'
55+
usePreviewBuild: true
5556

5657
# step from template @ nf-tools repo
5758
# report error

nanoFramework.System.Device.Pwm.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
This package requires a target with nanoFramework.System.Device.Pwm v$nativeVersion$ (checksum $checksum$).</description>
2020
<tags>nanoFramework C# csharp netmf netnf nanoFramework pwm</tags>
2121
<dependencies>
22-
<dependency id="nanoFramework.CoreLibrary" version="1.17.11" />
22+
<dependency id="nanoFramework.CoreLibrary" version="2.0.0-preview.29" />
2323
</dependencies>
2424
</metadata>
2525
<files>

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.1",
3+
"version": "2.0.0-preview.{height}",
44
"assemblyVersion": {
55
"precision": "revision"
66
},

0 commit comments

Comments
 (0)