title: Angular 6 "Workspace needs to be loaded before it is used." when trying to generate a new Component
body: <p>when I create asp.net core project with angular dotnet new command does not add an angular.json file (angular 6) to the project and therefor we are not able to use angular cli. If i add angular.json file manually the project give the exception below!? </p>
  
  <pre><code>Workspace needs to be loaded before it is used. Error: Workspace needs to be loaded before it is used. at Workspace._assertLoaded (D:\NetAngular\node_modules\@angular-devkit\core\src\workspace\workspace.js:59:19) at Workspace.getProjectByPath (D:\NetAngular\node_modules\@angular-devkit\core\src\workspace\workspace.js:103:14) at Object.getPackageManager (D:\NetAngular\node_modules\@angular\cli\utilities\config.js:97:35) at UpdateCommand.runSchematic (D:\NetAngular\node_modules\@angular\cli\models\schematic-command.js:74:38) at UpdateCommand.&lt;anonymous&gt; (D:\NetAngular\node_modules\@angular\cli\commands\update.js:70:25) at Generator.next (&lt;anonymous&gt;) at D:\NetAngular\node_modules\@angular\cli\commands\update.js:7:71 at new Promise (&lt;anonymous&gt;) at __awaiter (D:\NetAngular\node_modules\@angular\cli\commands\update.js:3:12) at UpdateCommand.run (D:\NetAngular\node_modules\@angular\cli\commands\update.js:69:16)
  </code></pre>