[
https://issues.apache.org/jira/browse/CB-13872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16361359#comment-16361359
]
Jan Piotrowski (Sujan) edited comment on CB-13872 at 2/15/18 2:20 PM:
----------------------------------------------------------------------
The folder and file _do_ exist under `C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community` though which gives us a workaround set the env var
`VSINSTALLDIR` to this path. Then the MSBuild tools are taking from that folder
and the build succeeds.
was (Author: sujan12):
The folder and file _do_ exist under `C:\Program Files (x86)\Microsoft Visual
Studio\2017\` though which gives us a workaround set the env var `VSINSTALLDIR`
to this path. Then the MSBuild tools are taking from that folder and the build
succeeds.
> Can't build project with VS17 (15.5)
> ------------------------------------
>
> Key: CB-13872
> URL: https://issues.apache.org/jira/browse/CB-13872
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-windows
> Reporter: Jan Piotrowski (Sujan)
> Assignee: Jan Piotrowski (Sujan)
> Priority: Major
>
> If you just install VS2017 and the VS Build Tools (that include MSBuild) you
> can not build a project with current cordova-windows master, but get an error
> message like this.
> {code}
> C:\Projects\Cordova
> Projects\windowsMaster\platforms\windows\CordovaApp.Windows10.jsproj(61,13):
> error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Bui
> ldTools\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props"
> was not found. Also, tried to find
> "Microsoft\VisualStudio\v15.0\JavaScript\Microsoft
> .VisualStudio.WJProject.Default.props" in the fallback search path(s) for
> $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search
> paths are defined in "C:\Program Files ( x86)\Microsoft Visual
> Studio\2017\BuildTools\MSBuild\15.0\bin\MSBuild.exe.Config". Confirm that the
> path in the <Import> declaration is correct, and that the file exists on disk
> in one of t he search paths.
> {code}
> There is no folder `JavaScript` in `C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Bui ldTools\MSBuild\Microsoft\VisualStudio\v15.0`, so there can
> be no file.
> This folder seems to be chosen because of the MSBuild tools that are running
> the build.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]