diff --git a/package.json b/package.json index fb5443d..5af09a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft.azure/autorest.azureresourceschema", - "version": "1.9.3", + "version": "1.9.4", "description": "The Azure Resource Schema extension for classic generators in AutoRest.", "scripts": { "start": "dotnet src/bin/netcoreapp2.0/autorest.azureresourceschema.dll --server", diff --git a/src/Program.cs b/src/Program.cs index 2cbf0ab..01ba0dc 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -30,7 +30,7 @@ namespace AutoRest.AzureResourceSchema public static int Main(string[] args ) { if(args != null && args.Length > 0 && args[0] == "--server") { - var connection = new Connection(Console.Out, Console.OpenStandardInput()); + var connection = new Connection(Console.OpenStandardOutput(), Console.OpenStandardInput()); connection.Dispatch>("GetPluginNames", async () => new []{ "azureresourceschema" }); connection.Dispatch("Process", (plugin, sessionId) => new Program(connection, plugin, sessionId).Process()); connection.DispatchNotification("Shutdown", connection.Stop); diff --git a/src/autorest.azureresourceschema.csproj b/src/autorest.azureresourceschema.csproj index 4e3e832..f0ebaba 100644 --- a/src/autorest.azureresourceschema.csproj +++ b/src/autorest.azureresourceschema.csproj @@ -62,7 +62,7 @@ - +