如何在 ac# 项目中使用 c++ XSD Task ?我已经在 csproj 文件中创建了这样的任务:
<Target Name="BeforeBuild">
<XSD Namespace="$(RootNamespace).Xml" Language="CS" GenerateFromSchema="classes" Sources="Xml/schema.xsd" />
</Target>
但是构建输出说,虽然智能感知在编辑项目文件时为我提供了 XSD 任务:
Error 1 The "XSD" task was not found. Check the following:
1.) The name of the task in the project file is the same as the name of the task class.
2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30128" directory. MyProject.csproj
哦,我正在使用 Visual Studio 2010 RC。
*