Fix some small issues and experiment with C#
This commit is contained in:
11
examples/cs/Other/OtherClass.cs
Normal file
11
examples/cs/Other/OtherClass.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace OtherNamespace {
|
||||
public class OtherClass {
|
||||
// This method will be called by native code inside the target process…
|
||||
public static int OtherMethod() {
|
||||
System.Console.WriteLine("Goodbye World from C#");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
7
examples/cs/Other/OtherClass.csproj
Normal file
7
examples/cs/Other/OtherClass.csproj
Normal file
@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>OtherNamespace</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user