I was just wondering how I could make a link in c# console clickable and be able to execute in a browser. Here is the code:
using System.Collections.Generic;
using System.Text;
namespace Project
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Click here to be redirected");
Console.WriteLine("https://stackoverflow.com");
Console.ReadLine();
}
}
}
This depends on the terminal emulator you use (I assume it's Command Prompt now). There is no way to change this behavior using C#.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.