C# 编译vdproj和MsBuild错误MSB4025:未能加载项目文件
我拥有Visual Studio 2013以及Windows窗体应用程序和库项目 我已安装Microsoft Visual Studio 2013安装程序项目。 我已经创建了安装项目 使用Visual Studio 2013进行编译是可以的。 现在,我使用BAT脚本:C# 编译vdproj和MsBuild错误MSB4025:未能加载项目文件,c#,winforms,visual-studio-2013,setup-project,C#,Winforms,Visual Studio 2013,Setup Project,我拥有Visual Studio 2013以及Windows窗体应用程序和库项目 我已安装Microsoft Visual Studio 2013安装程序项目。 我已经创建了安装项目 使用Visual Studio 2013进行编译是可以的。 现在,我使用BAT脚本: msbuild.exe ..\Installers\Setup.Apps.Utiles\Setup.Apps.Utiles.vdproj /t:Rebuild /p:Configuration=Release /l:FileLog
msbuild.exe ..\Installers\Setup.Apps.Utiles\Setup.Apps.Utiles.vdproj /t:Rebuild /p:Configuration=Release /l:FileLogger,Microsoft.Build.Engine;logfile=Build2.log
我得到以下错误:
错误MSB4025:未能加载项目文件。根数据
级别无效
日志文件Build2.log包含:
Compilación iniciada a las 28/02/2017 8:56:40.
__________________________________________________
Proyecto "C:\TFS\COMPANY.CRETA\Installers\Setup.Apps.Utiles\Setup.Apps.Utiles.vdproj" (Rebuild destino(s)):
C:\TFS\COMPANY.CRETA\Installers\Setup.Apps.Utiles\Setup.Apps.Utiles.vdproj(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
Compilación del proyecto "Setup.Apps.Utiles.vdproj" terminada -- ERROR.
ERROR al compilar.
C:\TFS\COMPANY.CRETA\Installers\Setup.Apps.Utiles\Setup.Apps.Utiles.vdproj(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
0 Advertencia(s)
1 Errores
Tiempo transcurrido 00:00:00.29
注意:我不使用TFVC、Git,也不使用VCS或DVC
有什么建议吗?我看到vdproj文件是早期版本的MSI创建项目,但是
msbuild
需要解决方案/项目(cs/vbproj)文件来编译。有关msbuild命令的详细信息,请参见。