我有一个 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 吗?