Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio Preview Plugin fails to render dependent forms #2642

Open
ccurtis0 opened this issue Apr 12, 2024 · 0 comments
Open

Visual Studio Preview Plugin fails to render dependent forms #2642

ccurtis0 opened this issue Apr 12, 2024 · 0 comments

Comments

@ccurtis0
Copy link

This report is for "Eto.Forms Templates and Previewer" for Visual Studio Marketplace - https://marketplace.visualstudio.com/items?itemName=CurtisWensley.EtoFormsVisualStudioAddin
That site doesn't allow me to post in the Q&A section so I hope posting here is acceptable.

Here is my issue: I created a "widget" based on an Eto.Forms.Panel in a .eto.cs file. I can view this form in the preview area.

In another .eto.cs file I then created a second Eto.Forms.Panel widget that uses the first one as part of a StackLayout. This all works fine when I run the program, but in Visual Studio the bottom of the preview window shows a black-on-red error message that says: "A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)" when I declare the variable.

image

When I then try to put the variable in a Layout, it says: "Compile error: The type 'Panel' is defined in an assembly that is not referenced. You must add a reference to assembly 'Eto, Version=2.7.0.0, Culture=neutral, PublicKeyToken=...'. // The best overloaded Add method 'Collection.Add(StackLayoutItem)' for the collection initializer has some invalid arguments. // Argument 1: cannot convert from '' to 'Eto.Forms.StackLayoutItem'"

image

I found one resource online suggesting signing the assembly to give it a strong name and I enabled this option but to no effect. I also tried to "using static" the type with the same non-result. Should this work or what am I missing to make it render with my custom widget in the preview?

Specifications

  • Versions:
    • C# .NET Framework 4.8
    • RhinoCommon 7.35.23346.11001
    • Eto 2.7.0.0 (? Not sure how to tell)
    • Visual Studio 2022 Version 17.9.6
    • Eto.Forms Templates and Previewer Version 2.7.5.0
  • Platform(s): Rhino 7 for Windows
  • Operating System(s): Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant