Skip to content

CSC complains it can’t find XAML files #12588

@wjk

Description

@wjk

Issue Description

I am trying to compile the following codebase: https://github.com/wjk/MSIExtractApp/tree/feature/msbuild. When I try to build the MSIExtract project (which is my main, WPF-based app) CSC complains that it can’t find the XAML files.

Steps to Reproduce

Clone and build above-linked branch and repo.

Here is my zipped binlog.

Expected Behavior

Build should succeed.

Actual Behavior

Compiler errors concerning missing XAML files.

Analysis

I have no idea why CSC cares about XAML files. The only thing I can think of is the #pragma checksum line in the generated *.g.i.cs files causes CSC to look for the XAML file named on that line. However, I have no idea what #pragma checksum lines actually do.

This only happens on the branch linked above. The main branch of the same repo builds just fine.

Versions & Configurations

MSBuild version 17.14.23+b0019275e for .NET Framework
17.14.23.42201

Visual Studio 2022, version 17.14.16. Windows 11 build 26100.6584. ARM64 virtual machine on M4 MacBook Air; I am using UTM to run my VM.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions