2012-05-23 74 views
1

我有一个ILOG“rulep”项目文件。它开始如下:为msbuild注册xml名称空间

<?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. 

有一些办法,我可以注册这个的xmlns用的MSBuild?

回答

1

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

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

相关问题