... I need peace
This commit is contained in:
parent
77e229fc8a
commit
b998c94f51
47 changed files with 2034 additions and 11979 deletions
117
cli/Program.cs
Normal file
117
cli/Program.cs
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
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 Yavsc.Models;
|
||||
using Yavsc.Services;
|
||||
|
||||
namespace cli
|
||||
{
|
||||
|
||||
public class Program
|
||||
{
|
||||
private readonly EventLog _log =
|
||||
new EventLog("Application") { Source = "Application" };
|
||||
|
||||
public Program()
|
||||
{
|
||||
}
|
||||
|
||||
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 };
|
||||
var test = PlatformServices.Create (null);
|
||||
var basePath = AppDomain.CurrentDomain.BaseDirectory;
|
||||
// FIXME null ref var appName = AppDomain.CurrentDomain.ApplicationIdentity.FullName;
|
||||
|
||||
PlatformServices.SetDefault (test);
|
||||
|
||||
|
||||
Startup startup = new Startup(hosting, null);
|
||||
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}"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
117
cli/Program.cs.save
Normal file
117
cli/Program.cs.save
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
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}"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
27
cli/Properties/AssemblyInfo.cs
Normal file
27
cli/Properties/AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
// Information about this assembly is defined by the following attributes.
|
||||
// Change them to the values specific to your project.
|
||||
|
||||
[assembly: AssemblyTitle ("cli")]
|
||||
[assembly: AssemblyDescription ("")]
|
||||
[assembly: AssemblyConfiguration ("")]
|
||||
[assembly: AssemblyCompany ("")]
|
||||
[assembly: AssemblyProduct ("")]
|
||||
[assembly: AssemblyCopyright ("Paul Schneider")]
|
||||
[assembly: AssemblyTrademark ("")]
|
||||
[assembly: AssemblyCulture ("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion ("1.0.*")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
75
cli/Startup.cs
Normal file
75
cli/Startup.cs
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
using Microsoft.AspNet.Builder;
|
||||
using Microsoft.AspNet.Hosting;
|
||||
using Microsoft.Data.Entity;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.OptionsModel;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
using Microsoft.Framework.Configuration;
|
||||
using Newtonsoft.Json;
|
||||
using Yavsc;
|
||||
using Yavsc.Models;
|
||||
|
||||
namespace cli
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
|
||||
public string HostingFullName { get; private set; }
|
||||
|
||||
public static SiteSettings SiteSetup { get; private set; }
|
||||
public static SmtpSettings SmtpSettup { get; private set; }
|
||||
public IConfigurationRoot Configuration { get; set; }
|
||||
public string ConnectionString { get; private set; }
|
||||
|
||||
// Use this method to add services to the container.
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
System.Console.WriteLine("Configuring services ...");
|
||||
services.AddEntityFramework()
|
||||
.AddNpgsql()
|
||||
.AddDbContext<ApplicationDbContext>(options => options.UseNpgsql(Configuration["Data:DefaultConnection:ConnectionString"]))
|
||||
;
|
||||
services.AddLocalization(options =>
|
||||
{
|
||||
options.ResourcesPath = "Resources";
|
||||
});
|
||||
services.AddOptions();
|
||||
|
||||
services.Configure<SiteSettings>((o)=> JsonConvert.PopulateObject(Configuration["Site"],o));
|
||||
services.Configure<SmtpSettings>((o)=> JsonConvert.PopulateObject(Configuration["Smtp"],o));
|
||||
}
|
||||
|
||||
|
||||
// Use this method to configure the HTTP request pipeline.
|
||||
public void Configure(IApplicationBuilder app, IOptions<SiteSettings> siteSettingsOptions, IOptions<SmtpSettings> smtpSettingsOptions)
|
||||
{
|
||||
System.Console.WriteLine("Configuring application ...");
|
||||
SiteSetup = siteSettingsOptions.Value;
|
||||
SmtpSettup = smtpSettingsOptions.Value;
|
||||
}
|
||||
|
||||
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
|
||||
{
|
||||
var devtag = env.IsDevelopment()?"D":"";
|
||||
var prodtag = env.IsProduction()?"P":"";
|
||||
var stagetag = env.IsStaging()?"S":"";
|
||||
|
||||
HostingFullName = $" [{env.EnvironmentName}:{prodtag}{devtag}{stagetag}]";
|
||||
// Set up configuration sources.
|
||||
var builder = new ConfigurationBuilder()
|
||||
.AddJsonFile("appsettings.json")
|
||||
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true);
|
||||
|
||||
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
// For more details on using the user secret store see http://go.microsoft.com/fwlink/?LinkID=532709
|
||||
// builder.AddUserSecrets();
|
||||
}
|
||||
Configuration = builder.Build();
|
||||
ConnectionString = Configuration["Data:DefaultConnection:ConnectionString"];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
78
cli/YaTaskScheduler.cs
Normal file
78
cli/YaTaskScheduler.cs
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
39
cli/appsettings.Development.json
Normal file
39
cli/appsettings.Development.json
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"Site": {
|
||||
"Authority": "dev.pschneider.fr",
|
||||
"Title": "Yavsc dev",
|
||||
"Slogan": "Yavsc : WIP.",
|
||||
"Banner": "/images/yavsc.png",
|
||||
"HomeViewName": "Home",
|
||||
"FavIcon": "/favicon.ico",
|
||||
"Icon": "/images/yavsc.png",
|
||||
"Owner": {
|
||||
"Name": "Paul",
|
||||
"EMail": "paul@pschneider.fr",
|
||||
"PostalAddress": {
|
||||
"Street1": "2 Blv A. Briand",
|
||||
"Street2": "Apt 284 - Bat V",
|
||||
"PostalCode": "92150",
|
||||
"City": "Suresnes",
|
||||
"State": "France",
|
||||
"Province": null
|
||||
}
|
||||
},
|
||||
"Admin": {
|
||||
"Name": "Paul",
|
||||
"EMail": "contact@pschneider.fr"
|
||||
},
|
||||
"UserFiles": {
|
||||
"Avatars": "Avatars-Dev",
|
||||
"Quota": 200000000,
|
||||
"Bills": "Bills-Dev",
|
||||
"Blog": "Blog-Dev"
|
||||
},
|
||||
"TempDir": "Temp-Dev"
|
||||
},
|
||||
"Smtp": {
|
||||
"Host": "localhost",
|
||||
"Port": 25,
|
||||
"EnableSSL": false
|
||||
}
|
||||
}
|
||||
11
cli/appsettings.json
Normal file
11
cli/appsettings.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"Site": {
|
||||
"Authority": "dev.pschneider.fr",
|
||||
"Title": "Yavsc dev",
|
||||
"Slogan": "Yavsc : WIP.",
|
||||
"Banner": "/images/yavsc.png",
|
||||
"HomeViewName": "Home",
|
||||
"FavIcon": "/favicon.ico",
|
||||
"Icon": "/images/yavsc.png"
|
||||
}
|
||||
}
|
||||
235
cli/cli.csproj
Normal file
235
cli/cli.csproj
Normal file
|
|
@ -0,0 +1,235 @@
|
|||
<?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>
|
||||
</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="Microsoft.Extensions.CommandLineUtils">
|
||||
<HintPath>..\packages\Microsoft.Extensions.CommandLineUtils.1.1.1\lib\net451\Microsoft.Extensions.CommandLineUtils.dll</HintPath>
|
||||
</Reference>
|
||||
<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="Microsoft.Dnx.ApplicationHost">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.ApplicationHost.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Compilation.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Compilation.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Compilation.CSharp.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Compilation.CSharp.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Compilation.CSharp.Common">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Compilation.CSharp.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Compilation.CSharp">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Compilation.CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Compilation.DesignTime">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Compilation.DesignTime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Compilation">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Compilation.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.DesignTimeHost.Abstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.DesignTimeHost.Abstractions.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">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Host.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.Dnx.Loader">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Loader.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Runtime">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Dnx.Runtime.Internals">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Dnx.Runtime.Internals.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.PlatformAbstractions">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\Microsoft.Extensions.PlatformAbstractions.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="System.Reflection.Metadata">
|
||||
<HintPath>..\..\..\..\..\srv\www\dnx\runtimes\dnx-mono.1.0.0-rc1-update2\bin\System.Reflection.Metadata.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="Yavsc">
|
||||
<HintPath>..\Yavsc\bin\Debug\dnx451\Yavsc.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>
|
||||
</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" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
cli/packages.config
Normal file
20
cli/packages.config
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<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.CommandLineUtils" version="1.1.1" 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="Microsoft.Extensions.CommandLineUtils" version="1.1.1" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Configuration.UserSecrets" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<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.Extensions.DependencyInjection.Abstractions" version="1.0.0-rc1-final" targetFramework="net451" />
|
||||
<package id="Microsoft.Extensions.Options" version="0.0.1-alpha" targetFramework="net451" />
|
||||
</packages>
|
||||
21
cli/project.json
Normal file
21
cli/project.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "Yavsc command line interface",
|
||||
"dependencies": {
|
||||
"Yavsc": {
|
||||
"type": "build"
|
||||
},
|
||||
"Microsoft.Extensions.CommandLineUtils": "1.1.1",
|
||||
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.ServiceProcess": "4.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"commands": {
|
||||
"run": "cli"
|
||||
}
|
||||
}
|
||||
11768
cli/project.lock.json
Normal file
11768
cli/project.lock.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue