Skip to content

Commit 215ee36

Browse files
authored
Merge pull request #69 from nanoframework/release-v1.1.2
2 parents e35d6c7 + 99af451 commit 215ee36

File tree

10 files changed

+78
-80
lines changed

10 files changed

+78
-80
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Change Log
22

3+
## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/lib-CoreLibrary/tree/HEAD)
4+
5+
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.1.1...HEAD)
6+
7+
**Implemented enhancements:**
8+
9+
- Add AssemblyNativeVersionAttribute [\#67](https://github.com/nanoframework/lib-CoreLibrary/pull/67) [[Breaking-Change](https://github.com/nanoframework/lib-CoreLibrary/labels/Breaking-Change)]
10+
11+
**Fixed bugs:**
12+
13+
- Fix typo in TimeSpan [\#66](https://github.com/nanoframework/lib-CoreLibrary/pull/66)
14+
15+
**Documentation and other chores:**
16+
17+
- Update GitVersioning NuGet [\#68](https://github.com/nanoframework/lib-CoreLibrary/pull/68)
18+
319
## [v1.1.1](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.1.1) (2019-01-21)
420
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.1.0...v1.1.1)
521

azure-pipelines.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ steps:
3939
# step from template @ nf-tools repo
4040
# all build, update and publish steps
4141
- template: azure-pipelines-templates/class-lib-build.yml@templates
42-
parameters:
43-
sourceFileName: 'corlib_native.cpp'
44-
classLibName: 'CoreLibrary'
4542

4643
# update dependencies
4744
- task: UpdatenFDependencies@1

source/Nuget.CoreLibrary/Nuget.CoreLibrary.nuproj

Lines changed: 0 additions & 62 deletions
This file was deleted.

source/nanoFramework.CoreLibrary/CoreLibrary.nfproj

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@
313313
<NFMDP_PE_ExcludeClassByName Include="System.Reflection.AssemblyVersionAttribute">
314314
<InProject>false</InProject>
315315
</NFMDP_PE_ExcludeClassByName>
316+
<NFMDP_PE_ExcludeClassByName Include="System.Reflection.AssemblyNativeVersionAttribute">
317+
<InProject>false</InProject>
318+
</NFMDP_PE_ExcludeClassByName>
316319
<NFMDP_PE_ExcludeClassByName Include="System.Reflection.DefaultMemberAttribute">
317320
<InProject>false</InProject>
318321
</NFMDP_PE_ExcludeClassByName>
@@ -373,12 +376,19 @@
373376
</ItemGroup>
374377
<ItemGroup>
375378
<None Include="..\key.snk" />
379+
<None Include="packages.config" />
376380
</ItemGroup>
377381
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
378-
<Import Project="..\packages\Nerdbank.GitVersioning.2.3.34\build\Nerdbank.GitVersioning.targets" />
379382
<ProjectExtensions>
380383
<ProjectCapabilities>
381384
<ProjectConfigurationsDeclaredAsItems />
382385
</ProjectCapabilities>
383386
</ProjectExtensions>
387+
<Import Project="..\packages\Nerdbank.GitVersioning.3.0.6-beta\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\packages\Nerdbank.GitVersioning.3.0.6-beta\build\Nerdbank.GitVersioning.targets')" />
388+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
389+
<PropertyGroup>
390+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
391+
</PropertyGroup>
392+
<Error Condition="!Exists('..\packages\Nerdbank.GitVersioning.3.0.6-beta\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Nerdbank.GitVersioning.3.0.6-beta\build\Nerdbank.GitVersioning.targets'))" />
393+
</Target>
384394
</Project>

source/nanoFramework.CoreLibrary/System/AssemblyInfo2.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66

77
using System;
88
using System.Reflection;
9+
using System.Runtime.CompilerServices;
910

1011
[assembly: CLSCompliant(true)]
1112
[assembly: AssemblyTitle("mscorlib")]
1213
[assembly: AssemblyCompany("nanoFramework Contributors")]
1314
[assembly: AssemblyProduct("nanoFramework mscorlib")]
1415
[assembly: AssemblyCopyright("Copyright © nanoFramework Contributors 2017")]
16+
17+
[assembly: AssemblyNativeVersion("1.1.1.")]

source/nanoFramework.CoreLibrary/System/IO/Stream.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public abstract long Position
8383
}
8484

8585
/// <summary>
86-
/// Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.
86+
/// Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
8787
/// </summary>
8888
/// <value>
89-
/// A value, in miliseconds, that determines how long the stream will attempt to read before timing out.
89+
/// A value, in milliseconds, that determines how long the stream will attempt to read before timing out.
9090
/// </value>
9191
/// <exception cref="System.InvalidOperationException"></exception>
9292
public virtual int ReadTimeout
@@ -103,10 +103,10 @@ public virtual int ReadTimeout
103103
}
104104

105105
/// <summary>
106-
/// Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.
106+
/// Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.
107107
/// </summary>
108108
/// <value>
109-
/// A value, in miliseconds, that determines how long the stream will attempt to write before timing out.
109+
/// A value, in milliseconds, that determines how long the stream will attempt to write before timing out.
110110
/// </value>
111111
/// <exception cref="System.InvalidOperationException"></exception>
112112
public virtual int WriteTimeout

source/nanoFramework.CoreLibrary/System/Reflection/AssemblyAttributes.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,37 @@ public String Version
226226
get { return _version; }
227227
}
228228
}
229+
230+
/// <summary>
231+
/// Defines the required native version required for an assembly.
232+
/// At deploy time this is used to check if the target device has the correct native version to support this assembly.
233+
/// </summary>
234+
/// <remarks>
235+
/// This attribute is specific of nanoFramework.
236+
/// </remarks>
237+
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class, Inherited = false)]
238+
public sealed class AssemblyNativeVersionAttribute : Attribute
239+
{
240+
private readonly String _nativeVersion;
241+
242+
/// <summary>
243+
/// Initializes a new instance of the AssemblyNativeVersionAttribute class.
244+
/// </summary>
245+
/// <param name="version">The native version required for the assembly.</param>
246+
public AssemblyNativeVersionAttribute(String version)
247+
{
248+
_nativeVersion = version;
249+
}
250+
251+
/// <summary>
252+
/// Gets the native version required for the assembly.
253+
/// </summary>
254+
/// <value>
255+
/// A string containing the native version.
256+
/// </value>
257+
public String NativeVersion
258+
{
259+
get { return _nativeVersion; }
260+
}
261+
}
229262
}

source/nanoFramework.CoreLibrary/System/TimeSpan.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ public double TotalMilliseconds
260260
public static TimeSpan FromTicks(long value) => new TimeSpan(value);
261261

262262
/// <summary>
263-
/// Returns a <see cref="TimeSpan"/> that represents a specified time, where the specification is in units of miliseconds.
263+
/// Returns a <see cref="TimeSpan"/> that represents a specified time, where the specification is in units of milliseconds.
264264
/// </summary>
265-
/// <param name="value">A number of miliseconds that represent a time.</param>
265+
/// <param name="value">A number of milliseconds that represent a time.</param>
266266
/// <returns>An object that represents value.</returns>
267-
public static TimeSpan FromMiliseconds(long value) => new TimeSpan(TimeSpan.TicksPerMillisecond * value);
267+
public static TimeSpan FromMilliseconds(long value) => new TimeSpan(TimeSpan.TicksPerMillisecond * value);
268268

269269
/// <summary>
270270
/// Returns a <see cref="TimeSpan"/> that represents a specified time, where the specification is in units of seconds.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Nerdbank.GitVersioning" version="2.3.34" developmentDependency="true" />
3+
<package id="Nerdbank.GitVersioning" version="3.0.6-beta" developmentDependency="true" />
44
</packages>

source/version.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"assemblyVersion": {
55
"precision": "revision"
66
},
77
"semVer1NumericIdentifierPadding": 3,
8-
"nugetPackageVersion": {
9-
"semVer": 1
10-
},
118
"publicReleaseRefSpec": [
129
"^refs/heads/master$",
1310
"^refs/heads/v\\d+(?:\\.\\d+)?$"
1411
],
1512
"cloudBuild": {
16-
"setVersionVariables": true,
17-
"setAllVariables": true
13+
"setAllVariables": true,
14+
"buildNumber": null
15+
},
16+
"release": {
17+
"branchName": "release-v{version}",
18+
"firstUnstableTag": "preview"
1819
}
1920
}

0 commit comments

Comments
 (0)