Skip to content

Commit

Permalink
Merge commit 'd31135e5051371d509ce8e1c1951d09875d61a0c' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Dec 15, 2023
2 parents beeb000 + d31135e commit 60d4cf7
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishAot>true</PublishAot>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>

</Project>
9 changes: 9 additions & 0 deletions KearlenernayCurqulaicherwemga/FaryubawkaJebelchako/Foo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Runtime.InteropServices;

namespace FaryubawkaJebelchako;

public static class Foo
{
[UnmanagedCallersOnly(EntryPoint = "Add")]
public static int Add(int a, int b) => a + b;
}
31 changes: 31 additions & 0 deletions KearlenernayCurqulaicherwemga/KearlenernayCurqulaicherwemga.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34221.43
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KearlenernayCurqulaicherwemga", "KearlenernayCurqulaicherwemga\KearlenernayCurqulaicherwemga.csproj", "{42C353BD-6DB9-4F62-B35A-D75616AFB3F9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FaryubawkaJebelchako", "FaryubawkaJebelchako\FaryubawkaJebelchako.csproj", "{67CACD51-CDE4-455C-A94D-2BA503ED1E1E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{42C353BD-6DB9-4F62-B35A-D75616AFB3F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42C353BD-6DB9-4F62-B35A-D75616AFB3F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42C353BD-6DB9-4F62-B35A-D75616AFB3F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42C353BD-6DB9-4F62-B35A-D75616AFB3F9}.Release|Any CPU.Build.0 = Release|Any CPU
{67CACD51-CDE4-455C-A94D-2BA503ED1E1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67CACD51-CDE4-455C-A94D-2BA503ED1E1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67CACD51-CDE4-455C-A94D-2BA503ED1E1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67CACD51-CDE4-455C-A94D-2BA503ED1E1E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2771D003-6721-43EA-97DF-0C7C0A7E4796}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<None Include="..\FaryubawkaJebelchako\bin\Release\net8.0\win-x64\publish\FaryubawkaJebelchako.dll" Link="FaryubawkaJebelchako.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// See https://aka.ms/new-console-template for more information

using System.Runtime.InteropServices;

Console.WriteLine(Add(1, 1));

[DllImport("FaryubawkaJebelchako.dll")]
static extern int Add(int a, int b);

0 comments on commit 60d4cf7

Please sign in to comment.