Windows - Visual Studio 2012 Requirement


#1

Is it possible make the package solutions compatible with a variety of Visual Studio versions? I have 2013 installed, and need to download 2012 just to build Atom on my desktop.

Side note: is there an ETA on a windows binary release?


#2

See the FAQ:


#3

Is it possible make the package solutions compatible with a variety of Visual Studio versions? I have 2013 installed, and need to download 2012 just to build Atom on my desktop.

I built Atom with VS 2013 w/o VS2010/2012. …Couldn’t you?


#4

Did you have 2012 installed before you installed 2013?
The build script throws errors, saying that they require the v110 (2012) build tools.
On second thought I should try to upgrade the solution files. 2012 to 2013 usually works.


#5

Oh… I had installed VS 2012 Express for Web/Win8 for sure. …but O heared my friend could build on 2013 w/o 2012…

Sorry, I do not know much about Windos.


#6

You can, but you have to first “upgrade” (read: convert) the solution files. But this usually causes it to become incompatible with the past version.
The conversion also often has problems, I’ve found.


#7

Well if you look at apm/node_modules/atom-package-manager/config.js:

getInstalledVisualStudioFlag: function() {
  var vs2010Path, vs2012Path, vs2013Path;
  if (!this.isWin32()) {
    return null;
  }
  vs2010Path = path.join(this.x86ProgramFilesDirectory(), "Microsoft Visual Studio 10.0", "Common7", "IDE");
  if (fs.existsSync(vs2010Path)) {
    return '2010';
  }
  vs2012Path = path.join(this.x86ProgramFilesDirectory(), "Microsoft Visual Studio 11.0", "Common7", "IDE");
  if (fs.existsSync(vs2012Path)) {
    return '2012';
  }
  vs2013Path = path.join(this.x86ProgramFilesDirectory(), "Microsoft Visual Studio 12.0", "Common7", "IDE");
  if (fs.existsSync(vs2013Path)) {
    return '2013';
  }
}

It’s supposed to support 2010, 2012, and 2013. I assume you need to modify the project file to play nicely with anything newer than 2012.


#8

@Someguy123 Dos the visual studio must be installed at C:\ drive ? I’ve already installed the 2010 at D: , but not work.


#9

@guozengxin If you’re using my builds, you can modify resources/apm/node_modules/atom-package-manager/config.js as described on my website under troubleshooting: http://atom.someguy123.com


#10

@Someguy123 That may be true but the order in which they have the return…if should be reversed. The current order caused me issues because I once had Visual Studion 2012 installed side by side with the 2013 beta. Plus why start from the bottom.