[英]MsBuild can't find lib
我使用以下腳本來構建C ++項目:
msbuild D:\proj.vcxproj /p:Configuration="Release" /p:Platform="x64" /p:BuildProjectReferences=false /p:AssemblySearchPaths="D:\Import\GenericAIC\Include" /p:AdditionalLibPaths="D:\Export\Release"
我收到一個錯誤,它無法找到某個lib。 lib存在於D:\\Export\\Release folder
,該D:\\Export\\Release folder
設置為p:AdditionalLibPaths
該項目在Visual Studio中完美編譯。
有什么想法嗎?
既然您正在構建項目而不是解決方案,
你沒有$ SolutionDir ,並且MSBuild無法插入項目文件中的所有宏。
你只需要添加/ Property:SolutionDir =“”,一切都會編譯。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.