mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 19:14:34 +01:00
Add project files.
This commit is contained in:
13
Common/Common.csproj
Normal file
13
Common/Common.csproj
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Config.Net" Version="5.1.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
25
Common/Program.cs
Normal file
25
Common/Program.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using Config.Net;
|
||||||
|
|
||||||
|
namespace Common
|
||||||
|
{
|
||||||
|
public static class Global
|
||||||
|
{
|
||||||
|
public static IConfig config = new ConfigurationBuilder<IConfig>().UseJsonFile("config.json").Build();
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface IConfig
|
||||||
|
{
|
||||||
|
[Option(DefaultValue = VerboseLevel.Normal)]
|
||||||
|
VerboseLevel VerboseLevel { get; }
|
||||||
|
|
||||||
|
[Option(DefaultValue = "mongodb://localhost:27017/crepebh")]
|
||||||
|
string DatabaseUri { get; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum VerboseLevel
|
||||||
|
{
|
||||||
|
Normal = 0,
|
||||||
|
Debug = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
24
PemukulPaku.csproj
Normal file
24
PemukulPaku.csproj
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Remove="Common\**" />
|
||||||
|
<EmbeddedResource Remove="Common\**" />
|
||||||
|
<None Remove="Common\**" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="protobuf-net" Version="3.2.16" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Common\Common.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
31
PemukulPaku.sln
Normal file
31
PemukulPaku.sln
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.4.33205.214
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PemukulPaku", "PemukulPaku.csproj", "{7D6FBA7C-137B-43A9-B7CE-0932277AC202}"
|
||||||
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "Common\Common.csproj", "{226D0356-65DE-4DBD-9FF4-7D4B527B02E0}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {899AE63B-ADA9-4F9F-B78D-B7B20546F58C}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
16
Program.cs
Normal file
16
Program.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
using PemukulPaku.Resources.Proto;
|
||||||
|
|
||||||
|
namespace PemukulPaku
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
public static void Main()
|
||||||
|
{
|
||||||
|
Console.WriteLine("Hello!");
|
||||||
|
GetPlayerTokenRsp getPlayerTokenRsp = new()
|
||||||
|
{
|
||||||
|
Msg = "Hello!"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
Resources/.gitkeep
Normal file
1
Resources/.gitkeep
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
Reference in New Issue
Block a user