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. Visual Studio
  4. Solutions files and project references, probem

Solutions files and project references, probem

Scheduled Pinned Locked Moved Visual Studio
helpvisual-studiodebuggingquestionannouncement
6 Posts 3 Posters 1 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.
  • C Offline
    C Offline
    Chris Richner
    wrote on last edited by
    #1

    Hi folks, if you got 2 projects nested in one solution, you could add a project related reference and the project dependencies are also managed by VS. Also the solution configuration like "debug" or "release" is set by VS to all projects nested. We've got 12 project, each produce a assembly dll file. It's impossible to add these project to our Solution, in which we build the main application. The main application is based on these other projects. Now my problem is, that i cannot add project related references, i had to reference these assemblys by path. But if i reference the bin\debug\*.dll, i will never be able to do a "release" build, cause all these assemblys are still in debug configuration. which way is the best for this issue ? I know about the object directory, where vs stores the file also, would it be better to reference these assemblys ? In this case i've got the current solution configuration in my reference. Hope i explain it well :confused: .:Greets from Jerry Maguire:.

    S M 2 Replies Last reply
    0
    • C Chris Richner

      Hi folks, if you got 2 projects nested in one solution, you could add a project related reference and the project dependencies are also managed by VS. Also the solution configuration like "debug" or "release" is set by VS to all projects nested. We've got 12 project, each produce a assembly dll file. It's impossible to add these project to our Solution, in which we build the main application. The main application is based on these other projects. Now my problem is, that i cannot add project related references, i had to reference these assemblys by path. But if i reference the bin\debug\*.dll, i will never be able to do a "release" build, cause all these assemblys are still in debug configuration. which way is the best for this issue ? I know about the object directory, where vs stores the file also, would it be better to reference these assemblys ? In this case i've got the current solution configuration in my reference. Hope i explain it well :confused: .:Greets from Jerry Maguire:.

      S Offline
      S Offline
      solidstore
      wrote on last edited by
      #2

      We've created an empty C++ makefile project which runs a batch file (in its post-build step) that copies with output of the current configuration (using macros) to a final 'bin' directory. The other projects all then reference these assemblies. Cheap and nasty but works. Welcome to better solutions?

      C 1 Reply Last reply
      0
      • S solidstore

        We've created an empty C++ makefile project which runs a batch file (in its post-build step) that copies with output of the current configuration (using macros) to a final 'bin' directory. The other projects all then reference these assemblies. Cheap and nasty but works. Welcome to better solutions?

        C Offline
        C Offline
        Chris Richner
        wrote on last edited by
        #3

        Hi, is there no problem when you open VS.Net (2 instance) with locked files, if all the assemblys are stored in the same directory, if the opened project is dependant to those files ? .:Greets from Jerry Maguire:.

        1 Reply Last reply
        0
        • C Chris Richner

          Hi folks, if you got 2 projects nested in one solution, you could add a project related reference and the project dependencies are also managed by VS. Also the solution configuration like "debug" or "release" is set by VS to all projects nested. We've got 12 project, each produce a assembly dll file. It's impossible to add these project to our Solution, in which we build the main application. The main application is based on these other projects. Now my problem is, that i cannot add project related references, i had to reference these assemblys by path. But if i reference the bin\debug\*.dll, i will never be able to do a "release" build, cause all these assemblys are still in debug configuration. which way is the best for this issue ? I know about the object directory, where vs stores the file also, would it be better to reference these assemblys ? In this case i've got the current solution configuration in my reference. Hope i explain it well :confused: .:Greets from Jerry Maguire:.

          M Offline
          M Offline
          MSF
          wrote on last edited by
          #4

          Why are you not able to add project-related references? Is it because of locking issues during compilation? Michael CSO, ActiveWare LLC http://www.ActiveWareSolutions.com

          C 1 Reply Last reply
          0
          • M MSF

            Why are you not able to add project-related references? Is it because of locking issues during compilation? Michael CSO, ActiveWare LLC http://www.ActiveWareSolutions.com

            C Offline
            C Offline
            Chris Richner
            wrote on last edited by
            #5

            Hi, our projects are normal c# WindowsApplication and ClassLibrary projects. If the project is not nested in a solution file, you could only add file related references, or is there something i missed ? .:Greets from Jerry Maguire:.

            M 1 Reply Last reply
            0
            • C Chris Richner

              Hi, our projects are normal c# WindowsApplication and ClassLibrary projects. If the project is not nested in a solution file, you could only add file related references, or is there something i missed ? .:Greets from Jerry Maguire:.

              M Offline
              M Offline
              MSF
              wrote on last edited by
              #6

              Ah, I see. Is there some reason not to nest the projects in a Solution? I believe that would help address your problem. Michael CSO, ActiveWare LLC

              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