<develop>:(ShopERP 端)<无> 项目重命名。

parent a73060d1
......@@ -34,7 +34,7 @@ namespace CoreCms.Net.Utility.Consul
ConsulClient client = new ConsulClient(c =>
{
c.Address = new Uri(configuration["Consul:consulAddress"]);
c.Datacenter = "orderService";
c.Datacenter = "apiService";
});
string ip = configuration["ip"];//优先接收变量的值
......
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup>
<ActiveDebugProfile>CoreCms.Net.Web.Admin</ActiveDebugProfile>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0"?>
<doc>
<assembly>
<name>CoreCms.Net.Web.Admin</name>
<name>ShopERP.Admin</name>
</assembly>
<members>
<member name="T:CoreCms.Net.Web.Admin.Controllers.CoreCmsAdvertisementController">
......
......@@ -14,6 +14,10 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile></DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>ShopERP.Admin</AssemblyName> <!-- 控制输出DLL文件名 -->
</PropertyGroup>
<ItemGroup>
<Compile Remove="App_Data\**" />
......
{
"runtimeOptions": {
"tfm": "net8.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "8.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
\ No newline at end of file
<?xml version="1.0"?>
<doc>
<assembly>
<name>CoreCms.Net.Web.Admin</name>
<name>ShopERP.Admin</name>
</assembly>
<members>
<member name="T:CoreCms.Net.Web.Admin.Controllers.CoreCmsAdvertisementController">
......
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup>
<ActiveDebugProfile>CoreCms.Net.Web.WebApi</ActiveDebugProfile>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0"?>
<doc>
<assembly>
<name>CoreCms.Net.Web.WebApi</name>
<name>ShopERP.WebApi</name>
</assembly>
<members>
<member name="T:CoreCms.Net.Web.WebApi.Controllers.AdvertController">
......
......@@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.Extensions.Hosting;
using System.Linq;
using CoreCms.Net.Utility.Consul;
namespace CoreCms.Net.Web.WebApi.Infrastructure
{
......@@ -128,6 +129,7 @@ namespace CoreCms.Net.Web.WebApi.Infrastructure
defaultFilesOptions.DefaultFileNames.Add("index.html");
app.UseDefaultFiles(defaultFilesOptions);
app.UseStaticFiles();
}
#endregion
......
......@@ -12,6 +12,7 @@ using CoreCms.Net.Mapping;
using CoreCms.Net.Middlewares;
using CoreCms.Net.Swagger;
using CoreCms.Net.Task;
using CoreCms.Net.Utility.Consul;
using CoreCms.Net.Web.WebApi.Infrastructure;
using Essensoft.Paylink.Alipay;
using Essensoft.Paylink.WeChatPay;
......@@ -66,10 +67,15 @@ namespace CoreCms.Net.Web.WebApi
var app = builder.Build();
IConfiguration _configuration = builder.Configuration;
app.ConfigureRequestPipeline();
try
{
//Consul 注册
app.UseConsul(_configuration);
//确保NLog.config中连接字符串与appsettings.json中同步
NLogUtil.EnsureNlogConfig("NLog.config");
......
......@@ -17,6 +17,10 @@
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>ShopERP.WebApi</AssemblyName> <!-- 控制输出DLL文件名 -->
</PropertyGroup>
<ItemGroup>
<Compile Remove="App_Data\**" />
......
date,LogTitle,message,exception,machinename,appdomain,assembly-version,basedir,callsite,counter,nlogdir,processid,processname,specialfolder,stacktrace,longdate,event-properties,uppercase,logger,url,action
2025/01/20 17:11:24.873,接口启动,接口启动成功,,PC-20220610JUCQ,0001:CoreCms.Net.Web.WebApi, 1.0.0.0,F:\Git_Code\CoreShop\CoreCms.Net.Web.WebApi\bin\Debug\net8.0\,CoreCms.Net.Loging.NLogUtil.WriteFileLog,1,F:\Git_Code\CoreShop\CoreCms.Net.Web.WebApi\bin\Debug\net8.0,23992,iisexpress,C:\Users\Desktop,Program.Main => NLogUtil.WriteLogFile => NLogUtil.WriteFileLog,2025-01-20 17:11:24.8731,,TRACE,logfile,,
2025/01/20 17:17:10.183,接口启动,接口启动成功,,PC-20220610JUCQ,0001:CoreCms.Net.Web.WebApi, 1.0.0.0,F:\Git_Code\CoreShop\CoreCms.Net.Web.WebApi\bin\Debug\net8.0\,CoreCms.Net.Loging.NLogUtil.WriteFileLog,1,F:\Git_Code\CoreShop\CoreCms.Net.Web.WebApi\bin\Debug\net8.0,8500,CoreCms.Net.Web.WebApi,C:\Users\Desktop,Program.Main => NLogUtil.WriteLogFile => NLogUtil.WriteFileLog,2025-01-20 17:17:10.1838,,TRACE,logfile,,
......@@ -7,9 +7,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "App", "App", "{9C52D39C-A85
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.Core", "1.Core", "{B3F41F4C-3681-48F3-9BE3-809763AC1937}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreCms.Net.Web.Admin", "CoreCms.Net.Web.Admin\CoreCms.Net.Web.Admin.csproj", "{95487EF2-3942-4F9B-8ECE-ACD7A4B304D9}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ShopERP.Admin", "CoreCms.Net.Web.Admin\ShopERP.Admin.csproj", "{95487EF2-3942-4F9B-8ECE-ACD7A4B304D9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreCms.Net.Web.WebApi", "CoreCms.Net.Web.WebApi\CoreCms.Net.Web.WebApi.csproj", "{CC504B7B-C4E1-4B0D-AAA8-E090E286F850}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ShopERP.WebApi", "CoreCms.Net.Web.WebApi\ShopERP.WebApi.csproj", "{CC504B7B-C4E1-4B0D-AAA8-E090E286F850}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreCms.Net.Auth", "CoreCms.Net.Auth\CoreCms.Net.Auth.csproj", "{F776B535-7988-452B-AF14-5DC9B7D6E95D}"
EndProject
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment