Skip to content

Instantly share code, notes, and snippets.

@dylanlangston
Created April 23, 2020 15:09
Show Gist options
  • Save dylanlangston/dac65a6958b84c22691be216daab76d1 to your computer and use it in GitHub Desktop.
Save dylanlangston/dac65a6958b84c22691be216daab76d1 to your computer and use it in GitHub Desktop.
A simple C# program that returns the URI thats passed to it. Useful for troubleshooting issues with URIs and the PaperVision Client's direct launch method.
using System;
namespace urischeme
{
class Program
{
static void Main(string[] args)
{
Uri uri = null;
if (args.Length > 0)
{
try {
uri = new Uri(args[0].Trim());
Console.WriteLine(uri);
} catch {
Console.WriteLine("No valid URI provided");
}
} else {
Console.WriteLine("No URI provided");
}
Console.ReadKey(true);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment