Closed uholeschak closed 3 weeks ago
To fix this, I have converted the code to read a JSON file now, this way XmlDocument
is not required any more.
Same problem as https://github.com/Drizin/CodegenCS/issues/23 - check that thread where I've just recapped the problem and explained what we need to do.
I've just republished new dotnet-codegencs 3.5.0
and VSExtension 3.7.2
.
CLI now has the option to specify -r:assembly.dll
, and both CLI/VSExtension allow the use of #r "assembly.dll"
in the templates.
Please check changes new unit tests and/or documentation updates.
Looks like it's working fine for framework assemblies, but probably need some runtime adjustments to make it work with third-party assemblies.
Let me know how it goes.
Thanks,
I have added #r "System.Xml.dll"
and was able to use XmlDocument now!
When trying to use a reference to System.Xml I get the following error during template generation:
This is included in the code: