diff --git a/appveyor.yml b/appveyor.yml index ed2b9fdc..71e0083a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -43,7 +43,6 @@ install: - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH% - bundle config --local path vendor/bundle - - gem install bundler --quiet --no-ri --no-rdoc - gem install github_changelog_generator --quiet --no-ri --no-rdoc # - bundle install - choco install gitversion.portable -pre -y @@ -147,7 +146,7 @@ before_build: - ps: >- - nuget restore source\nanoFramework.CoreLibrary.Nuget.sln + nuget restore source\nanoFramework.CoreLibrary.sln gitversion /l console /output buildserver /updateAssemblyInfo AssemblyInfo2.cs /ensureassemblyinfo @@ -256,7 +255,7 @@ before_build: - ps: >- - nuget restore source\nanoFramework.CoreLibrary.Nuget.sln + nuget restore source\nanoFramework.CoreLibrary.sln gitversion /l console /output buildserver /updateAssemblyInfo AssemblyInfo2.cs /ensureassemblyinfo diff --git a/source/Nuget.CoreLibrary.DELIVERABLES/nanoFramework.CoreLibrary.DELIVERABLES.nuproj b/source/Nuget.CoreLibrary.DELIVERABLES/Nuget.CoreLibrary.DELIVERABLES.nuproj similarity index 81% rename from source/Nuget.CoreLibrary.DELIVERABLES/nanoFramework.CoreLibrary.DELIVERABLES.nuproj rename to source/Nuget.CoreLibrary.DELIVERABLES/Nuget.CoreLibrary.DELIVERABLES.nuproj index 3bc0c1b3..c57206cb 100644 --- a/source/Nuget.CoreLibrary.DELIVERABLES/nanoFramework.CoreLibrary.DELIVERABLES.nuproj +++ b/source/Nuget.CoreLibrary.DELIVERABLES/Nuget.CoreLibrary.DELIVERABLES.nuproj @@ -14,21 +14,6 @@ - - content\mscorlib.dll - - - content\mscorlib.pdb - - - content\mscorlib.pdbx - - - content\mscorlib.pe - - - content\mscorlib.xml - content\Stubs\%(RecursiveDir)%(Filename)%(Extension) @@ -65,7 +50,7 @@ ** DON'T REFERENCE THIS PACKAGE ** Not meant for development. This package includes the deliverable artifacts of the base class library (mscorlib) of nanoFramework. These are for testing purposes and for updating the native code base of the core library. - https://github.com/nanoframework/nf-class-libraries + https://github.com/nanoframework/lib-CoreLibrary Copyright (c) 2017 The nanoFramework project contributors diff --git a/source/Nuget.CoreLibrary/nanoFramework.CoreLibrary.nuproj b/source/Nuget.CoreLibrary/Nuget.CoreLibrary.nuproj similarity index 97% rename from source/Nuget.CoreLibrary/nanoFramework.CoreLibrary.nuproj rename to source/Nuget.CoreLibrary/Nuget.CoreLibrary.nuproj index bb9d6f17..aa3bb186 100644 --- a/source/Nuget.CoreLibrary/nanoFramework.CoreLibrary.nuproj +++ b/source/Nuget.CoreLibrary/Nuget.CoreLibrary.nuproj @@ -31,7 +31,7 @@ - 96eaba11-6a33-454d-a7b2-b96ca5617e8c + dd773430-fe47-443c-b2eb-4f1dc0b7e52d ..\packages\NuProj.0.20.4-beta\tools\ diff --git a/source/System/Random.cs b/source/System/Random.cs index aef1341c..8101afd2 100644 --- a/source/System/Random.cs +++ b/source/System/Random.cs @@ -9,16 +9,25 @@ namespace System { /// - /// Represents a pseudo-random number generator, a device that produces a + /// Represents a random number generator, a device that produces a /// sequence of numbers that meet certain statistical requirements for /// randomness. /// + /// + /// Depending on the platform it can be a software dependent pseudo-random generator algorithm + /// or a hardware random generator providing true random numbers. + /// public class Random { + // this field needs to be here because it's required for the native implementation +#pragma warning disable 0169 private object _random; +#pragma warning restore 0169 + /// - /// Initializes a new instance of the Random class, using a time- + /// Initializes a new instance of the Random class. + /// If the provider is algorithm based the initialisation is performed using a time- /// dependent default seed value. /// [MethodImpl(MethodImplOptions.InternalCall)] diff --git a/source/nanoFramework.CoreLibrary.Nuget.sln b/source/nanoFramework.CoreLibrary.Nuget.sln index 1b498c7e..9912d083 100644 --- a/source/nanoFramework.CoreLibrary.Nuget.sln +++ b/source/nanoFramework.CoreLibrary.Nuget.sln @@ -3,14 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27130.2010 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "nanoFramework.CoreLibrary", "Nuget.CoreLibrary\nanoFramework.CoreLibrary.nuproj", "{96EABA11-6A33-454D-A7B2-B96CA5617E8C}" +Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.CoreLibrary", "Nuget.CoreLibrary\Nuget.CoreLibrary.nuproj", "{DD773430-FE47-443C-B2EB-4F1DC0B7E52D}" EndProject -Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "nanoFramework.CoreLibrary.DELIVERABLES", "Nuget.CoreLibrary.DELIVERABLES\nanoFramework.CoreLibrary.DELIVERABLES.nuproj", "{8FD36AD6-387C-48F0-A695-52D9149216FB}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{7A280E23-EB14-4791-B9E7-4ECB6C84D7B8}" - ProjectSection(SolutionItems) = preProject - packages.config = packages.config - EndProjectSection +Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.CoreLibrary.DELIVERABLES", "Nuget.CoreLibrary.DELIVERABLES\Nuget.CoreLibrary.DELIVERABLES.nuproj", "{8FD36AD6-387C-48F0-A695-52D9149216FB}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -18,10 +13,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.Build.0 = Release|Any CPU + {DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Release|Any CPU.Build.0 = Release|Any CPU {8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.Build.0 = Debug|Any CPU {8FD36AD6-387C-48F0-A695-52D9149216FB}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/source/nanoFramework.CoreLibrary.sln b/source/nanoFramework.CoreLibrary.sln index e488d8ae..c0d27c69 100644 --- a/source/nanoFramework.CoreLibrary.sln +++ b/source/nanoFramework.CoreLibrary.sln @@ -5,6 +5,11 @@ VisualStudioVersion = 15.0.27130.2010 MinimumVisualStudioVersion = 10.0.40219.1 Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "CoreLibrary", "CoreLibrary.nfproj", "{BE7B95D5-087C-45F8-8197-4B438BEDFE11}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{7A280E23-EB14-4791-B9E7-4ECB6C84D7B8}" + ProjectSection(SolutionItems) = preProject + packages.config = packages.config + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU