Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should use debug version of autorest when building on windows #1268

Merged
merged 2 commits into from
Jul 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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