Unable to execute transformation. Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it.

Eric Stott 1 Reputation point
2022-05-19T16:35:15.883+00:00

I am upgrading my solution to .Net 4.7 (VS 2019) and am using WIX to create the msi. All of the projects build successfully, however, when the WIX install compiles, I get this error.

Severity Code Description Project File Line Suppression State
Error Unable to execute transformation. Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it. An error occurred at C:\Code\EDI Vision\Skeleton\Install\XSLT\XslProjectOutput.xslt(0,0). Install C:\Code\EDI Vision\Skeleton\Install\Install.wixproj 115

I have opened up a question on the WIX side and they state that it is a MSBuild issue.
"XslTransformation is not a WiX task. You need to talk to MSBuild."

I am not sure where else to ask

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,213 questions
{count} votes