From 0a3170548184b09ac004290115329530cc5c9eb9 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Thu, 14 Jul 2016 13:07:42 -0700 Subject: [PATCH] Should use debug version of autorest when building on windows (#1268) * should use debug version of autorest when building on windows (like the other plats) * fix path to autorest.json file --- Tools/gulp/gulp-regenerate-expected.js | 2 +- gulpfile.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/gulp/gulp-regenerate-expected.js b/Tools/gulp/gulp-regenerate-expected.js index 10b848c1a71b..b4cd45c9807e 100644 --- a/Tools/gulp/gulp-regenerate-expected.js +++ b/Tools/gulp/gulp-regenerate-expected.js @@ -13,7 +13,7 @@ var isMac = (process.platform.lastIndexOf('darwin') === 0); function GetAutoRestFolder() { if (isWindows) { - return "src/core/AutoRest/bin/Release/net451/win7-x64/"; + return "src/core/AutoRest/bin/Debug/net451/win7-x64/"; } if( isMac ) { return "src/core/AutoRest/bin/Debug/net451/osx.10.11-x64/"; diff --git a/gulpfile.js b/gulpfile.js index d2a58793c343..477e0469888e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -30,7 +30,7 @@ process.env.MSBUILDDISABLENODEREUSE = 1; function GetAutoRestFolder() { if (isWindows) { - return "src/core/AutoRest/bin/Release/net451/win7-x64/"; + return "src/core/AutoRest/bin/Debug/net451/win7-x64/"; } if( isMac ) { return "src/core/AutoRest/bin/Debug/net451/osx.10.11-x64/"; @@ -486,7 +486,7 @@ gulp.task('regenerate:expected:csazurecomposite', function (cb) { }); gulp.task('regenerate:expected:samples', ['regenerate:expected:samples:azure'], function(){ - var autorestConfigPath = path.join(basePathOrThrow(), GetAutoRestFolder() + 'AutoRest.Release.json'); + var autorestConfigPath = path.join(basePathOrThrow(), GetAutoRestFolder() + 'AutoRest.json'); var content = fs.readFileSync(autorestConfigPath).toString(); if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); @@ -504,7 +504,7 @@ gulp.task('regenerate:expected:samples', ['regenerate:expected:samples:azure'], }); gulp.task('regenerate:expected:samples:azure', function(){ - var autorestConfigPath = path.join(basePathOrThrow(), GetAutoRestFolder() + 'AutoRest.Release.json'); + var autorestConfigPath = path.join(basePathOrThrow(), GetAutoRestFolder() + 'AutoRest.json'); var content = fs.readFileSync(autorestConfigPath).toString(); if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1);