locked
MSBuild 15.0 & Microsoft.Build.Evaluation.Project via VS2017 RRS feed

  • General discussion

  • I know about new API installation, vswhere etc. (also who remembered me, with some other solution to work with latest MSBuild tools on GitHub)

    But today I also see this:

    Microsoft.Build.Evaluation & VS2017:

    // InvalidProjectFileException:"D:\Microsoft.Cpp.Default.props" - yes, because $(VCTargetsPath) is not defined.
    new Project("Sample.vcxproj", new Dictionary<string, string>(), null);
    
    // OK, because I also have 14.0
    new Project("Sample.vcxproj", new Dictionary<string, string>(), "14.0");
    
    // InvalidProjectFileException: The tools version "15.0" is unrecognized. 
    // Available tools versions are: "12.0", "14.0", "2.0", "3.5", "4.0". - yes, I know why is so -_-
    new Project("Sample.vcxproj", new Dictionary<string, string>(), "15.0");

    Sample.vcxproj:

    <?xml version="1.0" encoding="utf-8"?>
    <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
      <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
    </Project>


    How it should be now for VS2017 and its MSBuild tools ? (the most easy official way)

    I have some ideas, but guys ... ! :( how you make changes without reviewing of compatibility and supporting of old your src

    Friday, July 7, 2017 4:45 PM