Geoff
Geoff

Reputation: 6649

ionic2 with visual studio MSB3644 error when starting new project

Am using visual studio 2015 but whenever i begin a new ion ionic2 project an error

MSB3644 The reference assemblies for framework ".NETFramework,Version=v4.0" were not found.
To resolve this, install the SDK or Targeting Pack for 
 this framework version or retarget your application to a version of the framework for 
which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved 
 from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. 
 Therefore your assembly may not be correctly targeted for the framework you intend.

After a research on the error i found out This link and This link but am using windows 10 on a 32 bit computer with program files folder and without the program filesx86 folder

Am not using any server and also a newbie to visual studio

I have also checked and

 C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0. is there

I also found out you need to add

msbuild -p:FrameworkPathOverride="C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.

But am not sure where am supposed to add it

Can someone help me on this issue

Upvotes: 0

Views: 118

Answers (1)

Zhanglong Wu - MSFT
Zhanglong Wu - MSFT

Reputation: 1660

But am not sure where am supposed to add it

  1. Please run "Msbuild Command Prompt for VS2015" enter image description here

  2. Go to the folder of project

  3. run the msbuild command

    msbuild -p:FrameworkPathOverride="C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0"

enter image description here

Upvotes: 1

Related Questions