error MSB1008: Only one project can be specified. RRS feed

  • Question

  • Hi,

          Why i can't build solution successfully?? There is one error as MSB1008:only one project can be specified. But, I only build one solution. Any wrong? Thanks.

    C:\WINDOWS\Microsoft.NET\Framework\v3.5>msbuild.exe C:\Documents and Settings\ylchoy\My Documents\Downloads\infragistics learning\used\rowexpansionwithcreationfilter_cs\RowExpansionWithCreationFilter_CS\RowExpansionWithCreationFilter_CS.sln
    Microsoft (R) Build Engine Version 3.5.21022.8
    [Microsoft .NET Framework, Version 2.0.50727.1433]
    Copyright (C) Microsoft Corporation 2007. All rights reserved.

    MSBUILD : error MSB1008: Only one project can be specified.
    Switch: and

    For switch syntax, type "MSBuild /help"

    Friday, July 24, 2009 3:06 AM


  • When searching on the internet for the error, you see that the error is seen when the characters " and \ are not correctly configured.
    The error comes becuase the space is interpreted as multiple projects. In you case, add the " character around the sln file:

    msbuild.exe "c:\documents and settings\...\RowExpansionWithCreationFilter_CS.sln"

    Ewald - Please remember to mark the replies as answers if they help.
    • Marked as answer by Hua Chen Friday, July 31, 2009 7:30 AM
    Friday, July 24, 2009 7:22 AM