在启动新项目时,ionic2与visual studio MSB3644出错

时间:2017-02-06 05:25:55

标签: visual-studio visual-studio-2015 msbuild

我正在使用visual studio 2015,但每当我开始新的ion ionic2项目时都会出错

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.

在对错误进行研究后,我发现了This linkThis link ,但是我在32位计算机上使用带有程序文件文件夹而没有程序文件x86文件夹的Windows 10

我没有使用任何服务器,也没有使用visual studio的新手

我也检查了

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

我还发现你需要添加

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

但我不确定应该在哪里添加它

有人可以帮我解决这个问题

1 个答案:

答案 0 :(得分:1)

  

但我不确定应该在哪里添加它

  1. 请运行" Msbuild命令提示符VS2015" enter image description here

  2. 转到项目文件夹

  3. 运行msbuild命令

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

  4. enter image description here