Browse Source

Setting up a minimal configuration for Rx.Next work.

Bart De Smet 8 years ago
parent
commit
97f2b56be1

+ 25 - 0
Rx.Next/src/Microsoft.Reactive.Bcl.Linq.Expressions.CompilerServices/Microsoft.Reactive.Bcl.Linq.Expressions.CompilerServices.csproj

@@ -0,0 +1,25 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>netstandard2.0</TargetFramework>
+    <RootNamespace>System.Linq.Expressions.CompilerServices</RootNamespace>
+    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
+    <Description>Provides a set of LINQ expression tree utilities used to analyze, rewrite, and evaluate expressions.</Description>
+    <Product>Rx</Product>
+    <Company>Microsoft Corporation</Company>
+    <Authors>Microsoft</Authors>
+  </PropertyGroup>
+
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
+    <DocumentationFile></DocumentationFile>
+  </PropertyGroup>
+
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+    <DocumentationFile></DocumentationFile>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\Microsoft.Reactive.Bcl.Memory.Pooling\Microsoft.Reactive.Bcl.Memory.Pooling.csproj" />
+  </ItemGroup>
+
+</Project>

+ 11 - 0
Rx.Next/src/Microsoft.Reactive.Bcl.Linq.Expressions.CompilerServices/System/Linq/Expressions/CompilerServices/FreeVariableScanner.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace System.Linq.Expressions.CompilerServices
+{
+    public static class FreeVariableScanner
+    {
+        public static IEnumerable<Expression> Scan(Expression expression) => throw new NotImplementedException();
+        public static bool HasFreeVariables(Expression expression) => throw new NotImplementedException();
+    }
+}

+ 12 - 0
Rx.Next/src/Microsoft.Reactive.Bcl.Memory.Pooling/Microsoft.Reactive.Bcl.Memory.Pooling.csproj

@@ -0,0 +1,12 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>netstandard2.0</TargetFramework>
+    <Authors>Microsoft</Authors>
+    <Company>Microsoft Corporation</Company>
+    <Product>Rx</Product>
+    <Description>Provides a set of facilities to manage pools of objects.</Description>
+    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
+  </PropertyGroup>
+
+</Project>

+ 10 - 0
Rx.Next/src/Microsoft.Reactive.Bcl.Memory.Pooling/System/ObjectPool{T}.cs

@@ -0,0 +1,10 @@
+using System;
+
+namespace System
+{
+    public class ObjectPool<T>
+    {
+        public T Allocate() => throw new NotImplementedException();
+        public void Free(T obj) => throw new NotImplementedException();
+    }
+}

+ 31 - 0
Rx.Next/src/Rx.Next.sln

@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.26730.3
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Reactive.Bcl.Linq.Expressions.CompilerServices", "Microsoft.Reactive.Bcl.Linq.Expressions.CompilerServices\Microsoft.Reactive.Bcl.Linq.Expressions.CompilerServices.csproj", "{91A75A72-ED83-445A-8EDD-2CCACA20A4D6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Reactive.Bcl.Memory.Pooling", "Microsoft.Reactive.Bcl.Memory.Pooling\Microsoft.Reactive.Bcl.Memory.Pooling.csproj", "{0D30BB06-70B2-40CC-8CA2-FD464BE69AC0}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{91A75A72-ED83-445A-8EDD-2CCACA20A4D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{91A75A72-ED83-445A-8EDD-2CCACA20A4D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{91A75A72-ED83-445A-8EDD-2CCACA20A4D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{91A75A72-ED83-445A-8EDD-2CCACA20A4D6}.Release|Any CPU.Build.0 = Release|Any CPU
+		{0D30BB06-70B2-40CC-8CA2-FD464BE69AC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{0D30BB06-70B2-40CC-8CA2-FD464BE69AC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{0D30BB06-70B2-40CC-8CA2-FD464BE69AC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{0D30BB06-70B2-40CC-8CA2-FD464BE69AC0}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {D1F8B2C0-2E4A-4077-BC6C-F086DD7DF176}
+	EndGlobalSection
+EndGlobal

+ 13 - 0
Rx.Next/src/build.ps1

@@ -0,0 +1,13 @@
+$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
+
+$configuration = "Release"
+
+Write-Host "Building $scriptPath\Rx.Next.sln" -Foreground Green
+msbuild "$scriptPath\Rx.Next.sln" /t:build /m /p:Configuration=$configuration 
+if ($LastExitCode -ne 0) { 
+        Write-Host "Error with build" -Foreground Red
+        if($isAppVeyor) {
+          $host.SetShouldExit($LastExitCode)
+          exit $LastExitCode
+        }  
+}

+ 50 - 0
appveyor.next.yml

@@ -0,0 +1,50 @@
+image: Visual Studio 2017
+
+environment:
+  COVERALLS_REPO_TOKEN:
+    secure: DOSlU041NY0WKjv9njrNqj14CLEzrF4ogZsbvqIXnNLd492oNlQf4dD5yr7TSK/S
+  SignClientSecret:
+    secure: oR9TMOkkvP/prmXyMT+p6mQhjyw3JDLbuywezBABvXzkvNsdNZgi2yPaHhgaofrb
+
+init:
+  - git config --global core.autocrlf input
+
+skip_branch_with_pr: true
+
+only_commits:
+  files:
+    - Rx.Next/**/*
+    - '*'
+
+skip_tags: true
+
+skip_commits:
+  files:
+    - '**/*.md'
+
+nuget:
+  disable_publish_on_pr: true
+
+build_script:
+  - ps: .\Rx.Next\src\build.ps1
+
+test: off
+artifacts:
+- path: .\artifacts\*.nupkg
+  
+deploy:
+- provider: NuGet
+  server: https://dotnet.myget.org/F/rx/api/v2/package
+  on:
+    branch: master  
+  api_key:
+    secure: 5qZfZf9XVtN+h/UHwocrEBZjaZCajJg9fZbLDPigoew1NG7PzWQxMv1kLQJW6eWE
+  symbol_server: https://dotnet.myget.org/F/rx/symbols/api/v2/package
+  
+- provider: NuGet
+  server: https://dotnet.myget.org/F/rx/api/v2/package
+  on:
+    branch: develop  
+  api_key:
+    secure: 5qZfZf9XVtN+h/UHwocrEBZjaZCajJg9fZbLDPigoew1NG7PzWQxMv1kLQJW6eWE
+  symbol_server: https://dotnet.myget.org/F/rx/symbols/api/v2/package