From b36670c999b66fc88637d079812bac11fc308084 Mon Sep 17 00:00:00 2001 From: Thomas Hounsell Date: Fri, 8 Jan 2016 18:23:23 +0000 Subject: [PATCH] Remove BCL deps, Add Roslyn, Model tweaks --- BuildFeed/App_Start/MongoConfig.cs | 10 +++++++++- BuildFeed/BuildFeed.csproj | 18 ++++++++---------- BuildFeed/Global.asax.cs | 2 ++ BuildFeed/Models/Build/Build-Group.cs | 13 ++++++++----- BuildFeed/Models/Build/Build.cs | 17 +++++++++++++++++ BuildFeed/Web.config | 6 ++++++ BuildFeed/packages.config | 5 ++--- 7 files changed, 52 insertions(+), 19 deletions(-) diff --git a/BuildFeed/App_Start/MongoConfig.cs b/BuildFeed/App_Start/MongoConfig.cs index cf4e4ab..d3717af 100644 --- a/BuildFeed/App_Start/MongoConfig.cs +++ b/BuildFeed/App_Start/MongoConfig.cs @@ -1,4 +1,6 @@ -using System.Configuration; +using BuildFeed.Models; +using System.Configuration; +using System.Threading.Tasks; namespace BuildFeed { @@ -26,5 +28,11 @@ static MongoConfig() ConfigurationManager.AppSettings["data:MongoDB"] : "MongoAuth"; } + + public static void SetupIndexes() + { + Build b = new Build(); + b.SetupIndexes(); + } } } \ No newline at end of file diff --git a/BuildFeed/BuildFeed.csproj b/BuildFeed/BuildFeed.csproj index 16fdd59..db2e03f 100644 --- a/BuildFeed/BuildFeed.csproj +++ b/BuildFeed/BuildFeed.csproj @@ -1,5 +1,7 @@  + + @@ -83,16 +85,11 @@ ..\packages\Microsoft.ApplicationInsights.1.2.3\lib\net45\Microsoft.ApplicationInsights.dll True + + ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + True + - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll - ..\packages\MongoDB.Bson.2.2.0\lib\net45\MongoDB.Bson.dll True @@ -1426,7 +1423,8 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + +