A commande line interface
parent
6b3302568f
commit
fdb1c550e3
@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Runtime.Versioning;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
|
||||
namespace cli_2
|
||||
{
|
||||
public class ApplicationEnvironment : IApplicationEnvironment
|
||||
{
|
||||
internal ApplicationEnvironment( FrameworkName targetFramework, string appRootDir )
|
||||
{
|
||||
this.RuntimeFramework = targetFramework;
|
||||
ApplicationBasePath = appRootDir;
|
||||
}
|
||||
public string ApplicationBasePath
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string ApplicationName
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string ApplicationVersion
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string Configuration
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public FrameworkName RuntimeFramework
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string Version
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public object GetData(string name)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void SetData(string name, object value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Builder;
|
||||
using Microsoft.AspNet.Hosting;
|
||||
using Microsoft.AspNet.Http;
|
||||
|
||||
public class InteractiveConsoleMiddleWare
|
||||
{
|
||||
public InteractiveConsoleMiddleWare(RequestDelegate next)
|
||||
{
|
||||
_next = next;
|
||||
}
|
||||
|
||||
readonly RequestDelegate _next;
|
||||
|
||||
public async Task Invoke(HttpContext context, IHostingEnvironment hostingEnviroment)
|
||||
{
|
||||
//do something
|
||||
System.Console.WriteLine("kjhnlkhkl");
|
||||
await _next.Invoke(context);
|
||||
}
|
||||
|
||||
}
|
@ -1,124 +1,108 @@
|
||||
|
||||
|
||||
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Hosting;
|
||||
using Microsoft.AspNet.Identity;
|
||||
using Microsoft.Extensions.CommandLineUtils;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.AspNet.Builder;
|
||||
using System.Runtime.Versioning;
|
||||
using Microsoft.AspNet.Builder.Internal;
|
||||
using Yavsc.Services;
|
||||
using Google.Apis.Util.Store;
|
||||
using cli_2;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.AspNet.Hosting;
|
||||
using Yavsc.Models;
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
using Microsoft.Extensions.OptionsModel;
|
||||
using Microsoft.AspNet.Hosting.Builder;
|
||||
|
||||
namespace cli
|
||||
{
|
||||
using Yavsc;
|
||||
using Microsoft.AspNet.Hosting.Internal;
|
||||
|
||||
public class Program
|
||||
public class Program
|
||||
{
|
||||
private readonly EventLog _log =
|
||||
new EventLog("Application") { Source = "Application" };
|
||||
private IServiceProvider serviceProvider;
|
||||
private static Startup startup;
|
||||
|
||||
public Program()
|
||||
{
|
||||
}
|
||||
{
|
||||
ConfigureServices(new ServiceCollection());
|
||||
}
|
||||
|
||||
public static void Main(string[] args)
|
||||
private void ConfigureServices(IServiceCollection services, string environmentName="Development")
|
||||
{
|
||||
var prog = new Program();
|
||||
|
||||
// Program.exe <-g|--greeting|-$ <greeting>> [name <fullname>]
|
||||
// [-?|-h|--help] [-u|--uppercase]
|
||||
CommandLineApplication commandLineApplication =
|
||||
new CommandLineApplication(throwOnUnexpectedArg: false);
|
||||
CommandArgument names = null;
|
||||
commandLineApplication.Command("name",
|
||||
(target) =>
|
||||
names = target.Argument(
|
||||
"fullname",
|
||||
"Enter the full name of the person to be greeted.",
|
||||
multipleValues: true));
|
||||
CommandOption greeting = commandLineApplication.Option(
|
||||
"-$|-g |--greeting <greeting>",
|
||||
"The greeting to display. The greeting supports"
|
||||
+ " a format string where {fullname} will be "
|
||||
+ "substituted with the full name.",
|
||||
CommandOptionType.SingleValue);
|
||||
CommandOption envNameOption = commandLineApplication.Option(
|
||||
"-e |--environment <environment>","The environment to run against.",CommandOptionType.SingleValue);
|
||||
CommandOption uppercase = commandLineApplication.Option(
|
||||
"-u | --uppercase", "Display the greeting in uppercase.",
|
||||
CommandOptionType.NoValue);
|
||||
commandLineApplication.HelpOption("-? | -h | --help");
|
||||
commandLineApplication.OnExecute(() =>
|
||||
{
|
||||
string greetingString = "Hello!";
|
||||
string environmentName = "Production";
|
||||
if (greeting.HasValue())
|
||||
{
|
||||
|
||||
string greetingStringTemplate = greeting.Value();
|
||||
|
||||
var fullname = string.Join(" ", commandLineApplication.RemainingArguments);
|
||||
greetingString = greetingStringTemplate.Replace("{fullname}", fullname);
|
||||
}
|
||||
if (envNameOption.HasValue()){
|
||||
environmentName = envNameOption.Value();
|
||||
}
|
||||
Greet(greetingString, environmentName);
|
||||
return 0;
|
||||
});
|
||||
commandLineApplication.Execute(args);
|
||||
}
|
||||
|
||||
private static void Greet(
|
||||
string greeting, string environmentName)
|
||||
{
|
||||
Console.WriteLine(greeting);
|
||||
IServiceCollection services = new ServiceCollection();
|
||||
// Startup.cs finally :)
|
||||
IHostingEnvironment hosting = new HostingEnvironment{ EnvironmentName = environmentName };
|
||||
services.AddLogging();
|
||||
|
||||
//EntryPoint.Main(new string[] {});
|
||||
services.AddOptions();
|
||||
|
||||
IHostingEnvironment hosting = new HostingEnvironment{ EnvironmentName = environmentName };
|
||||
|
||||
// Add application services.
|
||||
services.AddTransient<IEmailSender, MessageSender>();
|
||||
services.AddTransient<IGoogleCloudMessageSender, MessageSender>();
|
||||
services.AddTransient<IBillingService, BillingService>();
|
||||
services.AddTransient<IDataStore, FileDataStore>( (sp) => new FileDataStore("googledatastore",false) );
|
||||
services.AddTransient<ICalendarManager, CalendarManager>();
|
||||
|
||||
// TODO for SMS: services.AddTransient<ISmsSender, AuthMessageSender>();
|
||||
|
||||
services.AddLocalization(options =>
|
||||
{
|
||||
options.ResourcesPath = "Resources";
|
||||
});
|
||||
|
||||
services.AddIdentity<ApplicationUser,IdentityRole>();
|
||||
var basePath = AppDomain.CurrentDomain.BaseDirectory;
|
||||
// FIXME null ref var appName = AppDomain.CurrentDomain.ApplicationIdentity.FullName;
|
||||
|
||||
// var rtdcontext = new System.Runtime.DesignerServices.WindowsRuntimeDesignerContext (new string { "." }, "nonname");
|
||||
|
||||
|
||||
// hosting.Initialize("approot", config);
|
||||
serviceProvider = services.BuildServiceProvider();
|
||||
|
||||
// ApplicationHostContext apphostcontext = new ApplicationHostContext ();
|
||||
IServiceProvider serviceProvider = services.BuildServiceProvider();
|
||||
IApplicationBuilder iappbuilder = new ApplicationBuilder(serviceProvider);
|
||||
iappbuilder.ApplicationServices = serviceProvider;
|
||||
var projectRoot = "/home/paul/workspace/yavsc/Yavsc";
|
||||
|
||||
hosting.Initialize (projectRoot, null);
|
||||
|
||||
Startup startup = new Startup(hosting, PlatformServices.Default.Application);
|
||||
var targetFramework = new FrameworkName ("dnx",new Version(4,5,1));
|
||||
//
|
||||
//
|
||||
ApplicationEnvironment appEnv = new ApplicationEnvironment(targetFramework, projectRoot);
|
||||
|
||||
//configure console logging
|
||||
// needs a logger factory ...
|
||||
var loggerFactory = serviceProvider
|
||||
.GetService<ILoggerFactory>()
|
||||
.AddConsole(LogLevel.Debug);
|
||||
|
||||
//configure console logging
|
||||
serviceProvider
|
||||
.GetService<ILoggerFactory>()
|
||||
.AddConsole(LogLevel.Debug);
|
||||
|
||||
var logger = serviceProvider.GetService<ILoggerFactory>()
|
||||
.CreateLogger<Program>();
|
||||
startup = new Startup (hosting, appEnv);
|
||||
startup.ConfigureServices(services);
|
||||
|
||||
logger.LogDebug("Logger is working!");
|
||||
// Get Service and call method
|
||||
var userManager = serviceProvider.GetService<UserManager<ApplicationUser> >();
|
||||
var emailSender = serviceProvider.GetService<IEmailSender>();
|
||||
|
||||
foreach (var user in userManager?.Users)
|
||||
{
|
||||
Task.Run(async () =>
|
||||
await emailSender.SendEmailAsync(Startup.SiteSetup, Startup.SmtpSettup, Startup.SiteSetup.Owner.Name, Startup.SiteSetup.Owner.EMail,
|
||||
$"[{Startup.SiteSetup.Title}] Rappel de votre inscription ({user.UserName})", $"{user.Id}/{user.UserName}/{user.Email}"));
|
||||
ApplicationBuilderFactory applicationBuilderFactory
|
||||
= new ApplicationBuilderFactory(serviceProvider);
|
||||
|
||||
var builder = applicationBuilderFactory.CreateBuilder(null);
|
||||
|
||||
}
|
||||
|
||||
IOptions<SiteSettings> siteSettings = serviceProvider.GetService(typeof(IOptions<SiteSettings>)) as IOptions<SiteSettings>;
|
||||
IOptions<SmtpSettings> smtpSettings = serviceProvider.GetService(typeof(IOptions<SmtpSettings>)) as IOptions<SmtpSettings>;
|
||||
|
||||
startup.Configure(builder,siteSettings,smtpSettings);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine($"Hello world!" );
|
||||
foreach (var str in args) {
|
||||
Console.WriteLine($"*> {str}");
|
||||
}
|
||||
|
||||
startup.Main(args);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,117 +0,0 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Hosting;
|
||||
using Microsoft.AspNet.Hosting.Server;
|
||||
using Microsoft.AspNet.Identity;
|
||||
using Microsoft.Extensions.CommandLineUtils;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
using Microsoft.Framework.Runtime;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Services;
|
||||
|
||||
namespace cli
|
||||
{
|
||||
|
||||
public class Program
|
||||
{
|
||||
private readonly EventLog _log =
|
||||
new EventLog("Application") { Source = "Application" };
|
||||
private readonly IServiceProvider _serviceProvider;
|
||||
|
||||
private static Program instance;
|
||||
public Program()
|
||||
{
|
||||
instance = this;
|
||||
var installer = new System.ServiceProcess.ServiceInstaller();
|
||||
Console.WriteLine(installer.ServiceName);
|
||||
}
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var prog = new Program();
|
||||
|
||||
// Program.exe <-g|--greeting|-$ <greeting>> [name <fullname>]
|
||||
// [-?|-h|--help] [-u|--uppercase]
|
||||
CommandLineApplication commandLineApplication =
|
||||
new CommandLineApplication(throwOnUnexpectedArg: false);
|
||||
CommandArgument names = null;
|
||||
commandLineApplication.Command("name",
|
||||
(target) =>
|
||||
names = target.Argument(
|
||||
"fullname",
|
||||
"Enter the full name of the person to be greeted.",
|
||||
multipleValues: true));
|
||||
CommandOption greeting = commandLineApplication.Option(
|
||||
"-$|-g |--greeting <greeting>",
|
||||
"The greeting to display. The greeting supports"
|
||||
+ " a format string where {fullname} will be "
|
||||
+ "substituted with the full name.",
|
||||
CommandOptionType.SingleValue);
|
||||
CommandOption envNameOption = commandLineApplication.Option(
|
||||
"-e |--environment <environment>","The environment to run against.",CommandOptionType.SingleValue);
|
||||
CommandOption uppercase = commandLineApplication.Option(
|
||||
"-u | --uppercase", "Display the greeting in uppercase.",
|
||||
CommandOptionType.NoValue);
|
||||
commandLineApplication.HelpOption("-? | -h | --help");
|
||||
commandLineApplication.OnExecute(() =>
|
||||
{
|
||||
string greetingString = "Hello!";
|
||||
string environmentName = "Production";
|
||||
if (greeting.HasValue())
|
||||
{
|
||||
|
||||
string greetingStringTemplate = greeting.Value();
|
||||
|
||||
var fullname = string.Join(" ", commandLineApplication.RemainingArguments);
|
||||
greetingString = greetingStringTemplate.Replace("{fullname}", fullname);
|
||||
}
|
||||
if (envNameOption.HasValue()){
|
||||
environmentName = envNameOption.Value();
|
||||
}
|
||||
Greet(greetingString, environmentName);
|
||||
return 0;
|
||||
});
|
||||
commandLineApplication.Execute(args);
|
||||
}
|
||||
|
||||
private static void Greet(
|
||||
string greeting, string environmentName)
|
||||
{
|
||||
Console.WriteLine(greeting);
|
||||
IServiceCollection services = new ServiceCollection();
|
||||
// Startup.cs finally :)
|
||||
IHostingEnvironment hosting = new HostingEnvironment{ EnvironmentName = environmentName };
|
||||
|
||||
Startup startup = new Startup(hosting, PlatformServices.Default.Application);
|
||||
startup.ConfigureServices(services);
|
||||
IServiceProvider serviceProvider = services.BuildServiceProvider();
|
||||
|
||||
//configure console logging
|
||||
serviceProvider
|
||||
.GetService<ILoggerFactory>()
|
||||
.AddConsole(LogLevel.Debug);
|
||||
|
||||
var logger = serviceProvider.GetService<ILoggerFactory>()
|
||||
.CreateLogger<Program>();
|
||||
|
||||
logger.LogDebug("Logger is working!");
|
||||
// Get Service and call method
|
||||
var userManager = serviceProvider.GetService<UserManager<ApplicationUser> >();
|
||||
var emailSender = serviceProvider.GetService<IEmailSender>();
|
||||
|
||||
foreach (var user in userManager.Users)
|
||||
{
|
||||
Task.Run(async () =>
|
||||
await emailSender.SendEmailAsync(Startup.SiteSetup, Startup.SmtpSettup, Startup.SiteSetup.Owner.Name, Startup.SiteSetup.Owner.EMail,
|
||||
$"[{Startup.SiteSetup.Title}] Rappel de votre inscription ({user.UserName})", $"{user.Id}/{user.UserName}/{user.Email}"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YaDaemon
|
||||
{
|
||||
public class YaTaskScheduler : TaskScheduler
|
||||
{
|
||||
List<Task> _tasks;
|
||||
|
||||
protected override IEnumerable<Task> GetScheduledTasks()
|
||||
{
|
||||
return _tasks;
|
||||
}
|
||||
|
||||
protected override void QueueTask(Task task)
|
||||
{
|
||||
_tasks.Add(task);
|
||||
}
|
||||
|
||||
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
|
||||
{
|
||||
task.Start();
|
||||
task.Wait();
|
||||
return task.IsCompleted;
|
||||
}
|
||||
}
|
||||
public class YaDaemon: IDisposable
|
||||
{
|
||||
|
||||
private readonly EventLog _log =
|
||||
new EventLog("Application") { Source = "Application" };
|
||||
|
||||
async void MainLoop(string[] args)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
async Task StartAsync(string[] args)
|
||||
{
|
||||
await Task.Run(() => {
|
||||
OnStart(args);
|
||||
} );
|
||||
}
|
||||
|
||||
protected void OnContinue()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected void OnShutdown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void OnStart(string[] args)
|
||||
{
|
||||
_log.WriteEntry("Test from YaDaemon.", EventLogEntryType.Information, 1);
|
||||
_log.WriteEntry("YaDaemon started.");
|
||||
Console.WriteLine("YaDaemon started");
|
||||
}
|
||||
|
||||
protected void OnStop()
|
||||
{
|
||||
_log.WriteEntry("YaDaemon stopped.");
|
||||
Console.WriteLine("YaDaemon stopped");
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@ -1,240 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{E7C9D6BF-54DC-4E18-8F25-C4BD4BE71ACC}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>cli</RootNamespace>
|
||||
<AssemblyName>cli</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Externalconsole>true</Externalconsole>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Externalconsole>true</Externalconsole>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.SignalR.Client">
|
||||
<HintPath>..\packages\Microsoft.AspNet.SignalR.Client.2.2.1\lib\net45\Microsoft.AspNet.SignalR.Client.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Web.Infrastructure">
|
||||
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Configuration.UserSecrets">
|
||||
<HintPath>..\packages\Microsoft.Extensions.Configuration.UserSecrets.1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Configuration.UserSecrets.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework.Commands">
|
||||
<HintPath>..\packages\EntityFramework.Commands.7.0.0-rc1-final\lib\net451\EntityFramework.Commands.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeAnalysis.CSharp">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.CodeAnalysis.CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeAnalysis">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.CodeAnalysis.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Collections.Immutable">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\System.Collections.Immutable.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Hosting">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Hosting\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.Hosting.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Identity">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Identity\3.0.0-rc1-final\lib\net451\Microsoft.AspNet.Identity.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Framework.ConfigurationModel">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Framework.ConfigurationModel\1.0.0-beta4\lib\net45\Microsoft.Framework.ConfigurationModel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Framework.Configuration.Json">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Framework.Configuration.Json\1.0.0-beta8\lib\net45\Microsoft.Framework.Configuration.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.OptionsModel">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.OptionsModel\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.OptionsModel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.CodeGeneration.EntityFramework">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.CodeGeneration.EntityFramework\1.0.0-rc1-final\lib\dnx451\Microsoft.Extensions.CodeGeneration.EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Localization">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Localization\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.Localization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Primitives">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Primitives\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Primitives.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Identity.EntityFramework">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Identity.EntityFramework\3.0.0-rc1-final\lib\net451\Microsoft.AspNet.Identity.EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Http.Extensions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Http.Extensions\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.Http.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework7.Npgsql.Design">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\EntityFramework7.Npgsql.Design\3.1.0-rc1-5\lib\net451\EntityFramework7.Npgsql.Design.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework7.Npgsql">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\EntityFramework7.Npgsql\3.1.0-rc1-3\lib\net451\EntityFramework7.Npgsql.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Diagnostics.Entity">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Diagnostics.Entity\7.0.0-rc1-final\lib\net451\Microsoft.AspNet.Diagnostics.Entity.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Configuration.EnvironmentVariables\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Configuration.EnvironmentVariables.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework.Relational">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\EntityFramework.Relational\7.0.0-rc1-final\lib\net451\EntityFramework.Relational.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework.Core">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\EntityFramework.Core\7.0.0-rc1-final\lib\net451\EntityFramework.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Mvc.Localization">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Mvc.Localization\6.0.0-rc1-final\lib\net451\Microsoft.AspNet.Mvc.Localization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Localization">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Localization\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Localization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Framework.Configuration.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Framework.Configuration.Abstractions\1.0.0-beta8\lib\net45\Microsoft.Framework.Configuration.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Hosting.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Hosting.Abstractions\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.Hosting.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Mvc.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Mvc.Abstractions\6.0.0-rc1-final\lib\net451\Microsoft.AspNet.Mvc.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Http">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Http\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.Http.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.IISPlatformHandler">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.IISPlatformHandler\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.IISPlatformHandler.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Configuration.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Configuration.Abstractions\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Configuration.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Framework.Configuration">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Framework.Configuration\1.0.0-beta8\lib\net45\Microsoft.Framework.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Http.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.Http.Abstractions\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.Http.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Design" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.ComponentModel.Composition" />
|
||||
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.DependencyInjection.Abstractions\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.DependencyInjection">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.DependencyInjection\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.DependencyInjection.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Logging">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Logging\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Logging.Console">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Logging.Console\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Logging.Console.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Logging.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Logging.Abstractions\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Logging.Debug">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Logging.Debug\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Logging.Debug.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.FileProviders.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.FileProviders.Abstractions\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.FileProviders.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Configuration.FileExtensions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Configuration.FileExtensions\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Configuration.FileExtensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.FileProviders.Physical">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.AspNet.FileProviders.Physical\1.0.0-rc1-final\lib\net451\Microsoft.AspNet.FileProviders.Physical.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Configuration">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Extensions.Configuration\1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Framework.Configuration.FileExtensions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\Microsoft.Framework.Configuration.FileExtensions\1.0.0-beta8\lib\net45\Microsoft.Framework.Configuration.FileExtensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Caching.Abstractions">
|
||||
<HintPath>packages\Microsoft.Extensions.Caching.Abstractions.1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Caching.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Caching.Memory">
|
||||
<HintPath>packages\Microsoft.Extensions.Caching.Memory.1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Caching.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Remotion.Linq">
|
||||
<HintPath>packages\Remotion.Linq.2.0.1\lib\net45\Remotion.Linq.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Diagnostics.DiagnosticSource">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\packages\System.Diagnostics.DiagnosticSource\4.0.0-beta-23516\lib\portable-net45+win8+wp8+wpa81\System.Diagnostics.DiagnosticSource.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Localization.Abstractions">
|
||||
<HintPath>packages\Microsoft.Extensions.Localization.Abstractions.1.0.0-rc1-final\lib\net451\Microsoft.Extensions.Localization.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.Authentication.Cookies">
|
||||
<HintPath>packages\Microsoft.AspNet.Authentication.Cookies.1.0.0-rc1-final\lib\net451\Microsoft.AspNet.Authentication.Cookies.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.DataProtection">
|
||||
<HintPath>packages\Microsoft.AspNet.DataProtection.1.0.0-rc1-final\lib\net451\Microsoft.AspNet.DataProtection.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.DataProtection.Abstractions">
|
||||
<HintPath>packages\Microsoft.AspNet.DataProtection.Abstractions.1.0.0-rc1-final\lib\net451\Microsoft.AspNet.DataProtection.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Owin">
|
||||
<HintPath>packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Owin">
|
||||
<HintPath>packages\Microsoft.Owin.4.0.0\lib\net451\Microsoft.Owin.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.DesignTimeHost">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\lib\Microsoft.Dnx.DesignTimeHost\Microsoft.Dnx.DesignTimeHost.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Host.Mono">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Host.Mono.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.CommandLineUtils">
|
||||
<HintPath>packages\Microsoft.Extensions.CommandLineUtils.1.1.1\lib\net451\Microsoft.Extensions.CommandLineUtils.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Yavsc.Abstract">
|
||||
<HintPath>packages\Yavsc.Abstract.1.0.5-rc7\lib\portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Yavsc.Abstract.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Yavsc.Server">
|
||||
<HintPath>packages\Yavsc.Server.1.0.1-rc1\lib\portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Yavsc.Server.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Startup.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
<None Include="appsettings.Development.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="appsettings.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="EntityFramework.Commands" version="7.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="EntityFramework.Core" version="7.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="EntityFramework.MicrosoftSqlServer" version="7.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="EntityFramework.Relational" version="7.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="EntityFramework7.Npgsql" version="3.1.0-rc1-3" targetFramework="net451" />
|
||||
<package id="EntityFramework7.Npgsql.Design" version="3.1.0-rc1-5" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.Authentication.Cookies" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.DataProtection" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.DataProtection.Abstractions" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.Http.Abstractions" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.Mvc" version="5.2.4" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.Razor" version="3.2.4" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.SignalR.Client" version="2.2.1" targetFramework="net451" />
|
||||
<package id="Microsoft.AspNet.WebPages" version="3.2.4" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Caching.Abstractions" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Caching.Memory" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.CommandLineUtils" version="1.1.1" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Configuration.FileExtensions" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Configuration.UserSecrets" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Localization.Abstractions" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Options" version="0.0.1-alpha" targetFramework="net451" />
|
||||
<package id="Microsoft.Framework.Configuration.FileExtensions" version="1.0.0-beta8" targetFramework="net451" />
|
||||
<package id="Microsoft.Owin" version="4.0.0" targetFramework="net451" />
|
||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net451" />
|
||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net451" />
|
||||
<package id="Owin" version="1.0" targetFramework="net451" />
|
||||
<package id="Remotion.Linq" version="2.0.1" targetFramework="net451" />
|
||||
<package id="System.Diagnostics.DiagnosticSource" version="4.0.0-beta-23516" targetFramework="net45" />
|
||||
<package id="Yavsc.Abstract" version="1.0.5-rc7" targetFramework="net451" />
|
||||
<package id="Yavsc.Server" version="1.0.1-rc1" targetFramework="net451" />
|
||||
|
||||
</packages>
|
@ -0,0 +1,41 @@
|
||||
{
|
||||
"version": "1.0.0-*",
|
||||
"commands": {
|
||||
"run": "run"
|
||||
},
|
||||
"resource": "Resources/**/*.resx",
|
||||
"buildOptions": {
|
||||
"debugType": "full",
|
||||
"emitEntryPoint": true,
|
||||
"compile": {
|
||||
"include": "*.cs",
|
||||
"exclude": [
|
||||
"contrib"
|
||||
]
|
||||
},
|
||||
"embed": [
|
||||
"Resources/**/*.resx"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"Yavsc.Server": {
|
||||
"target": "project",
|
||||
"type": "build"
|
||||
},
|
||||
"Microsoft.Framework.Configuration.Json": "1.0.0-beta8",
|
||||
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
|
||||
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
|
||||
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-*",
|
||||
"Microsoft.AspNet.Hosting": "1.0.0-rc1-*",
|
||||
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
|
||||
"Microsoft.Extensions.DependencyInjection": "1.0.0-rc1-final"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": {
|
||||
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue