Program.cs
See original GitHub issueerror
DiscordRPC.dll'. Cannot find or open the PDB file.
i have the pdb file within the output folder
this is my program.cs file
`class Program { public static DiscordRpcClient client;
static void Main(string[] args)
{
client = new DiscordRpcClient("id", 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 = "csharp example",
State = "csharp example",
Assets = new Assets()
{
LargeImageKey = "removed",
LargeImageText = "removed",
SmallImageKey = ""
}
});
Console.ReadLine();
}
}`
i dont have any idea what the problem is
Kind regards, Phil
Issue Analytics
- State:
- Created 5 years ago
- Comments:26
Top Results From Across the Web
ASP.NET Core fundamentals overview
ASP.NET Core apps created with the web templates contain the application startup code in the Program.cs file. The Program.cs file is where:.
Read more >ASP.NET Core - Program.cs
Learn about program.cs in ASP.NET Core application. ASP.NET Core web application is actually a console project which starts to execute from the Main() ......
Read more >What is Program.cs file in ASP.Net Core project?
In an ASP.NET application, the Program.cs file is the entry point of the application. It is a C# file that contains a Main...
Read more >Program.cs in ASP.NET Core
In this article, we will look at the role of program.cs in ASP.NET Core. It is the entry point of our app, where...
Read more >C# console app template generates top-level statements
To follow an existing tutorial, add any new statements to the Program.cs file generated by the template. You can imagine that the statements ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try to compile the dll with visual studio. Not with the build script. And do not use the native one
Sorry for the very late reply, but If i set the RPC inside of the init class etc.
How would i set the details of the RPC and state when a user clicks a button
this is the new rpc thing im using
private static RichPresence presence = new RichPresence() { Details = "", State = "", Assets = new Assets() { LargeImageKey = "icon", LargeImageText = "temp", SmallImageKey = "temp", SmallImageText = "temp" } };
edit: i checked the example rpc client and it worked when i tried that, have a great day hampusm!