gpt4 book ai didi

c++ - Visual Studio Team Services 编译成功但没有 EXE 文件

转载 作者:行者123 更新时间:2023-11-28 05:54:37 26 4
gpt4 key购买 nike

好的,所以我尝试使用 VS Team Services 编译我的应用程序并且我没有收到任何错误,但是我没有收到任何 .exe 文件,我应该怎么做?

提前致谢!

******************************************************************************
Initializing Hosted Agent
******************************************************************************
Requesting an Agent from the Hosted Agent Pool
Hosted Agent successfully assigned.
Configuring connection settings for Hosted Agent
Starting Hosted Agent
Initializing connection to Hosted Agent
Successfully connected to Hosted Agent
******************************************************************************
Starting: Build
******************************************************************************
Executing the following commandline:
C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\agent\worker\vsoWorker.exe /name:Worker-8f36227c-7965-4c0e-b7de-f55a30e3e667 /id:8f36227c-7965-4c0e-b7de-f55a30e3e667 /rootFolder:"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default" /logger:Forwarding,1.0.0;Verbosity=Verbose,Name=Agent1-1aadeebb9c4390e852d65e80b5fec753;JobId=8f36227c-7965-4c0e-b7de-f55a30e3e667
******************************************************************************
Starting: Get sources
******************************************************************************
Syncing repository: keylogger (TFVC)
Workspace Name: ws_1_1;Build\fc5ab742-a527-4aad-b4d1-2179517859b8
Getting C:\a\1\s;C22
Getting C:\a\1\s\bzip2;C25
Getting C:\a\1\s\kl_http.sln;C37
Getting C:\a\1\s\bzip2\AzureContinuousDeployment.11.xaml;C25
Getting C:\a\1\s\bzip2\bzip2.vcproj;C31
Getting C:\a\1\s\bzip2\bzip2.vcxproj;C29
Getting C:\a\1\s\bzip2\bzip2.vcxproj.filters;C30
Getting C:\a\1\s\bzip2\bzip2.vcxproj.user;C26
Getting C:\a\1\s\bzip2\code.c;C26
Getting C:\a\1\s\bzip2\DefaultTemplate.11.1.xaml;C34
Getting C:\a\1\s\bzip2\functions.c;C26
Getting C:\a\1\s\bzip2\globals.h;C32
Getting C:\a\1\s\bzip2\LabDefaultTemplate.11.xaml;C25
Getting C:\a\1\s\bzip2\logger.c;C26
Getting C:\a\1\s\bzip2\UpgradeTemplate.xaml;C25
Getting C:\a\1\s\bzip2\zip.cpp;C28
Getting C:\a\1\s\bzip2\zip.h;C28
Done syncing repository keylogger to version C37 (workspace version C37)
******************************************************************************
Running tasks
******************************************************************************
******************************************************************************
Starting task: Build solution $/keylogger/kl_http.sln
******************************************************************************
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\VSBuild\1.0.16\VSBuild.ps1
C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\agent\worker\tools\NuGet.exe restore "C:\a\1\s\kl_http.sln" -NonInteractive
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "C:\a\1\s\kl_http.sln" /nologo /m /nr:false /fl /flp:"logfile=C:\a\1\s\kl_http.sln.log" /dl:CentralLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="win32" /p:configuration="release" /p:VisualStudioVersion="14.0"
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 12/24/2015 5:23:31 PM.
Project "C:\a\1\s\kl_http.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "release|win32".
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Project "C:\a\1\s\kl_http.sln" (1) is building "C:\a\1\s\bzip2\bzip2.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "Release\".
Creating directory "C:\a\1\s\Release\".
InitializeBuildStatus:
Creating "Release\kl_http.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /nologo /W3 /WX- /O1 /Oi /Os /Oy- /GL /D WIN32 /D NDEBUG /D _CONSOLE /D _MBCS /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Release\\" /Fd"Release\vc100.pdb" /Gd /TP /analyze- /errorReport:queue code.c functions.c logger.c zip.cpp
code.c
functions.c
logger.c
zip.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\a\1\s\Release\kl_http.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"Release\kl_http.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /PDB:"C:\a\1\s\Release\kl_http.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\a\1\s\Release\kl_http.lib" /MACHINE:X86 Release\code.obj
Release\functions.obj
Release\logger.obj
Release\zip.obj
Creating library C:\a\1\s\Release\kl_http.lib and object C:\a\1\s\Release\kl_http.exp
Generating code
Finished generating code
bzip2.vcxproj -> C:\a\1\s\Release\kl_http.exe
Manifest:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe /nologo /verbose /outputresource:"C:\a\1\s\Release\kl_http.exe;#1" /manifest Release\kl_http.exe.intermediate.manifest
FinalizeBuildStatus:
Deleting file "Release\kl_http.unsuccessfulbuild".
Touching "Release\kl_http.lastbuildstate".
Done Building Project "C:\a\1\s\bzip2\bzip2.vcxproj" (default targets).
Done Building Project "C:\a\1\s\kl_http.sln" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:31.58
******************************************************************************
Finishing task: VSBuild
******************************************************************************
******************************************************************************
Starting task: Test Assemblies **\$(BuildConfiguration)\*test*.dll;-:**\obj\**
******************************************************************************
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\VSTest\1.0.24\VSTest.ps1
No test assemblies found matching the pattern: **\release\*test*.dll;-:**\obj\**
******************************************************************************
Finishing task: VSTest
******************************************************************************
******************************************************************************
Starting task: Publish symbols path:
******************************************************************************
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\PublishSymbols\1.0.12\PublishSymbols.ps1
Find-Files -SearchPattern **\bin\**\*.pdb -RootFolder C:\a\1\s
Found 0 symbol files to index.
No files were selected for indexing.
******************************************************************************
Finishing task: PublishSymbols
******************************************************************************
******************************************************************************
Starting task: Copy Publish Artifact: drop
******************************************************************************
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\CopyPublishBuildArtifacts\1.0.13\CopyPublishBuildArtifacts.ps1
Preparing artifact content in staging folder C:\a\1\a...
Total files copied: 0.
Max Concurrent Uploads 1, Max Creators 1
Found 0 files to upload.
Created 0 files without uploading content. Total files processed 0
Uploaded artifact 'C:\a\1\a\drop' to container folder 'drop' of build 10.
Associated artifact 8 with build 10
******************************************************************************
Finishing task: CopyPublishBuildArtifacts
******************************************************************************
******************************************************************************
Finishing Build
******************************************************************************
Worker Worker-8f36227c-7965-4c0e-b7de-f55a30e3e667 finished running job 8f36227c-7965-4c0e-b7de-f55a30e3e667

我试过多次编译并尝试了很多次。

最佳答案

根据您提供的日志,在构建过程中成功创建了exe。请参阅以下内容:

Generating code
Finished generating code
bzip2.vcxproj -> C:\a\1\s\Release\kl_http.exe

问题出在您的构建定义中,即“复制和发布构建工件”步骤。默认情况下,它将“**\bin”文件夹下的文件复制到“drop”工件文件夹。但是,这不适用于 C++ 项目。在您的情况下,您正在运行具有“发布”配置的构建,因此编译文件在“发布”文件夹中生成(例如:C:\a\1\s\Release\kl_http.exe)。因此,对于构建定义中的“复制和发布构建工件”步骤,您需要将“**\bin”更改为“**\release”。此更改也适用于“索引来源和发布符号”步骤。

关于c++ - Visual Studio Team Services 编译成功但没有 EXE 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34456110/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com