msbuild,Build failed with Error MSB3073 exited with code 1

1、 接手以前的老项目,因为项目比较大,所以用Developer Command Prompt 的msbuild命令编译比较快一些,常用命令如下

devenv /?             帮助

ms build xx.sln    编译全部解决方案

1)      打开Developer Command Prompt for VS2013,(开始\visual studio2013\visual studio tools\Developer Command Prompt for VS2013)

注意要以管理员身份打开

2)      进入项目sln所在路径,如路径为C:\zxc\04 Retirement Studio\Solutions

输入cd C:\zxc\04 Retirement Studio\Solutions 回车

3)      输入msbuild + 解决方案名称,回车开始编译

输入:msbuild RetirementStudio.sln会车

4)如有错误会以红色提示,warning以黄色提示。

2、 在编译过程中报错。(主项目为RetirementStudio,其中报错的为子项目Common)

VS2013打开项目 在项目里面直接编译(rebuild)也报错

Error      1              The command "copy Mercer.RetirementStudio.Business.DataAcquisition.SSIS.Common.dll "C:\zxc\04 Retirement Studio\Solutions\Source\DataAcquisition\Business\SSIS\Common\..\RefBak\"" exited with code 1.                Common (Business\DataAcquisition\SSIS\Common)

3、 查看Common项目属性发现在Build Events中有如下设置:

copy $(TargetFileName) "$(ProjectDir)..\RefBak\"

猜测可能是输出文件路径不存在导致的错误,在项目Common.csproj的上一级目录

C:\zxc\04 Retirement Studio\Solutions\Source\DataAcquisition\Business\SSIS

下新建文件夹RefBak,重新编译即可通过

时间: 2024-12-09 08:11:33

msbuild,Build failed with Error MSB3073 exited with code 1的相关文章

visual studio 2019 error MSB3073 extied with code 0

在用vs2019编译C++工程时,出现错误. 原因是设置的命令没有运行成功,需要将这条命令关闭.不编译就行了. 解决方法,打开property manager,打开property pages,将其中的Post-Build Event改成No. 操作方法View->Other windows->Property Manager->右键工程,选择Properties->Build Events->Post-Build Event. 将其中的Use In Build更改为No.

exited with code 1

brcc32 command line for "Project1.vrc"   c:\program files\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 "Project1.vrc" -foProject1.res  [BRCC32 Error] "brcc32" exited with code 1. 打开Project>Options>Application>Appe

vue.js报错:Module build failed: Error: No parser and no file path given, couldn't infer a parser.

ERROR Failed to compile with 2 errors 12:00:33 error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\admin\Desktop\222\demo\node_modules\prettier\index.js:7051:13) at form

【Vue报错】Module build failed: Error: No parser and no file path given, couldn't infer a p arser.

在创建一个vue项目启动时报错,报错的内容为: error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn't infer a p arser. at UndefinedParserError.Wrapper (D:\dyyc\bookstore\[email protected] [email protected]\index.js:1948:14) at new Und

webpack报错:Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module 'babel-preset-env' from '...' - Did you mean "@babel/env"?

webpack报错:Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module 'babel-preset-env' from '...' - Did you mean "@babel/env"? 原因: babel-core和babel-preset-env依赖被替换为@babel/core和@babel/preset-env,因为新版本的Babel7中对

ubuntu 18.04 64bit build tensorflow report error:C++ compilation of rule '//tensorflow/core/kernels:broadcast_to_op' failed (Exit 4)

Ans: You are likely running out of memory. Try reducing number of parallel builds by passing '--local_resources 2048,.5,1.0', which would instruct bazel to spawn no more than one compiler process at the time. Reference material: Building from source,

Module build failed: Error: Cannot find module 'node-sass’解决

在 npm run dev 时出现 ” Module build failed: Error: Cannot find module 'node-sass’ “ 这样的错误,如下: ERROR Failed to compile with 1 errors 19:51:09 error in ./src/page/Class/ClassList.vue Module build failed: Error: Cannot find module 'node-sass' Require stack

error MSB3073

error MSB3073 最近将VC2002 代码移植到VC2010,出现编译错误: 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(183,5): error MSB3073: The command "regsvr32 /s /c "D:\VC++Prj\source code\zutai\cha06\Meter\.\Debug\Meter.dll"  1>C

cocos2d-x 3.6运行cocos run出现Ndk build failed解决办法

我运行cocos run -p android编译成安卓APK的时候提示:jni/../../Classes/AppDelegate.cpp:67: error: undefined reference to 'GameMain::c reateScene()', 最后出现错误提示:Ndk build failed!,其中GameMain是我自己写的代码,. 后来找到了原因,有两种解决办法: 第一种方法:在\proj.android\jni下面的Android.mk的文件里面,在LOCAL_SR