Git Product home page Git Product logo

Comments (4)

jfversluis avatar jfversluis commented on June 29, 2024

Is this with Visual Studio on Windows? Just tried it on macOS with VS Code and compiled and ran just fine here!

from maui-samples.

davidcorbin-atmosera avatar davidcorbin-atmosera commented on June 29, 2024

Is this with Visual Studio on Windows? Just tried it on macOS with VS Code and compiled and ran just fine here!

Yes, Visual Studio 2022 [17.9.5] .. My first indication was the warning
C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file.

This would (to me) indicate that the project files had not been updated....so I figured I would ask...

from maui-samples.

jfversluis avatar jfversluis commented on June 29, 2024

Yeah I think there is a PR for that but that didn't get merged yet. Regardless, it works fine for me without it, as it should.

The real error seems to be this one: 1>Pages\Handheld\SignaturePage.xaml(25,48): XamlC error XFC0000: Cannot resolve type "clr-namespace:PointOfSale:Main".

from maui-samples.

davidcorbin-atmosera avatar davidcorbin-atmosera commented on June 29, 2024

Yes, as I said it was an indicator... as to the can not resolve type... that may be to be related to:

CSC : warning CS9057: The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.203\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll' references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'.

But not sure....

Also, note that this was done on a relatively clean machine that had not done any MAUI work previously. When opening the SLN in VS-2022 is indicated some additional components needed to be installed, and I let the VS ecosystem take care of that.

If you are using Vs-Code (this is 40% hypothesis, not use-case I actually do) that spawns off a bunch of dotnet command lines and there may be "workloads" involved that do not get set in the expected manner when the normal use case is via Visual Studio.....

from maui-samples.

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.