Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια
σε

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Global Settings File for Solution

Îåêßíçóå áðü ôï ìÝëïò tsitouridis. Τελευταία δημοσίευση από το μέλος zeon στις 07-06-2006, 09:34. Υπάρχουν 12 απαντήσεις.
Ταξινόμηση Δημοσιεύσεων: Προηγούμενο Επόμενο
  •  06-06-2006, 15:06 13698

    Global Settings File for Solution

    Paidia mia erotisi apli. Exo 1 solution me 3 projects. Thelo omos na exo ena configuration (settings) file gia ola, giati ta settings einai kina kai tha prepei oloi na ta mirazonte. Dokimasa me to Properties.Settings() kai me Storage Isolation, alla gia kathe exe mou ftiaxnei kai ena settings file. Ara, iparxei tropos gia ena global i tha prepei na paixoume se katastaseis custom.

    Euxaristo

  •  06-06-2006, 17:36 13707 σε απάντηση της 13698

    Απ: Global Settings File for Solution

    Αν βάλεις τις ρυθμίσεις σε ένα τέταρτο project στο οποίο αναφέρονται τα υπόλοιπα τρία;


    Χρήστος Γεωργακόπουλος
  •  06-06-2006, 17:47 13710 σε απάντηση της 13707

    Sad [:(] Απ: Global Settings File for Solution

    File mou kali i idea sou.... alla den..... to exo dokimasei to senario

    Ta 2 apo ta 3 projects einai EXEs kai to triro DLL to opio vevea einai refernced mesa sta alla.

    Ekana lipon mia public class gia to private Properties to tritou (tou DLL)..... e mesa sto application settings eftiaxan 2 folders ena gia kathe exe me me user.config pou mesa tou eixes tis rithmiseis apo to EXE +tis rithmiseis tou DLL pou omos eixan alaxtei mesa apo to sigekrimeno EXE me tin xrisi tis proanaferthisas public static class.....

     

    Any more ideas......

  •  07-06-2006, 02:46 13728 σε απάντηση της 13710

    Απ: Global Settings File for Solution

    Μια ιδέα είναι να χρησιμοποιήσεις το registry ... ouf τι είπα κακή λέξη


    Βαγγέλης Ξανθάκης
    Independent Consultant
    www.aylos.com
  •  07-06-2006, 08:27 13733 σε απάντηση της 13728

    Απ: Global Settings File for Solution

    Ρίξε μια ματιά στο Enterprise Library Application Blocks, υπάρχει ένα block που αφορά στο configuration.

    Αν δεν λύσεις με αυτό το πρόβλημά σου, δεν θα το λύσεις με τίποτα... Big Smile


    Vir prudens non contra ventum mingit
  •  07-06-2006, 09:13 13737 σε απάντηση της 13728

    Απ: Global Settings File for Solution

    Paizo me registry tora anagastika.... alla eipa na mpo sti nea xilietia..... :-(
  •  07-06-2006, 09:20 13738 σε απάντηση της 13698

    Απ: Global Settings File for Solution

    Δεν ξέρω αν κατάλαβα καλά, αλλά θα σε βόλευε να έχεις 3 config files που διαβάζουν όλα από ένα άλλο?
  •  07-06-2006, 09:23 13739 σε απάντηση της 13737

    Απ: Global Settings File for Solution

    Αν παίζεις με το registry τότε η εφαρμογή σου θα απαιτεί να τρέχει με administrator security context, οπότε καταλαβαίνεις... Η λύση του προβλήματός σου δεν είναι θέμα μόδας Smile
    Vir prudens non contra ventum mingit
  •  07-06-2006, 09:24 13740 σε απάντηση της 13738

    Απ: Global Settings File for Solution

    Oxi oxi.... exo 1 solution me 3 projects kai thelo kai gia ta 3 projects na exo ena kino configuration file. Rotao lipon an auto einai efikto aaaaa xexasa na anafero C#.NET se VS2005 (NET 2), i an xriazete na ftiaxo ego mia class monos mou pou na exei ena configuration file.
  •  07-06-2006, 09:25 13741 σε απάντηση της 13740

    Απ: Global Settings File for Solution

     tsitouridis wrote:
    Oxi oxi.... exo 1 solution me 3 projects kai thelo kai gia ta 3 projects na exo ena kino configuration file


    Εννοείς κοινό "config" file?
  •  07-06-2006, 09:29 13742 σε απάντηση της 13739

    Confused [*-)] Απ: Global Settings File for Solution

    Vasika to katalava auto... alla mallon kako mou akougete.....

    Ego eixa kanei ligo Delphi sto panepistimio kai otan epiasa douleia prin 2 xronia xekinisa san mobile developer se C# xoris na exo tin paramikri idea. Eftasa pleon an asxoloume me sql2005, sdldmo, wmi, registry,photo manipulation, print redering, na  ftiaxno dika mou components ktlp.... opos antilamvanese itan poli sintomo to diastima kai etsi polla pragmata ta antilamvanomai alla den ta katalaveno.

  •  07-06-2006, 09:32 13743 σε απάντηση της 13741

    Stick out tongue [:P] Απ: Global Settings File for Solution

    Akrivos kai ta 3 projects na diavazoun kai na grafoun se 1 file. Vevea eimai kai apetitikos, thelo auto an einai dinaton na ginei mesa apo to VS2005.... Poli to voleutika auto to Properties.Settings.Default.
  •  07-06-2006, 09:34 13744 σε απάντηση της 13742

    Απ: Global Settings File for Solution

    Πάντως αν σε βοηθά αυτό μπορείς σε ένα folder να έχεις ένα config.file του στυλ  (με όνομα πχ settings.config):

    <appSettings>
    ' εδω ότι θες
    </appSettings>


    και config files σε κάθε project που διαβάζουν από αυτό πχ:


    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <appSettings file="...\folder\settings.config">
     </appSettings>
    </configuration>



Προβολή Τροφοδοσίας RSS με μορφή XML
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems