I'm using xsltc.exe create A.dll from A.xslt.
Then refenrence A.dll in my project and do the transform:
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(typeof(A)); // A is a public static class from A.dll
xslt.Transform(RootPath + "A.xml", RootPath + "A.txt");
but how can I refenrece A.dll at runtime and do the transform?
If I understand correctly, you want to both generate and reference the DLL all at run time. The good news is that you can load an assembly at run time using
Assembly.LoadFrom.The below is taken from the documentation and the technique is called Reflection.