Comments (5)
That error is curious, it is also an error I do not see. Anyway, to go through the important points.
-
The projects being out of date is a known issue. The updated project templates that have .NET 8 support can be found here. You cannot build the .vsix file, but there is nothing stopping you from using these files to properly configure a new project. As an example to show this, there is a response to another bug report last month stating that the new project templates are on the way.
-
If you are using the Windows App SDK 1.5, you really shouldn't need UseRidGraph. A project that I created to test this out works perfectly fine with:
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>CsTest</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;ARM64</Platforms>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
<Nullable>enable</Nullable>
</PropertyGroup>
If you want this to work with all frameworks, then using the method in the project templates will work.
- The crash at XamlCheckProcessRequirements basically mean that you do not have the Windows App Runtime referenced. If your application is packaged, then you really need to provide a sample project that exhibits this behaviour since the build system should be picking up the reference from the NuGet package. If your application is unpackaged then you missed a step in the "Create your first WinUI 3 (Windows App SDK) project" link that you provided.
As per step 7 in the unpackaged section, you need to set WindowsPackageType to none in the .csproj file. This will bootstrap the Windows App Runtime into the process and allow Xaml to work.
There is an added annoyance here in that using WindowsPackageType set to none will break the packaging for this type of project. There are ways around it if you want the application to work seamlessly packaged or unpackaged.
from microsoft-ui-xaml.
After rebooting the development machine (ad hoc, just to see if it would help), the project builds and runs on .NET 8 without issues. As others on the GitHub thread have indicated it is not replicable in their existing environments, it seems to me that maybe the documentation should say a restart is required, or the SDK installer should prompt for a reboot?
from microsoft-ui-xaml.
Glad to hear you're unblocked! If you come across more detail on what configuration change required a reboot, please let us know. thanks!
from microsoft-ui-xaml.
It was a fresh installation of WinUI 3 SDK onto a Window 11 development machine with an existing Visual Studio 2022 environment.
from microsoft-ui-xaml.
Hi again, if anyone else hits this, you might also try uninstalling the WinAppSDK template extension from Visual Studio and then re-installing the latest. If you installed the standalone version from a past download link, it won't be updated in-place.
Thanks!
from microsoft-ui-xaml.
Related Issues (20)
- How to set a control/element especially MediaPlayerElement to full screen in WinUI3 HOT 2
- ListView with Single selection mode can have two selected items. HOT 2
- Crashing when binding to control resources HOT 4
- TitleBar doesn't show Subtitle/Header/Content/Footer HOT 7
- New TitleBar Control Content/Footer/Header/Subtitle does not Shown HOT 2
- Hide Window does not raise VisibilityChanged event
- When AOT was released, the XAML implicit conversion failed HOT 4
- ItemsSource breaks with AOT HOT 3
- TitleBar API feedback HOT 31
- TitleBar doesn't support TitleBarHeightOption.Standard HOT 1
- Can't select text from TextBox/AutoSuggestBox set as content in TitleBar with the cursor HOT 4
- High CPU Usage in WinUI App When Screen is Locked on Remote Desktop Due to DWMCOREI.dll HOT 4
- Enabling NumberBox AcceptsExpression ignores numbers smaller than 1 when entered in scientific notation HOT 3
- Expanders need a button on the arrow to assist with the narrator. HOT 2
- WinUI 3 ContentDialog declaration in xaml as Flyout does HOT 1
- ListView doesn't respect Visibility of contents HOT 4
- Able to change the window height even if IsResizable is false but ExtendsContentIntoTitleBar is true HOT 2
- AOT fails with Dictionary<T, U> in 1.6 Experimental HOT 1
- DefaultTitleBarShouldMatchAppModeTheme does not respect RequestedTheme HOT 1
- ContentDialog has no show animation in 1.6-exp1 HOT 3
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.