Skip to content

Commit

Permalink
Should use debug version of autorest when building on windows (Azure#…
Browse files Browse the repository at this point in the history
…1268)

* should use debug version of autorest when building on windows (like the other plats)

* fix path to autorest.json file
  • Loading branch information
fearthecowboy authored Jul 14, 2016
1 parent 0933d58 commit 0a31705
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tools/gulp/gulp-regenerate-expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 0a31705

Please sign in to comment.