added basic files and SocialVoid.Errors namespace
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
This commit is contained in:
parent
a15e61a3d0
commit
119380ca54
|
@ -0,0 +1,6 @@
|
||||||
|
# ignore output directories.
|
||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
|
||||||
|
# ignore experimental directories.
|
||||||
|
woto_files/
|
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
// Use IntelliSense to find out which attributes exist for C# debugging
|
||||||
|
// Use hover for the description of the existing attributes
|
||||||
|
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
|
||||||
|
"name": ".NET Core Launch (console)",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
|
"program": "${workspaceFolder}/Tests/bin/Debug/net5.0/ClientTest.dll",
|
||||||
|
"args": [],
|
||||||
|
"cwd": "${workspaceFolder}/Tests",
|
||||||
|
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
|
||||||
|
"console": "internalConsole",
|
||||||
|
"stopAtEntry": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": ".NET Core Attach",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "attach"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "build",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"build",
|
||||||
|
"${workspaceFolder}/Tests/Tests.csproj",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "publish",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"publish",
|
||||||
|
"${workspaceFolder}/Tests/Tests.csproj",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "watch",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"watch",
|
||||||
|
"run",
|
||||||
|
"${workspaceFolder}/Tests/Tests.csproj",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 140 KiB |
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SocialVoid", "SocialVoid\SocialVoid.csproj", "{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBD}") = "Tests", "Tests\Tests.csproj", "{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
|
@ -0,0 +1,7 @@
|
||||||
|
namespace SocialVoid.Errors
|
||||||
|
{
|
||||||
|
public enum ErrorCodes
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace SocialVoid.Errors {
|
||||||
|
public class GeneralException : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
public GeneralException(string message) : base(message)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
Binary file not shown.
After Width: | Height: | Size: 140 KiB |
|
@ -0,0 +1,153 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<!--
|
||||||
|
This file is part of GUISharp Project (https://github.com/GUISharp/GUISharp).
|
||||||
|
Copyright (c) 2021 GUISharp Authors.
|
||||||
|
|
||||||
|
This library is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, version 3.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this source code of library.
|
||||||
|
If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<PropertyGroup>
|
||||||
|
<RuntimeIdentifier Condition="'$(OS)' == 'unix'">linux-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(OS)' == 'Windows_NT'">win-x64</RuntimeIdentifier>
|
||||||
|
<AssemblyName>SocialVoid</AssemblyName>
|
||||||
|
<RootNamespace>SocialVoid</RootNamespace>
|
||||||
|
<description>The official Socialvoid RPC Library written for C#</description>
|
||||||
|
<NeutralLanguage>en-US</NeutralLanguage>
|
||||||
|
<TargetFramework Condition="'$(OS)' == 'Windows_NT'">net5.0;net461;netstandard2.0;netstandard2.1;uap10.0;monoandroid9.0;xamarin.ios10</TargetFramework>
|
||||||
|
<TargetFramework Condition="'$(OS)' == 'unix'">net5.0</TargetFramework>
|
||||||
|
<PackageId>SovialVoid</PackageId>
|
||||||
|
<Version>0.0.1</Version>
|
||||||
|
<Authors>SocialVoid Team</Authors>
|
||||||
|
<PackageProjectUrl>https://github.com/intellivoid/Socialvoid.NET</PackageProjectUrl>
|
||||||
|
<RepositoryUrl>https://github.com/intellivoid/Socialvoid.NET</RepositoryUrl>
|
||||||
|
<PackageIconUrl>https://github.com/intellivoid/Socialvoid.NET/raw/master/GUISharp/Icon.ico</PackageIconUrl>
|
||||||
|
<PackageIcon>Icon.png</PackageIcon>
|
||||||
|
<RepositoryType>git</RepositoryType>
|
||||||
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||||
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
|
<license>LICENSE</license>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<PropertyGroup>
|
||||||
|
<NoWarn>1591;1701;1702;1705</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<PropertyGroup>
|
||||||
|
<!--
|
||||||
|
define the __LINUX__ and __WINDOWS__ constants in order to use it in the
|
||||||
|
code as:
|
||||||
|
#if __LINUX__
|
||||||
|
....
|
||||||
|
#elif __WINDOWS__
|
||||||
|
...
|
||||||
|
#endif
|
||||||
|
===================================================================
|
||||||
|
please don't undefine this constant.
|
||||||
|
-->
|
||||||
|
<DefineConstants Condition="'$(OS)' == 'unix'">$(DefineConstants);__LINUX__</DefineConstants>
|
||||||
|
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">$(DefineConstants);__WINDOWS__</DefineConstants>
|
||||||
|
<DefineConstants Condition="'$(TargetFramework)' == 'uap10.0'">$(DefineConstants);__UAP__</DefineConstants>
|
||||||
|
<DefineConstants Condition="$(TargetFramework.StartsWith('monoandroid'))">$(DefineConstants);__ANDROID__</DefineConstants>
|
||||||
|
<DefineConstants Condition="$(TargetFramework.StartsWith('xamarin.ios'))">$(DefineConstants);__IOS__</DefineConstants>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Icon.png" Pack="true" PackagePath="\" />
|
||||||
|
<None Include="..\LICENSE" Pack="true" PackagePath="\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="Icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<ItemGroup>
|
||||||
|
<!--
|
||||||
|
All package references must be added here.
|
||||||
|
example:
|
||||||
|
<PackageReference Include="SharpDX" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
|
||||||
|
<PackageReference Include="SharpDX.Direct3D9" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
|
||||||
|
<PackageReference Include="SharpDX.DXGI" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
|
||||||
|
<PackageReference Include="SharpDX.Mathematics" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
|
||||||
|
<PackageReference Include="SharpDX.MediaFoundation" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
|
||||||
|
<PackageReference Include="SharpDX.XAudio2" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
|
||||||
|
<PackageReference Include="TextCopy" Version="4.3.1" />
|
||||||
|
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
|
||||||
|
<PackageReference Include="FontStashSharp.MonoGame" Version="0.9.5" />
|
||||||
|
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
|
||||||
|
-->
|
||||||
|
</ItemGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--
|
||||||
|
If you want to remove something, add it in this section.
|
||||||
|
example:
|
||||||
|
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
|
||||||
|
<None Remove="Controls\Music\MusicManager.resx"/>
|
||||||
|
</ItemGroup>
|
||||||
|
-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--
|
||||||
|
All of the library includes must be added here.
|
||||||
|
example:
|
||||||
|
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
|
||||||
|
<Content Include="..\natives\libgdiplus.so">
|
||||||
|
<Link>libgdiplus.so</Link>
|
||||||
|
<PackagePath>runtimes\linux-x64\native</PackagePath>
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
|
||||||
|
<Content Include="..\natives\libgdiplus.so.0">
|
||||||
|
<Link>libgdiplus.so.0</Link>
|
||||||
|
<PackagePath>runtimes\linux-x64\native</PackagePath>
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
|
||||||
|
<Content Include="..\natives\libgdiplus.so.0.0.0">
|
||||||
|
<Link>libgdiplus.so.0.0.0</Link>
|
||||||
|
<PackagePath>runtimes\linux-x64\native</PackagePath>
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--===================================================-->
|
||||||
|
<ItemGroup>
|
||||||
|
<!--Include the project folders here.-->
|
||||||
|
<!--
|
||||||
|
|
||||||
|
<Folder Include="GUIContent\bin\DesktopGL\Content">
|
||||||
|
<Link>GUIContent\bin\DesktopGL\Content</Link>
|
||||||
|
</Folder>
|
||||||
|
<Folder Include="Controls\Animation\AnimationCompanies" />
|
||||||
|
<Folder Include="Controls\GameGraphics\XDrawing" />
|
||||||
|
-->
|
||||||
|
|
||||||
|
</ItemGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<!Include another project .csproj file here.>
|
||||||
|
<!If you include them here, they will be built as well.>
|
||||||
|
<ProjectReference Include="..\WotoProvider\WotoProvider.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--===================================================-->
|
||||||
|
</Project>
|
||||||
|
|
||||||
|
<!--End of the GUISharp Project File.-->
|
||||||
|
<!--2019 - 2021 (C) wotoTeam-->
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
namespace Tests
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
//SocialVoid.TestClass.Something();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,74 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<!-- GUISharp Project
|
||||||
|
Copyright (C) 2019 - 2021 ALiwoto
|
||||||
|
This file is subject to the terms and conditions defined in
|
||||||
|
file 'LICENSE', which is part of the source code.-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(OS)' == 'unix'">linux-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(OS)' == 'Windows_NT'">win-x64</RuntimeIdentifier>
|
||||||
|
<PublishTrimmed>true</PublishTrimmed>
|
||||||
|
<PublishReadyToRun>true</PublishReadyToRun>
|
||||||
|
<AssemblyName>ClientTest</AssemblyName>
|
||||||
|
<RootNamespace>ClientTest</RootNamespace>
|
||||||
|
<NeutralLanguage>en-US</NeutralLanguage>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
|
||||||
|
<!--===================================================-->
|
||||||
|
<PropertyGroup>
|
||||||
|
<!--
|
||||||
|
define the __LINUX__ and __WINDOWS__ constants in order to use it in the
|
||||||
|
code as:
|
||||||
|
#if __LINUX__
|
||||||
|
....
|
||||||
|
#elif __WINDOWS__
|
||||||
|
...
|
||||||
|
#endif
|
||||||
|
===================================================================
|
||||||
|
please don't undefine this constant.
|
||||||
|
-->
|
||||||
|
<DefineConstants Condition="'$(OS)' == 'unix'">__LINUX__</DefineConstants>
|
||||||
|
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">__WINDOWS__</DefineConstants>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<ItemGroup>
|
||||||
|
<!--======================-->
|
||||||
|
<!--======================-->
|
||||||
|
<!--======================-->
|
||||||
|
</ItemGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<!--===================================================-->
|
||||||
|
<ItemGroup>
|
||||||
|
<!--Include the project folders here.-->
|
||||||
|
</ItemGroup>
|
||||||
|
<!--===================================================-->
|
||||||
|
<ItemGroup>
|
||||||
|
<!--Include another project .csproj file here.-->
|
||||||
|
<!--If you include them here, they will be built as well.-->
|
||||||
|
<!--
|
||||||
|
|
||||||
|
-->
|
||||||
|
<ProjectReference Include="..\SocialVoid\SocialVoid.csproj" />
|
||||||
|
<!--SocialVoid/SocialVoid.csproj-->
|
||||||
|
|
||||||
|
</ItemGroup>
|
||||||
|
<!--
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
|
||||||
|
</ItemGroup>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--===================================================-->
|
||||||
|
</Project>
|
||||||
|
|
||||||
|
<!--End of the ClientTest Project File.-->
|
||||||
|
<!--2019 - 2021 (C) wotoTeam-->
|
Loading…
Reference in New Issue