Comments (6)
Was it just C++/WinRT that changed?
I ask this because C++/WinRT isn't responsible for the generation of any of the files involved in XamlTypeInfo. The way the build process works is:
- Midl compiles the .idl files into the individual .winmd files. You can find these in
$(IntDir)\Unmerged
.
- Mdmerge merges these individual .winmd files into the application combined .winmd file. So it reads the files from
$(IntDir)\Unmerged
and writes to$(IntDir)\Merged\$(RootNamespace).winmd
.
-
It copies this merged .winmd file to
$(OutDir)
. -
Cppwinrt runs for the first time. This run generates the basic platform headers. These are stored in
$(ProjectDir)\Generated Files\winrt
. -
Cppwinrt runs for the second time. This run generates additional platform headers, this would include SDK references. These are stored in the same place.
-
Cppwinrt runs for the third time. This run reads the application .winmd files and produces the component headers and implementation source. These are stored in the same place. This means that C++/WinRT is responsible for reading the .winmd file and generating .h files under
$(ProjectDir)\Generated Files\winrt
. -
The first Xaml Compiler pass runs. This reads the various .winmd files and produces some header and source files under
$(ProjectDir)\Generated Files
. -
The second Xaml Compiler pass runs. This reads the various .winmd files and the state from the first pass and produces the remaining source files, this is when XamlTypeInfo.cpp should be generated.
So I could understand an update to the Windows App SDK package causing this, since that is what contains the Xaml Compiler. But an update to C++/WinRT shouldn't cause this.
from microsoft-ui-xaml.
Possibly related: microsoft/cppwinrt#1397
from microsoft-ui-xaml.
@takatsuka2022 Can you share a repro project?
from microsoft-ui-xaml.
We have created a test pro. We have also confirmed that the solution builds successfully and is executable by reverting the CppWinRT version back to 2.0.230706.1.
ControlLib 2.zip
from microsoft-ui-xaml.
@takatsuka2022 thank you for the repro. A fix has been made to CppWinRT: microsoft/cppwinrt#1404
from microsoft-ui-xaml.
Fix has been published: https://www.nuget.org/packages/Microsoft.Windows.CppWinRT/2.0.240405.15
from microsoft-ui-xaml.
Related Issues (20)
- Extending `ContentDialog` with generics <T> stops autogenerated code HOT 1
- Broken links in Contributing to the Windows UI Library document HOT 1
- Voice Access commang like "Delete that" is not working wit PasswordBox HOT 1
- The default Print UI dialogue is not shown on the Windows platform when the EntryPoint is set as "Windows.PartialTrustApplication" in Package.appxmanifest. HOT 6
- Button does not spread in RelativePanel HOT 5
- Wrong placement of CommandBar using Page's TopAppBar property. HOT 3
- Native debugging for WinUI apps stopped working HOT 7
- Issue occurs for custom control that was inherited from ComboBoxItem HOT 1
- Tertiary color does not have correct Color Contrast ratio. HOT 1
- Memory Increases When Retrieving BindingPath.Path HOT 5
- Wrong cursor displayed in Flyouts (no I-Beam in TextBox) HOT 2
- PipsPager keyboard navigation past first or last pip HOT 3
- Proposal: Method Based Administrator elevation (MSIX Package)
- When dragging and dropping ListView items, use `e.Data.SetDataProvider (StandardDataFormats. StorageItems, MyDataProviderHandle)` ; Unable to implement delayed data provision. HOT 1
- x:Bind with Mode=OneTime triggers multiple times HOT 2
- Focus does not move into the frame after navigating to one from a navigation view. HOT 2
- Setting true to NavigationFailedEventArgs.Handled is not respected
- Component Xaml file missing from app directory HOT 4
- Can not Build Project due to error message APPX110 Payload contains two or more files with the same destination path '.pdb'. HOT 3
- The Print UI dialogue is not shown on the Windows platform when the "EntryPoint" is set as "Windows.PartialTrustApplication" in Package.appxmanifest. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-ui-xaml.