Remotely 开源项目使用教程

Remotely 开源项目使用教程

RemotelyA remote control and remote scripting solution, built with .NET 7, Blazor, and SignalR.项目地址:https://gitcode.com/gh_mirrors/re/Remotely

1. 项目的目录结构及介绍

Remotely 项目的目录结构如下:

Remotely/
├── Client/
│   ├── Remotely_Desktop/
│   ├── Remotely_Mobile/
│   └── Remotely_Web/
├── Server/
│   ├── Remotely_Server/
│   └── Remotely_Server.sln
├── Shared/
│   └── Remotely_Shared/
├── README.md
└── LICENSE

目录结构介绍

  • Client/: 包含所有客户端应用程序的代码。

    • Remotely_Desktop/: 桌面客户端应用程序。
    • Remotely_Mobile/: 移动客户端应用程序。
    • Remotely_Web/: 网页客户端应用程序。
  • Server/: 包含服务器端应用程序的代码。

    • Remotely_Server/: 服务器端应用程序的主要代码。
    • Remotely_Server.sln: 服务器端应用程序的解决方案文件。
  • Shared/: 包含客户端和服务器端共享的代码。

    • Remotely_Shared/: 共享代码库。
  • README.md: 项目说明文件。

  • LICENSE: 项目许可证文件。

2. 项目的启动文件介绍

服务器端启动文件

服务器端的启动文件位于 Server/Remotely_Server/ 目录下,主要文件为 Program.cs

// Program.cs
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Remotely.Server
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureWebHostDefaults(webBuilder =>
                {
                    webBuilder.UseStartup<Startup>();
                });
    }
}

客户端启动文件

客户端的启动文件根据不同的平台有所不同:

  • 桌面客户端: 位于 Client/Remotely_Desktop/ 目录下,主要文件为 MainWindow.xaml.cs
  • 移动客户端: 位于 Client/Remotely_Mobile/ 目录下,主要文件为 MainPage.xaml.cs
  • 网页客户端: 位于 Client/Remotely_Web/ 目录下,主要文件为 index.html

3. 项目的配置文件介绍

服务器端配置文件

服务器端的配置文件位于 Server/Remotely_Server/ 目录下,主要文件为 appsettings.json

{
  "ConnectionStrings": {
    "Default": "Server=(localdb)\\mssqllocaldb;Database=Remotely;Trusted_Connection=True;MultipleActiveResultSets=true"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*"
}

客户端配置文件

客户端的配置文件根据不同的平台有所不同:

  • 桌面客户端: 位于 Client/Remotely_Desktop/ 目录下,主要文件为 appsettings.json
  • 移动客户端: 位于 Client/Remotely_Mobile/ 目录下,主要文件为 appsettings.json
  • 网页客户端: 位于 Client/Remotely_Web/ 目录下,主要文件为 config.js

以上是 Remotely 开源项目的目录结构、启动文件和配置文件的详细介绍。希望这份教程能帮助你更好地理解和使用该项目。

RemotelyA remote control and remote scripting solution, built with .NET 7, Blazor, and SignalR.项目地址:https://gitcode.com/gh_mirrors/re/Remotely

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

潘聪争

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值