discord-rpc-csharp: Unable to load file or composition Discord RPC
Unmanaged exception: System.IO.FileNotFoundException: Unable to load file or composition Discord RPC, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null, or one of its dependencies. The file can not be found. at DiscordRPCTest.Program.Main (String [] args)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DiscordRPC;
namespace DiscordRPCTest
{
class Program
{
public static DiscordRpcClient client;
static void Main(string[] args)
{
client = new DiscordRpcClient("458202823641792512", true, 1);
//Subscribe to events
client.OnPresenceUpdate += (sender, e) =>
{
Console.WriteLine("Received Update! {0}", e.Presence);
};
//Connect to the RPC
client.Initialize();
//Set the rich presence
client.SetPresence(new RichPresence()
{
Details = "CrunchyHub",
State = "csharp example",
Assets = new Assets()
{
LargeImageKey = "image_large",
LargeImageText = "Lachee's Discord IPC Library",
SmallImageKey = "image_small"
}
});
Console.ReadLine();
}
}
}
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (5 by maintainers)
Just to let you know. Dont close the issue yet i dont know it it works yet. i am cloning rn