From ae9da7f01dcb9cf0c3a4f0ce06e2b7e5f5544b38 Mon Sep 17 00:00:00 2001 From: Shmueli Englard Date: Thu, 2 Apr 2015 02:04:11 -0400 Subject: [PATCH 1/2] Added Windows steps on how to build and run console app --- app/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/index.js b/app/index.js index 9fa08fd..c1b495f 100644 --- a/app/index.js +++ b/app/index.js @@ -112,6 +112,19 @@ var csharpgenerator = yeoman.generators.Base.extend({ this.template(this.sourceRoot() + '/Properties/AssemblyInfo.cs', this.applicationName + '/Properties/AssemblyInfo.cs', this.templatedata); break; } + }, + end: function(){ + switch(this.projecttype){ + case 'consoleapp': + this.log('\r\n'); + this.log('Your project is now created, you can use the following commands to get going'); + this.log(chalk.blue('On Windows:')); + this.log(chalk.blue(' msbuild ' + this.applicationName + '.csproj /p:OutputPath=bin')); + this.log(chalk.blue(' bin\\' + this.applicationName + '.exe')); + this.log(chalk.white('On OSX:')); + this.log(chalk.yellow('On Linux:')); + break; + } } }); From 3acdf7f7d9bcd6ebd8a9349e42a0f54fb96c4df8 Mon Sep 17 00:00:00 2001 From: Shmueli Englard Date: Thu, 2 Apr 2015 02:06:25 -0400 Subject: [PATCH 2/2] Added Window build steps for class library --- app/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/index.js b/app/index.js index c1b495f..80a5c90 100644 --- a/app/index.js +++ b/app/index.js @@ -124,6 +124,14 @@ var csharpgenerator = yeoman.generators.Base.extend({ this.log(chalk.white('On OSX:')); this.log(chalk.yellow('On Linux:')); break; + case "classlibrary": + this.log('\r\n'); + this.log('Your project is now created, you can use the following commands to build'); + this.log(chalk.blue('On Windows:')); + this.log(chalk.blue(' msbuild ' + this.applicationName + '.csproj /p:OutputPath=bin')); + this.log(chalk.white('On OSX:')); + this.log(chalk.yellow('On Linux:')); + break; } } });