调试RPC探测问题

This commit is contained in:
大石头 2023-07-05 09:56:47 +08:00
parent 74534aa99f
commit 66c61384b5
5 changed files with 30 additions and 6 deletions

17
Doc/clear.bat Normal file
View File

@ -0,0 +1,17 @@
@echo off
set root=%cd%\..\
pushd ..\
::for /r %root% %%i in (*.pdb,*.vshost.*) do (del %%i)
::for /r %root% %%i in (obj,bin) do (IF EXIST %%i RD /s /q %%i)
::for /r %root% %%i in (obj,bin) do (IF EXIST %%i echo %%i %%~ti)
for /f "delims=" %%i in ('dir /ad/b/s .') do (
if EXIST %%i\bin echo %%i\bin
if EXIST %%i\bin rd /s/q %%i\bin
if EXIST %%i\obj echo %%i\obj
if EXIST %%i\obj rd /s/q %%i\obj
)
::for /f "delims=" %%i in ('dir /ad/b .') do (if EXIST %%i\bin echo %%i\bin)
popd

View File

@ -39,7 +39,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.XCode" Version="11.8.2023.628-beta0652" />
<PackageReference Include="NewLife.XCode" Version="11.8.2023.704-beta0217" />
</ItemGroup>
<ItemGroup>

View File

@ -99,7 +99,7 @@ public class StarFactory : DisposeBase
{
XTrace.WriteLine("正在初始化星尘……");
Local = new LocalStarClient();
Local = new LocalStarClient { Log = Log };
// 从命令行读取参数
var args = Environment.GetCommandLineArgs();

View File

@ -12,6 +12,7 @@ using NewLife.IO;
using NewLife.Log;
using NewLife.Messaging;
using NewLife.Model;
using NewLife.Net;
using NewLife.Reflection;
using NewLife.Remoting;
using NewLife.Serialization;
@ -30,7 +31,7 @@ class Program
{
XTrace.UseConsole();
Test1();
Test3();
Console.WriteLine("OK!");
Console.ReadKey();
@ -114,14 +115,20 @@ class Program
static void Test3()
{
//var buf = "01005F0004496E666F560000007B2250726F636573734964223A323238342C22".ToHex();
//var udp = new UdpClient();
//udp.Send(buf, "127.0.0.1", 5500);
//var rs = udp.ReceiveString();
//foreach (Environment.SpecialFolder item in Enum.GetValues(typeof(Environment.SpecialFolder)))
//{
// var v = Environment.GetFolderPath(item);
// Console.WriteLine("{0}:\t{1}", item, v);
//}
var client = new LocalStarClient();
client.ProbeAndInstall(null, "1.6");
var client = new LocalStarClient { Log = XTrace.Log };
//client.ProbeAndInstall(null, "1.6");
var info = client.GetInfo();
//var p = Process.GetCurrentProcess();
//var name = p.MainModule.FileName;

View File

@ -25,7 +25,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.4.2023.703" />
<PackageReference Include="NewLife.Core" Version="10.4.2023.703-beta1330" />
<PackageReference Include="SSH.NET" Version="2020.0.2" />
</ItemGroup>