2012-05-23 69 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>來構建它。

相關問題