ow
This commit is contained in:
1 parent
31fbe199c1
commit
1c0c83af5f
469 files changed
+62544
-5
No files matched your search
@@ -0,0 +1,60 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="appsettings.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="appsettings.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="CloudBuilder.Core">
|
||||
<HintPath>..\CloudBuilder.Core\bin\Debug\net8.0\CloudBuilder.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CloudBuilder.Gui">
|
||||
<HintPath>..\CloudBuilder.Gui\bin\Debug\net8.0-windows\CloudBuilder.Gui.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CloudBuilder.Request">
|
||||
<HintPath>..\CloudBuilder.Request\bin\Debug\net8.0\CloudBuilder.Request.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CloudBuilder.Security">
|
||||
<HintPath>..\CloudBuilder.Security\bin\Debug\net8.0\CloudBuilder.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CloudBuilder.Security.Gui">
|
||||
<HintPath>..\CloudBuilder.Security.Gui\bin\Debug\net8.0-windows\CloudBuilder.Security.Gui.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Krypton.Docking" Version="85.24.10.288" />
|
||||
<PackageReference Include="Krypton.Navigator" Version="85.24.10.288" />
|
||||
<PackageReference Include="Krypton.Ribbon" Version="85.24.10.288" />
|
||||
<PackageReference Include="Krypton.Toolkit" Version="85.24.10.288" />
|
||||
<PackageReference Include="Krypton.Workspace" Version="85.24.10.288" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
||||
<PackageReference Include="ClosedXML" Version="0.102.1" />
|
||||
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.3351.48" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup />
|
||||
</Project>
|
||||
@@ -0,0 +1,73 @@
|
||||
using Azure;
|
||||
using CloudBuilder.Core.DependencyInjection.Form;
|
||||
using CloudBuilder.Core.DependencyInjection.Request;
|
||||
using CloudBuilder.Core.Service;
|
||||
using CloudBuilder.Gui;
|
||||
using CloudBuilder.Gui.DependencyInjection;
|
||||
using CloudBuilder.Security.Data;
|
||||
using CloudBuilder.Security.Gui;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Json;
|
||||
using System.Net.NetworkInformation;
|
||||
|
||||
|
||||
namespace CloudBuilderLauncher
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
|
||||
//Application.Run(new Form1());
|
||||
try
|
||||
{
|
||||
var services = new ServiceCollection();
|
||||
//容器初始化
|
||||
services.Initialize();
|
||||
//构造容器
|
||||
services.Build();
|
||||
|
||||
LoginForm login = ApplicationServiceContext.ServiceProvider.GetRequiredKeyedService<LoginForm>(typeof(LoginForm).Name);
|
||||
|
||||
login.InitForm();
|
||||
|
||||
if (DialogResult.OK.Equals(login.ShowDialog()))
|
||||
{
|
||||
login.Close();
|
||||
|
||||
MainForm mf = ApplicationServiceContext.ServiceProvider.GetRequiredKeyedService<MainForm>(typeof(MainForm).Name);
|
||||
mf.InitForm();
|
||||
|
||||
Application.Run(mf);
|
||||
}
|
||||
}
|
||||
catch (ValidatedException ex)
|
||||
{
|
||||
ShowMessageBox.ShowInfo(ex.Message);
|
||||
}
|
||||
catch (ServiceErrorException ex)
|
||||
{
|
||||
ShowMessageBox.ShowError(ex.Message);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowMessageBox.ShowError(ex.Message);
|
||||
}
|
||||
//容器初始化开始
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"CloudBuilder": {
|
||||
"Culture": "zh-cn",
|
||||
"DefaultVersion": "Dev Ver.0.0.0.1",
|
||||
"DefaultTitle": "有家相册",
|
||||
"DefaultCopyright": "版权所有 © 2025 有家相册",
|
||||
"DbContexts": {
|
||||
"MasterDbContext": {
|
||||
"DbContextTypeName": "MasterDbContext",
|
||||
"ConnectionString": "Server=localhost\\SQLEXPRESS;Database=Furion_dev;User=sa;Password=owen123456;MultipleActiveResultSets=True;TrustServerCertificate=true",
|
||||
"DatabaseType": "SqlServer",
|
||||
"LazyLoadingProxiesEnabled": true,
|
||||
"AuditEntityEnabled": true,
|
||||
"AutoMigrationEnabled": true
|
||||
}
|
||||
},
|
||||
"ServiceRequest": {
|
||||
"BaseAddress": "http://localhost:5235",
|
||||
"DefaultRequestHeaders": {
|
||||
"Accept": "application/json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"LogFileDirectory": "D:\\NET8\\CloudBuilder\\CloudBuilder.Web.Entry\\bin\\Debug\\net8.0\\logs",
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Reference in new issue
Block a user