1

我有一个 ILOG “rulep” 项目文件。它是这样开始的:

<?xml version="1.0"?>
<Project Guid="1bd9d4b2-1b37-4950-a4f5-f025bda41c07" xmlns="http://www.ilog.com/rules/visual_studio/7.0">
  <Properties AssemblyName="BusinessRules1" RulesetNamespace="" DefaultPackage="BusinessRules1" RulesetName="BusinessRules1" OutputType="ClassLibrary" PreBuildEvent="" PostBuildEvent="" RunPostBuildEvent="OnBuildSuccessful" AssemblyInfoTitle="" AssemblyInfoDescription="" AssemblyInfoConfiguration="" AssemblyInfoCompany="" AssemblyInfoProduct="" AssemblyInfoCopyright="" AssemblyInfoTrademark="" AssemblyInfoCulture="" AssemblyInfoVersion="1.0.*" AssemblyInfoDelaySign="False" AssemblyInfoKeyFile="" AssemblyInfoKeyName="">
    <Build>

特别要注意:xmlns="http://www.ilog.com/rules/visual_studio/7.0"。另请注意:不是 msbuild 2003 格式。

当我使用 msbuild 构建项目文件时,我得到

error MSB4041: The default XML namespace of the project must be the
 MSBuild XML namespace. If the project is authored in the MSBuild 2003
 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
 to the <Project> element. If the project has been authored in the old 1.0 or
 1.2 format, please convert it to MSBuild 2003 format.

有什么方法可以用 msbuild 注册这个 xmlns 吗?

4

1 回答 1

1

不,MSBuild 和 ILog 是两种完全不同的格式。MSBuild 只了解自己的文件格式(并且可以自动转换 .sln 文件)。

如果您可以将 .rulep 文件加载到 Visual Studion 中,那么您很可能可以使用 Visual Studio 命令构建它devenv /build <project_name>

于 2012-05-24T01:28:37.210 回答