CoreTemplatePack icon indicating copy to clipboard operation
CoreTemplatePack copied to clipboard

Throws error looking for 1.0.0-preview3-004056

Open mtranchi opened this issue 9 years ago • 3 comments

Installed product versions

  • Visual Studio: [2015 Community Update 3]
  • This extension: [example 1.1.21]

Description

Can't get Angular2 template going (see included pic of Dialog Box) ng2templateerror . I have VS2017 RC installed also. Might that be the issue?

Steps to recreate

Install extension and open a new Angular2 template

Current behavior

After closing the dialog, can't seem to get anything to work. Won't even start

Expected behavior

mtranchi avatar Dec 10 '16 18:12 mtranchi

I am getting the same error message attempting to create a new Angular 2 project. I also have VS2017 RC installed.

Visual Studio 2015 Enterprise (14.0.25431.01 Update 3) Extension Version: 1.1.37

JoshuaCode avatar Dec 12 '16 18:12 JoshuaCode

Same here. Just read Steve Sanderson's post on this and wanted to try it. After installing and creating a new project from the Angular template, nothing works. Upgrading typescript to 2.03 first. Hmm. That worked. Just did a build and debug run.

bdelaney avatar Dec 16 '16 21:12 bdelaney

If you've installed VS2017RC (or the .NET Core tools preview 3 or later), then you must also add a global.json file in the root of your project specifying the SDK version, e.g.:

{
  "sdk": { "version": "1.0.0-preview2-1-003177" }
}

Alternatively, use the generator-aspnetcore-spa Yeoman generator instead, as it produces a newer version of the project that already includes the global.json file (or can even make VS2017-style csproj projects for you if you prefer that).

SteveSandersonMS avatar Jan 10 '17 12:01 SteveSandersonMS