© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
12 replies
ascpixi

✅ Evaluating arbitrary XML in MSBuild?

Hi all! :cathi:
Is there any way to evaluate some arbitrary XML in MSBuild - similarly to how you'd do it with
<Import>
<Import>
, just without the need for a file? My use case is that I want to call into a script, e.g.
python supply-props.py
python supply-props.py
, which will supply dynamically-generated properties, targets, etc., based on a more sane build DSL, and then import those from the string that
Exec
Exec
returns.

I know that I can write the output to a temporary file and then
<Import>
<Import>
it, but doing it in-memory without the need for that would be much more elegant.

Thanks in advance! :catlove:
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Loading XML results in list longer than XML
C#CC# / help
14mo ago
❔ xml
C#CC# / help
4y ago
XML in an API
C#CC# / help
2y ago
Custom msbuild task
C#CC# / help
16mo ago