Skip to content

Commit

Permalink
Merge pull request #69 from nanoframework/release-v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Apr 23, 2019
2 parents e35d6c7 + 99af451 commit 215ee36
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 80 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Change Log

## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/lib-CoreLibrary/tree/HEAD)

[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.1.1...HEAD)

**Implemented enhancements:**

- Add AssemblyNativeVersionAttribute [\#67](https://github.com/nanoframework/lib-CoreLibrary/pull/67) [[Breaking-Change](https://github.com/nanoframework/lib-CoreLibrary/labels/Breaking-Change)]

**Fixed bugs:**

- Fix typo in TimeSpan [\#66](https://github.com/nanoframework/lib-CoreLibrary/pull/66)

**Documentation and other chores:**

- Update GitVersioning NuGet [\#68](https://github.com/nanoframework/lib-CoreLibrary/pull/68)

## [v1.1.1](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.1.1) (2019-01-21)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.1.0...v1.1.1)

Expand Down
3 changes: 0 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ steps:
# step from template @ nf-tools repo
# all build, update and publish steps
- template: azure-pipelines-templates/class-lib-build.yml@templates
parameters:
sourceFileName: 'corlib_native.cpp'
classLibName: 'CoreLibrary'

# update dependencies
- task: UpdatenFDependencies@1
Expand Down
62 changes: 0 additions & 62 deletions source/Nuget.CoreLibrary/Nuget.CoreLibrary.nuproj

This file was deleted.

12 changes: 11 additions & 1 deletion source/nanoFramework.CoreLibrary/CoreLibrary.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@
<NFMDP_PE_ExcludeClassByName Include="System.Reflection.AssemblyVersionAttribute">
<InProject>false</InProject>
</NFMDP_PE_ExcludeClassByName>
<NFMDP_PE_ExcludeClassByName Include="System.Reflection.AssemblyNativeVersionAttribute">
<InProject>false</InProject>
</NFMDP_PE_ExcludeClassByName>
<NFMDP_PE_ExcludeClassByName Include="System.Reflection.DefaultMemberAttribute">
<InProject>false</InProject>
</NFMDP_PE_ExcludeClassByName>
Expand Down Expand Up @@ -373,12 +376,19 @@
</ItemGroup>
<ItemGroup>
<None Include="..\key.snk" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
<Import Project="..\packages\Nerdbank.GitVersioning.2.3.34\build\Nerdbank.GitVersioning.targets" />
<ProjectExtensions>
<ProjectCapabilities>
<ProjectConfigurationsDeclaredAsItems />
</ProjectCapabilities>
</ProjectExtensions>
<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')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<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>
</PropertyGroup>
<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'))" />
</Target>
</Project>
3 changes: 3 additions & 0 deletions source/nanoFramework.CoreLibrary/System/AssemblyInfo2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@

using System;
using System.Reflection;
using System.Runtime.CompilerServices;

[assembly: CLSCompliant(true)]
[assembly: AssemblyTitle("mscorlib")]
[assembly: AssemblyCompany("nanoFramework Contributors")]
[assembly: AssemblyProduct("nanoFramework mscorlib")]
[assembly: AssemblyCopyright("Copyright © nanoFramework Contributors 2017")]

[assembly: AssemblyNativeVersion("1.1.1.")]
8 changes: 4 additions & 4 deletions source/nanoFramework.CoreLibrary/System/IO/Stream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ public abstract long Position
}

/// <summary>
/// Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.
/// Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
/// </summary>
/// <value>
/// A value, in miliseconds, that determines how long the stream will attempt to read before timing out.
/// A value, in milliseconds, that determines how long the stream will attempt to read before timing out.
/// </value>
/// <exception cref="System.InvalidOperationException"></exception>
public virtual int ReadTimeout
Expand All @@ -103,10 +103,10 @@ public virtual int ReadTimeout
}

/// <summary>
/// Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.
/// Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.
/// </summary>
/// <value>
/// A value, in miliseconds, that determines how long the stream will attempt to write before timing out.
/// A value, in milliseconds, that determines how long the stream will attempt to write before timing out.
/// </value>
/// <exception cref="System.InvalidOperationException"></exception>
public virtual int WriteTimeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,37 @@ public String Version
get { return _version; }
}
}

/// <summary>
/// Defines the required native version required for an assembly.
/// At deploy time this is used to check if the target device has the correct native version to support this assembly.
/// </summary>
/// <remarks>
/// This attribute is specific of nanoFramework.
/// </remarks>
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class, Inherited = false)]
public sealed class AssemblyNativeVersionAttribute : Attribute
{
private readonly String _nativeVersion;

/// <summary>
/// Initializes a new instance of the AssemblyNativeVersionAttribute class.
/// </summary>
/// <param name="version">The native version required for the assembly.</param>
public AssemblyNativeVersionAttribute(String version)
{
_nativeVersion = version;
}

/// <summary>
/// Gets the native version required for the assembly.
/// </summary>
/// <value>
/// A string containing the native version.
/// </value>
public String NativeVersion
{
get { return _nativeVersion; }
}
}
}
6 changes: 3 additions & 3 deletions source/nanoFramework.CoreLibrary/System/TimeSpan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ public double TotalMilliseconds
public static TimeSpan FromTicks(long value) => new TimeSpan(value);

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

/// <summary>
/// Returns a <see cref="TimeSpan"/> that represents a specified time, where the specification is in units of seconds.
Expand Down
2 changes: 1 addition & 1 deletion source/nanoFramework.CoreLibrary/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Nerdbank.GitVersioning" version="2.3.34" developmentDependency="true" />
<package id="Nerdbank.GitVersioning" version="3.0.6-beta" developmentDependency="true" />
</packages>
13 changes: 7 additions & 6 deletions source/version.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.1.1",
"version": "1.1.2",
"assemblyVersion": {
"precision": "revision"
},
"semVer1NumericIdentifierPadding": 3,
"nugetPackageVersion": {
"semVer": 1
},
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"setVersionVariables": true,
"setAllVariables": true
"setAllVariables": true,
"buildNumber": null
},
"release": {
"branchName": "release-v{version}",
"firstUnstableTag": "preview"
}
}

0 comments on commit 215ee36

Please sign in to comment.