Skip to content

wpf repo fails to build inside VMR locally on Windows #3877

@ViktorHofer

Description

@ViktorHofer

Probably related to using VS 2026.

C:\git\dotnet\repo-projects\Directory.Build.targets(601,5): error MSB3073: The command "C:\git\dotnet\src\wpf\eng\common\build.cmd -restore -build -pack -publish  -productBuild -fromVMR -configuration Release -
verbosity minimal /p:TargetRid=win-x64 /p:DotNetPackageVersionPropsPath=C:\git\dotnet\artifacts\obj\PackageVersions\PackageVersions.wpf.props /p:SourceBuiltAssetsDir=C:\git\dotnet\artifacts\assets\Release\ /p:S
ourceBuiltAssetManifestsDir=C:\git\dotnet\artifacts\obj\manifests\Release\wpf\ /p:RepositoryName=wpf /p:RepositoryUrl=https://github.com/dotnet/dotnet /p:TargetArchitecture=x64 /p:TargetOS=windows /p:SourceBuil
tShippingPackagesDir=C:\git\dotnet\artifacts\packages\Release\Shipping\wpf\ /p:SourceBuiltNonShippingPackagesDir=C:\git\dotnet\artifacts\packages\Release\NonShipping\wpf /p:SourceBuiltPdbArtifactsDir=C:\git\dot
net\artifacts\SymStore\Release\wpf /p:SourceBuiltArtifactsBasePath=C:\git\dotnet /p:UsingToolMicrosoftNetCompilers=false /p:PortableBuild=true /p:PortableTargetRid=win-x64 /p:RepoOriginalSourceRevisionId=37b959
7bebaf48196a05f6d6212ec1e9bc24352f  -bl /p:Platform=x64 /p:BuildWithNetFrameworkHostedCompiler=true /p:AfterMicrosoftNETSdkTargets=C:\git\dotnet\eng\vs-workaround.targets /p:DotNetBuildTargetRidOnly=true > C:\g
it\dotnet\artifacts\log\Release\wpf\wpf.log 2>&1" exited with code 1. [C:\git\dotnet\repo-projects\wpf.proj]
  Processing C:\git\dotnet\src\wpf\global.json
  strawberry-perl was not found in C:\Users\vihofer\.netcoreeng\native\bin\strawberry-perl\5.38.0.1\.
  net-framework-48-ref-assemblies was not found in C:\Users\vihofer\.netcoreeng\native\bin\net-framework-48-ref-assemblies\0.0.0.1\.
  windows-sdk-d3d-redist was not found in C:\Users\vihofer\.netcoreeng\native\bin\windows-sdk-d3d-redist\1.0.0\.
  Native tools bootstrap failed
  Detecting WPF Git hooks...
  Detected existing WPF Git pre-commit hook.
  Processing C:\git\dotnet\src\wpf\eng\..\global.json
  File 'C:\Users\vihofer\.netcoreeng\native\temp\strawberry-perl-5.38.0.1-win64-x64.zip' already exists, skipping download
  strawberry-perl was not found in C:\git\dotnet\src\wpf\eng\..\.tools\native\bin\strawberry-perl\5.38.0.1\.
  File 'C:\Users\vihofer\.netcoreeng\native\temp\net-framework-48-ref-assemblies-0.0.0.1-win64-x64.zip' already exists, skipping download
  net-framework-48-ref-assemblies was not found in C:\git\dotnet\src\wpf\eng\..\.tools\native\bin\net-framework-48-ref-assemblies\0.0.0.1\.
  File 'C:\Users\vihofer\.netcoreeng\native\temp\windows-sdk-d3d-redist-1.0.0-win64-x64.zip' already exists, skipping download
  windows-sdk-d3d-redist was not found in C:\git\dotnet\src\wpf\eng\..\.tools\native\bin\windows-sdk-d3d-redist\1.0.0\.
  Native tools bootstrap failed
  Downloading vswhere 3.1.7


    Determining projects to restore...
    Restored C:\git\dotnet\artifacts\source-built-sdks\Microsoft.DotNet.Arcade.Sdk\tools\Tools.proj (in 3.19 sec).
  C:\git\dotnet\src\wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\hw\ShaderAssemblies.targets(77,5): error : fxc.exe (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\fxc.exe) not found [C:\git\dotnet
  \src\wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\hw\hw.vcxproj]
  C:\git\dotnet\src\wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\av\av.targets(20,5): error : TraceWpp.exe (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\tracewpp.exe) not found [C:\git\dotnet\src
  \wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\av\av.vcxproj]

  Build FAILED.

  C:\git\dotnet\src\wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\hw\ShaderAssemblies.targets(77,5): error : fxc.exe (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\fxc.exe) not found [C:\git\dotnet
  \src\wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\hw\hw.vcxproj]
  C:\git\dotnet\src\wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\av\av.targets(20,5): error : TraceWpp.exe (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\tracewpp.exe) not found [C:\git\dotnet\src
  \wpf\src\Microsoft.DotNet.Wpf\src\WpfGfx\core\av\av.vcxproj]
      0 Warning(s)
      2 Error(s)

  Time Elapsed 00:00:07.67
  Build failed with exit code 1. Check errors above.
  See log: C:\git\dotnet\src\wpf\artifacts\log\Release\Build.binlog

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions