Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. MSBuild unable to compile a project in a solution file, if project name contain dot "."

MSBuild unable to compile a project in a solution file, if project name contain dot "."

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studiodebuggingworkspace
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mushtaque Nizamani
    wrote on last edited by
    #1

    I have a solution that has two c# project named test and test.test, but MSBuild doesn't compile test.test.csproj. I am trying to compile like this msbuild.exe "c:\test.sln" "/t:test" "/p:Configuration=Debug": This command compiles correctly test project in test.sln solution. msbuild.exe "c:\test.sln" "/t:test.test" "/p:Configuration=Debug":But this command doesn't compile test.test project, and gives the error that unable to find project test.test in test solution. Any help regarding that. Warm Regards, Mushq

    K 1 Reply Last reply
    0
    • M Mushtaque Nizamani

      I have a solution that has two c# project named test and test.test, but MSBuild doesn't compile test.test.csproj. I am trying to compile like this msbuild.exe "c:\test.sln" "/t:test" "/p:Configuration=Debug": This command compiles correctly test project in test.sln solution. msbuild.exe "c:\test.sln" "/t:test.test" "/p:Configuration=Debug":But this command doesn't compile test.test project, and gives the error that unable to find project test.test in test solution. Any help regarding that. Warm Regards, Mushq

      K Offline
      K Offline
      KaineDunno
      wrote on last edited by
      #2

      hi, It should read smth like /t:Rebuild or /t:Compile or /t:Rebuild;Compile. Greetings Kaine

      M 1 Reply Last reply
      0
      • K KaineDunno

        hi, It should read smth like /t:Rebuild or /t:Compile or /t:Rebuild;Compile. Greetings Kaine

        M Offline
        M Offline
        Mushtaque Nizamani
        wrote on last edited by
        #3

        you are right but we can also provide target for individual project in a solution file, for example i can also do this msbuild.exe "c:\test.sln" "/t:Rebuild:test" "/p:Configuration=Debug": Look at the target, now the above command is going to rebuild only test project in test solution file. Regards, Mushq

        K 1 Reply Last reply
        0
        • M Mushtaque Nizamani

          you are right but we can also provide target for individual project in a solution file, for example i can also do this msbuild.exe "c:\test.sln" "/t:Rebuild:test" "/p:Configuration=Debug": Look at the target, now the above command is going to rebuild only test project in test solution file. Regards, Mushq

          K Offline
          K Offline
          KaineDunno
          wrote on last edited by
          #4

          Didnt know that last part... Thanks for the update Greetings, Kaine

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups