tryphotino / photino.NET

https://tryphotino.io
Apache License 2.0
889 stars 73 forks source link

Error in Photino.Blazor example project when updating package #24

Closed DavidMcGaha closed 3 years ago

DavidMcGaha commented 3 years ago

When I update the nuget package, I get an error. Text:CS0234 The type or namespace name 'PhotinoNET' does not exist in the namespace 'PhotinoNET' (are you missing an assembly reference?)

When I go into the WindowProp.razor page and try to change it away from PhotinoNET.PhotinoNET to PhotinoNET.IPhotinoWindow or PhotinoWindow, I get an error saying that Topmost property is missing.

Attached image of files updated in the nuget update image

philippjbauer commented 3 years ago

Hello @DavidMcGaha!

Thank you for your feedback! First off, there is a new version of the VS Extensions available since today. Go ahead and update to get the version that can utilize the new Photino package versions. That will take care of the missing Topmost property, it changed to IsOnTop in v1.1.x.

Also make sure that the namespace in the _Imports.razor file are correct for your project. When you create a new project from the template, VS is not replacing the @using statement to match the name you chose when creating the project.

// ./_Imports.razor
@using System.Net.Http
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.JSInterop

@* Replace HelloPhotino.Blazor with namespace from Program.cs *@
@using HelloPhotino.Blazor
@using HelloPhotino.Blazor.Shared
DavidMcGaha commented 3 years ago

Awesome. Thank you sir.

DavidMcGaha commented 3 years ago

Hi Philipp,

So, I had everything working on Windows and Linux(quite well I might add) using the 1.0.7 version of the HelloPhotino.Blazor template. I upgraded to 1.1.1 and changed as described. The Linux version would no longer run. .getting error:

File "app://app/" could not be found.

Downgrading back to 1.0.7 did not reverse the problem...so...

Then I reinstalled the extension and created a new app with the new templates, changed the _import file and I get a build error message that I cannot seem to get past... Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'MainLayout' could not be found (are you missing a using directive or an assembly reference?) OrderEntry1 C:\Users\dmcgaha\source\repos\OrderEntry1\OrderEntry1\App.razor 3 Active

Any ideas?

On Fri, Mar 12, 2021 at 12:28 PM Philipp Bauer @.***> wrote:

Closed #24 https://github.com/tryphotino/photino.NET/issues/24.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tryphotino/photino.NET/issues/24#event-4452079796, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAGPLPKEVU2Y7OYSMVOZUTTDJFKJANCNFSM4ZBGACDA .

DavidMcGaha commented 3 years ago

When I downgrade the original working app to 1.0.7, I get this error on starting the Linux version Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'Photino_SendMessage' in shared library 'Photino.Native'. at PhotinoNET.PhotinoNET.Photino_SendMessage(IntPtr instance, String message) at PhotinoNET.PhotinoNET.SendMessage(String message) at Photino.Blazor.IPC.<>c__DisplayClass3_0.b__0() Aborted (core dumped)