Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails when run automated, but succeeds when run manually #7866

Open
vsfeedback opened this issue Apr 3, 2024 · 2 comments
Open

build fails when run automated, but succeeds when run manually #7866

vsfeedback opened this issue Apr 3, 2024 · 2 comments
Assignees

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


We use Nant to manage our nightly builds. Our solution contains a Python project. The nightly builds are not building the Python project. This complaint appears in the output:

[echo] Rebuild All sln started.
[exec]
[exec] Microsoft Visual Studio 2022 Version 17.6.12.
[exec] Copyright (C) Microsoft Corp. All rights reserved.
[exec]
[exec] Package 'Python Tools Package' failed to load.
[exec] c:\AutomatedBuild\dev\Enhance-LF\Enhance-LF.pyproj : error : Error HRESULT E_FAIL has been returned from a call to a COM component.
[exec] Rebuild started...

When I open that same solution manually on the same machine and build, I get no errors and the Python project is built along with everything else.

We ran devenv directly from the command prompt and got the same results:

"C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE>devenv.com c:/automatedbuild/dev/all.sln /build debug^|x64 /out c:/automatedbuild/dev/VSoutputrelease.txt
c:\AutomatedBuild\dev\Enhance-LF\Enhance-LF.pyproj : error : Error HRESULT E_FAIL has been returned from a call to a COM component."

We're not sure where to go now as far as troubleshooting. Any thoughts would be appreciated.

Thanks,

Tara


Original Comments

Feedback Bot on 3/21/2024, 07:23 PM:

(private comment, text removed)

Graham Wheeler [MSFT] on 3/27/2024, 10:14 AM:

(private comment, text removed)

Ficken, Tara (US) on 3/27/2024, 11:11 AM:

(private comment, text removed)


Original Solutions

(no solutions)

@StellaHuang95
Copy link
Contributor

Hi there, thanks for reporting the issue. Is your code in a public repo or could you provide sample code that repros this issue? It's really difficult to diagnose without repro steps. Thanks.

@tficken1
Copy link

We created a little project and it can be found here: https://github.com/tficken1/Sample-Python-Solution

We got the same results when trying to build the sample solution. We were able to build from within Visual Studio 2022, but not when using devenv.com from the command line. Thanks in advance for your help!

Tara

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants