Giter Site home page Giter Site logo

Comments (8)

maxkatz6 avatar maxkatz6 commented on May 26, 2024 1

@NullFragment not related. Check breaking changes page https://github.com/AvaloniaUI/Avalonia/wiki/Breaking-Changes
Note that 11.0 is in development and nightly builds might not be stable.

from avalonia-dotnet-templates.

maxkatz6 avatar maxkatz6 commented on May 26, 2024

Please, try 6.0.202 sdk version. I wonder if they had breaking changes again.

from avalonia-dotnet-templates.

rolandh15 avatar rolandh15 commented on May 26, 2024

I tried with 6.0.200 and was unable to build on macOS, but WebAssembly and Desktop, and Android worked. I will change to 6.202 and retry.

from avalonia-dotnet-templates.

rolandh15 avatar rolandh15 commented on May 26, 2024

Still does not work, same error occurs as before:
The type 'UIResponder' is defined in an assembly that is not referenced. with SDK 6.0.202. Is there a specific version of XCode required as well? or will the latest be sufficient?

from avalonia-dotnet-templates.

maxkatz6 avatar maxkatz6 commented on May 26, 2024

I was able to reproduce.
Yes, it's caused by breaking changes in .NET 6 minor versions.

This template targets Avalonia nightly version that was built with older version of .NET SDK and Xamarin.iOS.
I it was fixed after I changed Avalonia version to a newer nighthly build - 0.10.999-cibuild0021189-beta
Works with both 6.0.202 and 6.0.301 sdk (changing global.json version to a specific one).

from avalonia-dotnet-templates.

rolandh15 avatar rolandh15 commented on May 26, 2024

Works as expected with the new version.

from avalonia-dotnet-templates.

rolandh15 avatar rolandh15 commented on May 26, 2024

Leaving the issue open because the template should probably be upgraded or at least somewhat keep its targeting up to date with the CI builds. I wonder if there is not a way to install a CI built template from dotnet instead of the default one?

from avalonia-dotnet-templates.

NullFragment avatar NullFragment commented on May 26, 2024

I came across this issue while trying to look into Avalonia. Upgrading to a newer nightly build still results in build failures for me (nothing was modified in the project other than the NuGet package versions):

  XamlX.XamlParseException: Unable to resolve type FluentTheme from namespace https://github.com/avaloniaui Line 10, position 10.
  MainWindow.axaml.cs(9, 13): [CS0103] The name 'InitializeComponent' does not exist in the current context
  MainView.axaml.cs(9, 13): [CS0103] The name 'InitializeComponent' does not exist in the current context

I'm using Avalonia Templates @ v0.10.14 and I've tried all of the Avalonia NuGet packages at 0.10.999-cibuild0021189-beta and 0.10.999-cibuild0021319-beta

from avalonia-dotnet-templates.

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.