none
MSBuild is not taking the order from solution file

    Question

  • We have set the parallel execution count to 1 so that all the projects will build one after other.In the Visual Studio settings.

    With below command from Devenv.exe we are able to compile the solution correctly.

    call vcvarsall.bat x86_amd64
    
    devenv /Build "Release|x64" "w:/Frameworks/Frameworks.sln"

    But with MSBuild, with below command, the solution is failing to compile, when I cross check the log, the order of compilation of projects is not correct, not taking from solution file.

    call vcvarsall.bat x86_amd64
    "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "W:\Frameworks\Frameworks.sln" /t:build /fl /flp:logfile=Frameworks.log;verbosity=normal /p:Configuration=Release;Platform=x64 /m:1

    Any suggestion, how to fix set msbuild to compile only from order mentioned in solution file.


    Thanks and Regards, Uday Kiran Reddy Project Engineer Technology Infrastructure Services, Wipro Technologies ____________________________________________ Mob: +91-900-061-2578 | Email: uday1kiran@live.in

    Thursday, November 23, 2017 10:38 AM

All replies

  • We have set the parallel execution count to 1 so that all the projects will build one after other.In the Visual Studio settings.

    With below command from Devenv.exe we are able to compile the solution correctly.

    call vcvarsall.bat x86_amd64
    
    devenv /Build "Release|x64" "w:/Frameworks/Frameworks.sln"


    But with MSBuild, with below command, the solution is failing to compile, when I cross check the log, the order of compilation of projects is not correct, not taking from solution file.

    call vcvarsall.bat x86_amd64
    "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "W:\Frameworks\Frameworks.sln" /t:build /fl /flp:logfile=Frameworks.log;verbosity=normal /p:Configuration=Release;Platform=x64 /m:1

    Any suggestion, how to fix set msbuild to compile only from order mentioned in solution file.



    Thanks and Regards, Uday Kiran Reddy Project Engineer Technology Infrastructure Services, Wipro Technologies ____________________________________________ Mob: +91-900-061-2578 | Email: uday1kiran@live.in

    Wednesday, November 22, 2017 12:13 PM
  • Hi uday1kiran,

    Thank you for posting here. 

    According to your question is more related to outlook, I will move it to MSBuildforum for suitable support.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, November 23, 2017 6:41 AM
  • It seems the link you provided is not working.

    And also, how it is related to Outlook?


    Thanks and Regards, Uday Kiran Reddy Project Engineer Technology Infrastructure Services, Wipro Technologies ____________________________________________ Mob: +91-900-061-2578 | Email: uday1kiran@live.in

    Thursday, November 23, 2017 10:33 AM
  • Hi uday1kiran,

    Thanks for posting here.

    >>>how to fix set msbuild to compile only from order mentioned in solution file.

    You should work with project-to-project dependencies instead of using the solution to express dependencies between the projects. That because if you have additional sln based dependencies, these will simply be ignored.

    So we recommend working those dependencies directly into the proj files (Right click project->Add->Reference->Solution) and removing them from the sln.

    You can refer to the similar issue on SO:

    https://stackoverflow.com/questions/46827495/when-do-i-need-to-pass-msbuild-a-solution-file

    Hope this can helps.


    MSDN Community Support Please remember to click Mark as Answer. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.



    Thursday, November 23, 2017 1:06 PM