如何使用Powershell将CSV文件转换为XML?

时间:2019-03-18 00:55:37

标签: .net xml powershell csv .net-core

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

0 个答案:

没有答案