Git Product home page Git Product logo

Comments (7)

nguerrera avatar nguerrera commented on August 23, 2024 2

I believe all of the feedback has been addressed at this point. Let me know if I'm missing something and we can reopen.

from installer.

gulbanana avatar gulbanana commented on August 23, 2024 1

Everything's working well in the builds I've tested.

from installer.

dasMulli avatar dasMulli commented on August 23, 2024

cc/fyi @nguerrera

from installer.

nguerrera avatar nguerrera commented on August 23, 2024

Thanks for this feedback.

The SDK doesn't contain a glob for Page items, nor does it nest them using DependentUpon.

We would like page items to be globbed. There are some challenges around it, but that is the goal.

Building in visual studio sometimes takes a couple of tries. in particular the first clean rebuild seems to fail. This seems related to the generated xaml project.

I haven't seen this yet, it might be worth opening a separate issue with repro steps.

When importing the props and targets, netfx must not use Microsoft.NET.Sdk.Wpf, because it already has winfx.targets coming from Microsoft.NET.Sdk. However, corefx needs the WPF targets imported after the core sdk targets. this means we can't use Project Sdk= but must instead decompose the sdk into hand-written imports.

This should sort itself out once we have build working on core.

dotnet build cannot be used yet

Folks are working on it.

in particular, failures to load xaml will be reported at runtime as a ArgumentNullException failing to format an error.

This is fixed in recent WPF builds. I'll try to get it inserted.

The lack of a Properties.cs in .net core projects - for the most part a good thing - means that there's no obvious place to put the ThemeInfo attribute required for control xaml discovery.

This one seems minor. You can just create a ThemeInfo.cs or even Properties.cs without the other assembly info attributes in it.

from installer.

gulbanana avatar gulbanana commented on August 23, 2024

Good to hear that much of this stuff is already known. I'll create a repro for the rebuild-fails thing as well as for any issues i encounter when porting some existing libraries and applications to the alpha. On a couple of specific points:

You can just create a ThemeInfo.cs or even Properties.cs without the other assembly info attributes in it.

Yes, this is what I did in the linked repository. The new dotnet wpf template doesn't do that, though, which means if people try to build custom control libraries without having fully understood the requirements they might be surprised that what worked on framework seemingly doesn't work on core.

This should sort itself out once we have build working on core.

It would be great if Microsoft.NET.Sdk.Wpf just worked when multitargeting - with the way it works now you could achieve this by making its targets conditionally import winfx depending on whether it's building for full framework. But, the whole scenario is slightly weird: sharing code between desktop-wpf and core-wpf will be necessary for businesses to transition, which means multitargeting, which means using the new project system... which hasn't been supported previously.

In short, to get adoption for WPF on .NET Core it will require some nontrivial build process changes for WPF on .NET Framework! This probably doesn't have to be a first class scenario, because library authors are more likely to know what they're doing than app authors, but it does have to be possible (as it currently is, though I get the feeling the tooling is going to change a lot).

from installer.

dasMulli avatar dasMulli commented on August 23, 2024

Agree that multi-targeting is important.

When library authors moved to netstandard, most of them switched to multi-targeting to avoid braking changes to existing consumers. If companies and control / lib authors now also want to enable consumption from .net core, multi-targeting is also going to be an important scenario.

from installer.

nguerrera avatar nguerrera commented on August 23, 2024

@gulbanana Have you tried multi-targeting with Preview 1 or more recent bits. It should work now to dotnet new wpf and change TargetFramework to TargetFrameworks=net46;netcoreapp3.0.

from installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.