I'm trying to process a bunch of XML files and correct the data in them in them so they are on the correct version and my XSLT file is a reference and set to always be copied, but it isn't being added to the bin folder. How do I correct it so my XSLT file is added to bin for use in the XslCompiledTransform.Load() method or is there a different method I should be utilizing?
string destinationFile = fileItem.FileLocation.Substring(0, fileItem.FileLocation.Length - fileItem.FileName.Length) + "working_" + fileItem.FileName;
XPathDocument myXPathDoc = new XPathDocument(destinationFile);
XslCompiledTransform myXslTrans = new XslCompiledTransform();
myXslTrans.Load("TwentyNineteenPointTwoDowngrade.xslt");
EDIT: Found the location for resources inside of the project , but it was old and repointed me at the Resources.resx file in the properties of the project. Adding this and copy always was able to get me what I needed.
Alternatively the next step was similar in nature as the following access of the resource referenced from : Access an XSLT file as resource from same project?