Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24189] Windows: Add support for Visual Studio 2017

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-08-25T13:01:25.000+0000
Affected Version/sRelease 6.1.0
Fix Version/swindowslib 0.4.29, Release 6.2.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-12-02T00:17:37.000+0000
Updated2017-08-25T14:05:35.000+0000

Description

Description

windowslib does not detect VS 2017 RC, this is because Microsoft has made VS more isolated so that multiple editions can coexist and now stores the key we look for (\VisualStudio\_Config) in a private registry that can be found under C:\Users\ewan\AppData\Local\Microsoft\VisualStudio\15.0_d5badba5, to inspect this registry:

Open regedit

Click on HKLM folder

File->Load Hive

Load the privateregistry.bin at the above location and give it a name

File->Unload Hive when done

Reference http://www.visualstudioextensibility.com/2016/11/23/some-implications-of-the-new-modular-setup-of-visual-studio-2017-for-vsx-developers/

Comments

  1. Ewan Harris 2017-01-29

    Spent some time reading about the changes in VS 2017 and found this sample for setup detection https://github.com/Microsoft/vs-setup-samples One interesting note This change to the Visual Studio platform requires new ways of discovering Visual Studio where simple registry detection does not provide the flexibility required in many scenarios.
  2. Kota Iguchi 2017-02-17

    Pushing this in current sprint because VS 2017 will be released soon.
  3. Kota Iguchi 2017-03-06

    Pushed https://github.com/appcelerator/titanium_mobile_windows/pull/959 But still failing to make msbuild work. I suspect msbuild has issues because it fails even when you execute msbuild manually against default UWP application project (that Visual Studio creates via "New Project -> Windows Universal C# app").
       >C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\AUXILI~1\Build\VCVARS~1.BAT x86 && MSBuild /v:d /p:Platform=x86 /p:Cofiguration=Release  "Projects\UWP1\UWP1.sln"
       
    So what's interesting is that when you open .sln file manually from Visual Studio 2017, you are able to build it. So maybe Visual Studio does something more than executing msbuild behind the scenes. maybe setting up configurations, or giving additional parameters to msbuild...? Pushing this so that hopefully we could get something from community to this PR.
  4. Kota Iguchi 2017-03-14

    https://github.com/appcelerator/titanium_mobile_windows/pull/959 https://github.com/appcelerator/windowslib/pull/66
  5. Kota Iguchi 2017-03-20

    https://github.com/appcelerator/titanium_mobile/pull/8893
  6. Kota Iguchi 2017-08-15

    Merged. https://github.com/appcelerator/titanium_mobile_windows/pull/1074
  7. Ewan Harris 2017-08-22

    Verified changes in 6.2.0.v20170821203442

JSON Source