(ASP.Net 2.0) managing references assemblies with source-safe


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: (ASP.Net 2.0) managing references assemblies with source-safe

  1. #1
    Join Date
    Mar 2006
    Posts
    6

    (ASP.Net 2.0) managing references assemblies with source-safe

    Hi all.

    I'm building a Website in ASP.Net 2.0, and the website is referencing several assemblies (some are 3rd-party and some were written by me).
    The website itself is uder it's own solution.

    Something strange I've noticed is that when I place the website under source-control, all the DLLs in it's BIN directory *are not* added to it's /BIN folder under source-control. only the .refresh files are added to source control.

    Does anybody know why this is? It seems wrong, because this means that if other developers on my team want to check-out the website from source-control, they will need to manually obtain copies of the referenced DLLs and re-reference everything..

    Anybody knows the rational behind this?
    Are there other ways to reference an external assembly so that it gets checked in along with the rest of the website?

    Thanks in advance,
    - Avi

  2. #2
    Join Date
    Dec 2004
    Posts
    717
    Hi, It's correct.
    Normally, we don't add any assembly to sourcesafe. All developers needed to be install all references assemblies.
    But If you wanna add all assemblies to sourcesafe then click to Show Hide file.. and then, all assembiles will be shown in project explorer. You can add all of these after checking-out the project..
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

  3. #3
    Join Date
    Mar 2006
    Posts
    6
    Hi and thanks.

    Quote Originally Posted by Sync
    Normally, we don't add any assembly to sourcesafe. All developers needed to be install all references assemblies.
    Do you find this a good practice (i.e. having all developers have a local copy of all the references)? I'm wondering if what I'm trying to do is right or wrong...


    Quote Originally Posted by Sync
    But If you wanna add all assemblies to sourcesafe then click to Show Hide file.. and then, all assembiles will be shown in project explorer. You can add all of these after checking-out the project..
    I'm not sure I understand.. Where is this option? where do I set a file to be hidden/not hidden?
    I looked all over the context-menues and options, but couldn't find anthing like this.. (I'm working wioth VS2005)

    Thans in advance,
    - Avi

  4. #4
    Join Date
    Dec 2004
    Posts
    717
    Do you find this a good practice (i.e. having all developers have a local copy of all the references)? I'm wondering if what I'm trying to do is right or wrong...
    The reason why we don't add all assemblies to soucesafe is that we like to have all references (dlls) in GAC of each developer's machine.

    I'm not sure I understand.. Where is this option? where do I set a file to be hidden/not hidden?
    I looked all over the context-menues and options, but couldn't find anthing like this.. (I'm working wioth VS2005)

    Adding all assemblies of your project to SourceSafe.

    Current Status : you already added your project to SourceSafe and You have checked-In all files.

    Steps to performs~
    1) Open your project.
    2) Open Solution Explorer. (View Menu -> Solution Explorer)
    - You will see four icons at the top part of Solution Explorer.
    3) Move your mouse over each icon and find "Show All Files" tooltips
    4) If you found then click this icon.
    - After that, you will see "bin" folder.
    5) Right Click on that folder.
    6) Click "Include In Project"
    - Then, your project will be checked-out. you will see one icon for all assemblies and tooltip is "Newly Added File"
    7) Check-In your project.
    8) Done.

    If you are not clear, I can try once more..
    Let me know your result..
    Good luck
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

  5. #5
    Join Date
    Mar 2006
    Posts
    6
    Steps to performs~
    1) Open your project.

    Quote Originally Posted by Sync
    2) Open Solution Explorer. (View Menu -> Solution Explorer)
    - You will see four icons at the top part of Solution Explorer.
    No luck.. I have several icons, but they are:
    1. Properties (this icon is disabled)
    2. Refresh
    3. Nest Related Files
    4. View Class Diagram
    5. Copy Web Site
    6. ASP.Net Configuration

    (did I mention that I'm working on a WebSite in VS2005?)

    Also, I already have the /BIN folder visible under the website's tree in Solution Explorer, and all of the referenced assemblies are there, along with their .refresh and .pdb files.

    After playing around with this a little, I found that if I delete the .refresh file from the BIN directory, then the .dll and .pdb files *are* finally added to VSS, however then I lose the ability to auto-refresh the references :-(

    Any thoughts on this?

    Best wishes,
    - Avi

  6. #6
    Join Date
    Dec 2004
    Posts
    717
    did I mention that I'm working on a WebSite in VS2005?
    Yeah. You did. Sorry.. I was talking about Win Form.

    Any thoughts on this?
    I will reply tomorrow morning.. I don't have VS 2005 installed on my machine at home.

    I'd say that it's not so good to add all assembies to SourceSafe.
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

  7. #7
    Join Date
    Mar 2006
    Posts
    6
    Quote Originally Posted by Sync
    I'd say that it's not so good to add all assembies to SourceSafe.
    Maybe you'r right.. worh reconsidering anyway.

    Quote Originally Posted by Sync
    I will reply tomorrow morning.. I don't have VS 2005 installed on my machine at home.
    Thanks,
    - Avi

  8. #8
    Join Date
    Dec 2004
    Posts
    717
    Sorry! Avi. Yesterday was a holiday..

    After playing around with this a little, I found that if I delete the .refresh file from the BIN directory, then the .dll and .pdb files *are* finally added to VSS,
    Yeah. You can manually add .dll to VSS. Manually means open the VSS then drag and drop .dll onto bin of VSS.

    however then I lose the ability to auto-refresh the references :-(
    I don't know what is auto-refresh ability.

    Do you find this a good practice (i.e. having all developers have a local copy of all the references)? I'm wondering if what I'm trying to do is right or wrong...
    It would be great if anyone who have good experiences ( maybe Phil Weber ) will discuss about it. I already discussed about my opinion.
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

Similar Threads

  1. Acessing a COM object in ASP.Net 2.0
    By robertmazzo in forum ASP.NET
    Replies: 0
    Last Post: 12-15-2005, 12:16 PM
  2. Replies: 0
    Last Post: 10-06-2005, 11:20 AM
  3. Replies: 5
    Last Post: 07-19-2001, 01:46 PM
  4. Adding InterDev Web Projects to Source Safe
    By Richard in forum Enterprise
    Replies: 0
    Last Post: 04-20-2001, 02:21 PM
  5. [ANN] Expresso Framework 2.0 - Open Source
    By scann in forum java.announcements
    Replies: 0
    Last Post: 09-06-2000, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center