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 on Windows 10/Visual Studio 2019 Community Edition #15188

Closed
1 task
dend opened this issue Dec 28, 2021 · 15 comments
Closed
1 task

Build fails on Windows 10/Visual Studio 2019 Community Edition #15188

dend opened this issue Dec 28, 2021 · 15 comments
Assignees
Labels
Area-Build Issues pertaining to the build system, CI, infrastructure, meta Issue-Bug Something isn't working Priority-1 Bug that is high priority Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@dend
Copy link
Collaborator

dend commented Dec 28, 2021

Microsoft PowerToys version

All

Running as admin

  • Yes

Area(s) with issue?

General

Steps to reproduce

  1. Fork the repository.
  2. Clone the repository.
  3. Install dependencies and clone submodules.
  4. Try building the solution.

image

✔️ Expected Behavior

Solution builds.

❌ Actual Behavior

Solution doesn't build.

Other Software

N/A

@dend dend added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 28, 2021
@davidegiacometti
Copy link
Collaborator

Hi @dend
Can you try to manually restore nuget packages and rebuild?

@crutkas
Copy link
Member

crutkas commented Dec 28, 2021

@davidegiacometti i can repro this with debug mode on a clean solution. Release mode it doesn't seem to happen. I think i may have somehow fixed it with dev/crutkas/removeAnyCpuRef branch, testing on a clean e2e before i do a PR

@crutkas
Copy link
Member

crutkas commented Dec 28, 2021

on a clean debug build, i get invalid PE header on PowerRenameUILib

@davidegiacometti
Copy link
Collaborator

I don't have any problems to build after cleaning the repo (git clean -xdf).
Haven't cleaned nuget cache.

VS2019

@crutkas crutkas removed the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Dec 29, 2021
@crutkas crutkas added Priority-1 Bug that is high priority Area-Build Issues pertaining to the build system, CI, infrastructure, meta labels Dec 29, 2021
@crutkas
Copy link
Member

crutkas commented Jan 27, 2022

this issue was kicking my butt on the .net 6 upgrade verification

@dend
Copy link
Collaborator Author

dend commented Jan 29, 2022

image

Looks like this is still an issue, with the same PowerRenameUILib.winmd

@dend
Copy link
Collaborator Author

dend commented Jan 29, 2022

Clearing the NuGet package cache and then restoring it does nothing. Looks like the issue is still exactly the same.

@jaimecbernardo
Copy link
Collaborator

Tried replicating this some times, but without success. Does this still occur in Visual Studio 2022? /needinfo

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Feb 22, 2022
@crutkas
Copy link
Member

crutkas commented Feb 22, 2022

I can get this to happen still. I did a fresh clone. Built, clean, then build again

image

@ghost ghost added the Status-No recent activity no activity in the past 5 days when follow up's are needed label Feb 28, 2022
@ghost
Copy link

ghost commented Feb 28, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

@jaimecbernardo jaimecbernardo removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Mar 1, 2022
@ghost ghost removed the Status-No recent activity no activity in the past 5 days when follow up's are needed label Mar 1, 2022
@jaimecbernardo
Copy link
Collaborator

I think trying to understand why that warning sign is there might help here.
image

@jaimecbernardo jaimecbernardo self-assigned this Mar 1, 2022
@jaimecbernardo
Copy link
Collaborator

Oh, this is because it's a UWP project being referenced from a non UWP project. (different platforms), so I'm guessing this breaks the dependency graph somewhat and tries to build PowerRenameUIHost before PowerRenameUILib actually finished building, if this makes sense.

@jaimecbernardo jaimecbernardo added the Status-In progress This issue or work-item is under development label Mar 2, 2022
@jaimecbernardo
Copy link
Collaborator

This error occurs because all these projects use the same output directory. Sometimes, the start of the PowerRenameHost project cleans out the *.winmd files that are required to build it. Using a dedicated output folder for PowerRenameUILib and then copying the contents to PowerRenameHost output directory before building it seems to solve it.

@jaimecbernardo jaimecbernardo added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Status-In progress This issue or work-item is under development labels Mar 4, 2022
@dend
Copy link
Collaborator Author

dend commented Mar 17, 2022

@jaimecbernardo should this be closed with the build change merged?

@jaimecbernardo
Copy link
Collaborator

@jaimecbernardo should this be closed with the build change merged?

We usually wait for release before going through the "Resolution-Fix-Committed" issues and close them.
Please let me know if you encounter it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Build Issues pertaining to the build system, CI, infrastructure, meta Issue-Bug Something isn't working Priority-1 Bug that is high priority Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests

4 participants