Created
April 23, 2020 15:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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