Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build.bat] place checking of VS2019 on top of the batch file. #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheVice
Copy link

@TheVice TheVice commented Dec 10, 2020

Hello.

In same way as early in this file checking of VS2017 was placed before MSBuild of .NET Framework 4.0, MSBuild of VS2019 should be placed before VS2017.
Otherwise in environments were both Studios was installed - attempt to use of non recent version will be made.

Other question is still use of VS2017 need in this project, such attempt will be got next message

PS WSL-DistroLauncher> .\build.bat

Build started
     1>Project "WSL-DistroLauncher\DistroLauncher.sln" on node 1 (Build target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Debug|x64".
     1>Project "WSL-DistroLauncher\DistroLauncher.sln" (1) is building "WSL-DistroLauncher\DistroLauncher\DistroLauncher.vcxproj" (2) on node 1 (default targets).
     2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020:
        The build tools for v142 (Platform Toolset = 'v142') cannot be found.
        To build usingthe v142 build tools, please install v142 build tools.
        Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
        [WSL-DistroLauncher\DistroLauncher\DistroLauncher.vcxproj]
     2>Done Building Project "WSL-DistroLauncher\DistroLauncher\DistroLauncher.vcxproj" (default targets) -- FAILED.
     1>Done Building Project "WSL-DistroLauncher\DistroLauncher.sln" (Build target(s)) -- FAILED.

Build FAILED.

    0 Warning(s)
    1 Error(s)

but that moment for other discussion.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant