feat:基于furion搭建
This commit is contained in:
1
Yi.Furion.Rbac/Yi.Furion.Rbac.Web.Entry/Program.cs
Normal file
1
Yi.Furion.Rbac/Yi.Furion.Rbac.Web.Entry/Program.cs
Normal file
@@ -0,0 +1 @@
|
||||
Serve.Run(RunOptions.Default.WithArgs(args));
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:53785",
|
||||
"sslPort": 44342
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"Yi.Furion.Rbac.Web.Entry": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "",
|
||||
"applicationUrl": "https://localhost:5001;http://localhost:5000",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
Yi.Furion.Rbac/Yi.Furion.Rbac.Web.Entry/SingleFilePublish.cs
Normal file
23
Yi.Furion.Rbac/Yi.Furion.Rbac.Web.Entry/SingleFilePublish.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Furion;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Yi.Furion.Rbac.Web.Entry;
|
||||
|
||||
public class SingleFilePublish : ISingleFilePublish
|
||||
{
|
||||
public Assembly[] IncludeAssemblies()
|
||||
{
|
||||
return Array.Empty<Assembly>();
|
||||
}
|
||||
|
||||
public string[] IncludeAssemblyNames()
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
"Yi.Furion.Rbac.Application",
|
||||
"Yi.Furion.Rbac.Core",
|
||||
"Yi.Furion.Rbac.EntityFramework.Core",
|
||||
"Yi.Furion.Rbac.Web.Core"
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
|
||||
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.15">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Yi.Furion.Rbac.Web.Core\Yi.Furion.Rbac.Web.Core.csproj" />
|
||||
</ItemGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<UserProperties properties_4launchsettings_1json__JsonSchema="" />
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
|
||||
</Project>
|
||||
11
Yi.Furion.Rbac/Yi.Furion.Rbac.Web.Entry/appsettings.json
Normal file
11
Yi.Furion.Rbac/Yi.Furion.Rbac.Web.Entry/appsettings.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Microsoft.EntityFrameworkCore": "Information"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Reference in New Issue
Block a user