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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MSBuild Project Files

MSBuild Project Files

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studioquestioncsharpdebuggingtutorial
7 Posts 3 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.
  • U Offline
    U Offline
    User 10572834
    wrote on last edited by
    #1

    If this is not the proper place for this question, please let me know where I can post it. I am working on a bunch of MSBuild project files that were created from scratch. We are in the middle of upgrading to Visual Studios 2013 so a lot of the paths to libraries need to be changed. I am having trouble with the Microsoft Libraries because of the spaces that are in the path. Here is the line that sets the base of the path to get appended later in the project file:

    <CRT\_LIB\_PATH>C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\lib</CRT\_LIB\_PATH>
    

    Later there are lines similar to the following:

    <LINK\_LIBS>$(LINK\_LIBS) '"$(CRT\_LIB\_PATH)\\msvcrt$(DEBUG\_SUFFIX).lib"'</LINK\_LIBS>
    

    In the second line, I have attempted single quotes, double quotes, single quotes surrounded by double quotes, double quotes surrounded by single quotes. Nothing had helped. How to I properly put this path into the project file? Thanks, Kevin What happens is everything before the "12.0" is lost and linker is not able to find the library.

    U L 2 Replies Last reply
    0
    • U User 10572834

      If this is not the proper place for this question, please let me know where I can post it. I am working on a bunch of MSBuild project files that were created from scratch. We are in the middle of upgrading to Visual Studios 2013 so a lot of the paths to libraries need to be changed. I am having trouble with the Microsoft Libraries because of the spaces that are in the path. Here is the line that sets the base of the path to get appended later in the project file:

      <CRT\_LIB\_PATH>C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\lib</CRT\_LIB\_PATH>
      

      Later there are lines similar to the following:

      <LINK\_LIBS>$(LINK\_LIBS) '"$(CRT\_LIB\_PATH)\\msvcrt$(DEBUG\_SUFFIX).lib"'</LINK\_LIBS>
      

      In the second line, I have attempted single quotes, double quotes, single quotes surrounded by double quotes, double quotes surrounded by single quotes. Nothing had helped. How to I properly put this path into the project file? Thanks, Kevin What happens is everything before the "12.0" is lost and linker is not able to find the library.

      U Offline
      U Offline
      User 10572834
      wrote on last edited by
      #2

      I found a solution to this. I was reminded about the old DOS short name for directories, and by using those it fixed the problem.

      1 Reply Last reply
      0
      • U User 10572834

        If this is not the proper place for this question, please let me know where I can post it. I am working on a bunch of MSBuild project files that were created from scratch. We are in the middle of upgrading to Visual Studios 2013 so a lot of the paths to libraries need to be changed. I am having trouble with the Microsoft Libraries because of the spaces that are in the path. Here is the line that sets the base of the path to get appended later in the project file:

        <CRT\_LIB\_PATH>C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\lib</CRT\_LIB\_PATH>
        

        Later there are lines similar to the following:

        <LINK\_LIBS>$(LINK\_LIBS) '"$(CRT\_LIB\_PATH)\\msvcrt$(DEBUG\_SUFFIX).lib"'</LINK\_LIBS>
        

        In the second line, I have attempted single quotes, double quotes, single quotes surrounded by double quotes, double quotes surrounded by single quotes. Nothing had helped. How to I properly put this path into the project file? Thanks, Kevin What happens is everything before the "12.0" is lost and linker is not able to find the library.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You should use the Visual Studio macros for all the known paths. Changing these names to fixed paths or, as in your answer, to 8.3 type names, will most likely cause you problems in the future.

        U 1 Reply Last reply
        0
        • L Lost User

          You should use the Visual Studio macros for all the known paths. Changing these names to fixed paths or, as in your answer, to 8.3 type names, will most likely cause you problems in the future.

          U Offline
          U Offline
          User 10572834
          wrote on last edited by
          #4

          Actually I had already tried that as well, with the same result. Eventually the Visual Studio files will be moved to the server anyway, and at that point the macros would not be useful.

          A 1 Reply Last reply
          0
          • U User 10572834

            Actually I had already tried that as well, with the same result. Eventually the Visual Studio files will be moved to the server anyway, and at that point the macros would not be useful.

            A Offline
            A Offline
            Albert Holguin
            wrote on last edited by
            #5

            You're going to move Visual Studio files to a server? ...why is that?

            U 1 Reply Last reply
            0
            • A Albert Holguin

              You're going to move Visual Studio files to a server? ...why is that?

              U Offline
              U Offline
              User 10572834
              wrote on last edited by
              #6

              Not my choice. I am only a lowly contractor.

              A 1 Reply Last reply
              0
              • U User 10572834

                Not my choice. I am only a lowly contractor.

                A Offline
                A Offline
                Albert Holguin
                wrote on last edited by
                #7

                Happens...

                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