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

Existing WinUI projects build failed with error MSB3073 or MSB3030 #8491

Closed
XamlTest opened this issue May 18, 2023 · 1 comment
Closed

Existing WinUI projects build failed with error MSB3073 or MSB3030 #8491

XamlTest opened this issue May 18, 2023 · 1 comment
Labels
bug Something isn't working team-Markup Issue for the Markup team

Comments

@XamlTest
Copy link

XamlTest commented May 18, 2023

Describe the bug

Download a WinUI solution from git as Zip, then extract all, build project failed with error MSB3073: The command "git rev-parse HEAD" exited with code 9009.

Clone a WinUI solution from git with Visual Studio 2022, build project failed with error MSB3030: Could not copy the file "\vc_redist.x86.exe" because it was not found.

Please check the original test case here.

Steps to reproduce the bug

Environment:
VS build: 17.7.0 Preview 2.0 [33715.387.main]
OS: Windows 11/Windows 10

Repro Steps:

  1. Preinstall: Git
  2. Clone the repo: https://microsoft.visualstudio.com/DefaultCollection/WinUI/_git/microsoft-ui-xaml-lift with Visual Studio
  3. Open Command Prompt as Administrator
  4. Navigate to the directory of repo(such as: cd C:\repo)
  5. Run command: init.cmd.(If show a message saying it needs to reboot, then reboot and try again.)
  6. Run command: build.cmd

Actual Result:
Failed with error: C:\repo\eng\binplace.targets(68,5): error MSB3030: Could not copy the file "\vc_redist.x86.exe" because it was not found. [C:\repo\dxaml\test\infra\BinplaceTestDependencies.csproj]
image

More info:
If download the repo as zip and then follow the repro steps, there is a different error:
C:\repo\src\XamlCompiler\Directory.Build.targets(7,5): error MSB3073: The command "git rev-parse HEAD" exited with code
9009. [C:\repo\src\XamlCompiler\Exe\Microsoft.UI.Xaml.Markup.Compiler.MSBuildInterop\Microsoft.UI.Xaml.Markup.Compiler
.MSBuildInterop.csproj]
image

Expected behavior

WinUI Projects build successfully.

Screenshots

No response

NuGet package version

None

Windows version

No response

Additional context

No response

@XamlTest XamlTest added the bug Something isn't working label May 18, 2023
@bpulliam bpulliam added the team-Markup Issue for the Markup team label Aug 9, 2023
@Scottj1s
Copy link
Member

The lifted Xaml code is 'shared source', not 'open source', so there is no guarantee it will build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

3 participants