Titanium JIRA Archive
Appcelerator Community (AC)

[AC-550] Failed to run MSBuild as Visual Studio cannot find a suitable .NET framework.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2016-01-07T05:21:42.000+0000
Affected Version/sAppcelerator Studio 4.4.0
Fix Version/sn/a
ComponentsAlloy, Studio, Titanium SDK & CLI
Labels.net, windows_phone
ReporterAditya Chowta
AssigneeShak Hossain
Created2015-12-30T10:25:20.000+0000
Updated2016-01-07T06:33:17.000+0000

Description

I have Appcelerator Studio, build: 4.4.0.201511241829 installed on Windows 10 Pro I have both Windows SDK 8.0 and 8.1 installed I have Microsoft Visual Studio 2013 installed On executing the project I get the following compilation error. I have latest Microsoft .NET Framework 4.6 Installed too. [ERROR] : Failed to run MSBuild. [ERROR] : This is most likely due to Visual Studio cannot find a suitable .NET framework. [ERROR] : Please install the latest .NET framework. 2015-12-30T09:32:46.092Z | TRACE | titanium exited with exit code 1 2015-12-30T09:32:46.094Z | ERROR | Error: ti run exited with error code 1 at ChildProcess. (C:\Users\Aditya Chowta\.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\plugins\run.js:92:23) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 2015-12-30T09:32:46.095Z | TRACE | Sending exit signal to titanium process: 6852 Looking for any suggestions.

Comments

  1. Sharif AbuDarda 2015-12-31

    Hello, There are couple of things you can try, 1. Compile the program again to see if the error recurs. 2. If the error continues, save your work and restart Appcelerator studio. 3. If the error recurs, reinstall Visual Basic. 4. Try revart back to .NET version [4.5.1](https://www.microsoft.com/en-us/download/details.aspx?id=40779). Which is version compatible to the visual studio 2013 according to the [website](https://msdn.microsoft.com/en-us/library/bb822049%28v=vs.110%29.aspx). 5. Run "appc setup" in Command prompt. Reply with your findings, Thanks.
  2. Aditya Chowta 2016-01-07

    HI, The issue gets resolved by adding Microsoft .NET Framework location('C:\Windows\Microsoft.NET\Framework64\v4.0.30319') to your Environment Variables PATH. Thank You for your response.

JSON Source