Archived
0
0
Fork 0

Initial NetSD Project

This commit is contained in:
Daryl Ronningen 2022-11-15 23:18:41 -08:00
commit 2df375c7f7
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
6 changed files with 76 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
bin
obj
.idea

7
global.json Normal file
View file

@ -0,0 +1,7 @@
{
"sdk": {
"version": "7.0.0",
"rollForward": "latestMajor",
"allowPrerelease": true
}
}

16
netsd.sln Normal file
View file

@ -0,0 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "netsd", "netsd\netsd.csproj", "{2A72A757-76F5-427C-B1DF-7E72EFE6780C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release|x64 = Release|x64
Debug|x64 = Debug|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Release|x64.ActiveCfg = Release|x64
{2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Release|x64.Build.0 = Release|x64
{2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Debug|x64.ActiveCfg = Debug|x64
{2A72A757-76F5-427C-B1DF-7E72EFE6780C}.Debug|x64.Build.0 = Debug|x64
EndGlobalSection
EndGlobal

5
netsd/Handlers/Daemon.cs Normal file
View file

@ -0,0 +1,5 @@
namespace netsd.Handlers;
public class Daemon
{
}

8
netsd/Program.cs Normal file
View file

@ -0,0 +1,8 @@
using System.CommandLine;
var daemonCommand = new Command("init", "Run and bring up all default services");
var rootCommand = new RootCommand("Linux service manager written in C#");
rootCommand.AddCommand(daemonCommand);
return await rootCommand.InvokeAsync(args);

37
netsd/netsd.csproj Normal file
View file

@ -0,0 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<AssemblyVersion>0.0.0.1</AssemblyVersion>
<FileVersion>0.0.0.1</FileVersion>
<Configurations>Release;Debug</Configurations>
<Platforms>x64</Platforms>
<!-- Agressive Optimizations (Saves a lot of mbs for the end user :3) -->
<PublishAot>true</PublishAot>
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
<StripSymbols>true</StripSymbols>
<DebuggerSupport>false</DebuggerSupport>
<EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
<InvariantGlobalization>true</InvariantGlobalization>
<TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
<EnableUnsafeBinaryFormatterSerialization>false</EnableUnsafeBinaryFormatterSerialization>
<EventSourceSupport>false</EventSourceSupport>
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
<MetadataUpdaterSupport>false</MetadataUpdaterSupport>
<UseNativeHttpHandler>true</UseNativeHttpHandler>
<UseSystemResourceKeys>true</UseSystemResourceKeys>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
<PackageReference Include="runtime.linux-musl-x64.Microsoft.DotNet.ILCompiler" Version="7.0.0" />
<PackageReference Include="runtime.linux-x64.Microsoft.DotNet.ILCompiler" Version="7.0.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
</ItemGroup>
</Project>