启动条件重置
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<DeleteExistingFiles>false</DeleteExistingFiles>
|
||||
<ExcludeApp_Data>false</ExcludeApp_Data>
|
||||
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<PublishProvider>FileSystem</PublishProvider>
|
||||
<PublishUrl>bin\Release\net8.0\publish\</PublishUrl>
|
||||
<WebPublishMethod>FileSystem</WebPublishMethod>
|
||||
<_TargetId>Folder</_TargetId>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<ProjectGuid>e5497bb4-b0c1-4794-9fae-163f626ec399</ProjectGuid>
|
||||
<SelfContained>true</SelfContained>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -30,10 +30,10 @@ namespace Infrastructure
|
||||
Console.ForegroundColor = ConsoleColor.Blue;
|
||||
|
||||
// 打印本地主机的 IP 地址
|
||||
Console.WriteLine($"Local IP addresses for {hostName}:");
|
||||
Console.WriteLine($"主机IP地址为: {hostName}:");
|
||||
foreach (IPAddress ip in localIPs)
|
||||
{
|
||||
Console.WriteLine(ip);
|
||||
Console.WriteLine("主机配置的IP地址列表:"+ip);
|
||||
}
|
||||
|
||||
// 重置控制台输出颜色为默认颜色
|
||||
|
||||
Reference in New Issue
Block a user