C# code replacement in older application using NReFactory library
-
Dear friends, I wanted to create small tool which is used to replace some part of code in c# file from older application long back developed. My customer is advised to use NReFactory library. Already I have gone through that about NRefactory in code project. I'm bit confused because it has lot of features like code compilation and analysis etc. Please guide me which NReFactory library do I need to use for my requirement. Is there any sample code specific to code replacement. Example: 1. Reed old c# file 2. Replace old namespace, type and property to new one 3. Create a modified file in new system location. Thanks in Advance 😊 Regards, Ram Ram
-
Dear friends, I wanted to create small tool which is used to replace some part of code in c# file from older application long back developed. My customer is advised to use NReFactory library. Already I have gone through that about NRefactory in code project. I'm bit confused because it has lot of features like code compilation and analysis etc. Please guide me which NReFactory library do I need to use for my requirement. Is there any sample code specific to code replacement. Example: 1. Reed old c# file 2. Replace old namespace, type and property to new one 3. Create a modified file in new system location. Thanks in Advance 😊 Regards, Ram Ram
-
Dear friends, I wanted to create small tool which is used to replace some part of code in c# file from older application long back developed. My customer is advised to use NReFactory library. Already I have gone through that about NRefactory in code project. I'm bit confused because it has lot of features like code compilation and analysis etc. Please guide me which NReFactory library do I need to use for my requirement. Is there any sample code specific to code replacement. Example: 1. Reed old c# file 2. Replace old namespace, type and property to new one 3. Create a modified file in new system location. Thanks in Advance 😊 Regards, Ram Ram
Instead of creating your small tool, I suggest you use Resharper, and do proper refactoring (Ctrl-R, O) - I've been using it for a while, and it's amazing! Best, John
-- LogWizard Meet the Log Viewer that makes monitoring log files a joy!