首页 > 解决方案 > 如何使用 powershell 将 CSV 文件转换为 XML?

问题描述

Convert-To-Xml在 dotnet 或 powershell 内核中可用吗?

Convert-To-Xml : The term 'Convert-To-Xml' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:32
+ Import-Csv "./Processes.csv" | Convert-To-Xml
+                                ~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Convert-To-Xml:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

我正在尝试Microsoft示例:Import-Csv "./Processes.csv" | Convert-To-Xml

标签: .netxmlpowershellcsv.net-core

解决方案


推荐阅读