Does Enterprise Library 6 work with Visual Studio 2013 and/or 2015? -
Does Enterprise Library 6 work with Visual Studio 2013 and/or 2015? -
it seems not , planning utilize (logging, exception etc..) future projects. still supported ? not see lot of activity around tool there used be.
we have new relic helpful know if new relic can logging/exception handling already.. illustration can create custom logs or exceptions , see them in new relic dashboard?
it does. may add together enterprise library 6 project via nuget here sample application.
class="lang-c# prettyprint-override">using system; using system.diagnostics; using microsoft.practices.enterpriselibrary.logging; using microsoft.practices.enterpriselibrary.logging.formatters; using microsoft.practices.enterpriselibrary.logging.tracelisteners; namespace practice.logging { internal class programme { public static void main(string[] args) { loggingconfiguration loggingconfiguration = buildprogrammaticconfig(); var defaultwriter = new logwriter(loggingconfiguration); // check if logging enabled before creating log entries. if (defaultwriter.isloggingenabled()) { defaultwriter.write("log entry created using simplest overload."); defaultwriter.write("log entry single category.", "general"); defaultwriter.write("log entry category, priority, , event id.", "general", 6, 9001); defaultwriter.write("log entry category, priority, event id, " + "and severity.", "general", 5, 9002, traceeventtype.warning); defaultwriter.write("log entry category, priority, event id, " + "severity, , title.", "general", 8, 9003, traceeventtype.warning, "logging block examples"); } else { console.writeline("logging disabled in configuration."); } } private static loggingconfiguration buildprogrammaticconfig() { // formatter var formatter = new textformatter(); // trace listeners var eventlog = new eventlog("application", ".", "stackoverflow #24309323"); var eventlogtracelistener = new formattedeventlogtracelistener(eventlog, formatter); // build configuration var config = new loggingconfiguration(); config.addlogsource("general", sourcelevels.all, true) .addtracelistener(eventlogtracelistener); config.istracingenabled = true; homecoming config; } } }
you may find more details in logging application block
to utilize enterprise library configuration console extensionto install extension visual studio 2013 may follow workaround steps below.
download microsoft.practices.enterpriselibrary.configconsolev6.vsix linka vsix file zip file uses open packaging convention. can rename .vsix extension .zip , utilize zip browser (including windows file explorer) browse contents.
extract file folder locate file called extension.vsixmanifest in folder open file notepad.exe locate class="lang-xml prettyprint-override"><supportedproducts> <visualstudio version="11.0"> <edition>ultimate</edition> <edition>premium</edition> <edition>pro</edition> </visualstudio> </supportedproducts>
and replace part below class="lang-xml prettyprint-override"><supportedproducts> <visualstudio version="11.0"> <edition>ultimate</edition> <edition>premium</edition> <edition>pro</edition> </visualstudio> <visualstudio version="12.0"> <!-- vs2013 --> <edition>ultimate</edition> <edition>premium</edition> <edition>pro</edition> </visualstudio> <visualstudio version="14.0"> <!-- vs2015 --> <edition>ultimate</edition> <edition>premium</edition> <edition>pro</edition> </visualstudio> </supportedproducts>
save file , exit compress folder zip
file again rename extension vsix
double click on it. visual-studio-2013 enterprise-library visual-studio-2015
Comments
Post a Comment