radzenhq / radzen-blazor-studio

Sample applications created with Radzen Blazor Studio
https://www.radzen.com/blazor-studio
16 stars 2 forks source link

Blazor Wasm cannot create new Application #122

Closed mharned73 closed 8 months ago

mharned73 commented 8 months ago

I am testing some different features of Blazor Wasm.

  1. I create a new project as a new Blazor Wasm project - I run project after creation it runs
  2. i add blank page to client - I get error Radzen.Server.CompilationFailedException: E:\source\repos\SignalRTestToPlc\Client_Imports.razor(11,19): error CS0146: Circular base type dependency involving 'SignalRTest' and 'SignalRTest' E:\source\repos\SignalRTestToPlc\Client_Imports.razor(12,19): error CS0146: Circular base type dependency involving 'SignalRTest' and 'SignalRTest'

    at Radzen.Server.ProjectContext.Compile(Compilation compilation, AssemblyLoadContext context) at Radzen.Server.ProjectContext.Compile(Compilation compilation) at Radzen.Server.ProjectServer.Compile(String fileName, String source, RazorProjectEngine projectEngine) at Radzen.Server.ProjectServer.CompilePage(String fileName, String source, RazorProjectEngine engine) at Radzen.Server.ProjectServer.Render(String fileName, String source, Boolean renderLayout) at Radzen.Server.ProgramController.Render(RenderRequest request)

akorchev commented 8 months ago

Hi @mharned73,

This isn't a known issue. Can you attach the app that is havimg this problem?

mharned73 commented 8 months ago

Here is link to OneDrive folder [?Folder icon] RadzenSignalRTesthttps://cabezoncontrolsllc-my.sharepoint.com/:f:/g/personal/mark_harned_cabezonctrls_com/EmVOUVjtSuNDty3rTCfG9AEBcO4YirNE0l8J7vqtlmofOA?e=s9KQzj Thanks, Mark Harned Cabezon Controls LLC From: Atanas Korchev @.> Sent: Monday, November 13, 2023 4:59 AM To: radzenhq/radzen-blazor-studio @.> Cc: Mark Harned @.>; Mention @.> Subject: Re: [radzenhq/radzen-blazor-studio] Blazor Wasm cannot create new Application (Issue #122)

Hi @mharned73https://github.com/mharned73,

This isn't a known issue. Can you attach the app that is havimg this problem?

- Reply to this email directly, view it on GitHubhttps://github.com/radzenhq/radzen-blazor-studio/issues/122#issuecomment-1808024264, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHU7HXNNTKWIJ7B2TLJEHHLYEIDP5AVCNFSM6AAAAAA7JAJ2VKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBYGAZDIMRWGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

akorchev commented 8 months ago

I think this happens because the page is named the same as the application. This creates a class SignalRTest in the namespace SignalRTest and leads to those errors that you are getting.

mharned73 commented 8 months ago

thank you


From: Atanas Korchev @.> Sent: Thursday, November 16, 2023 8:41 AM To: radzenhq/radzen-blazor-studio @.> Cc: Mark Harned @.>; Mention @.> Subject: Re: [radzenhq/radzen-blazor-studio] Blazor Wasm cannot create new Application (Issue #122)

I think this happens because the page is named the same as the application. This creates a class SignalRTest in the namespace SignalRTest and leads to those errors that you are getting.

— Reply to this email directly, view it on GitHubhttps://github.com/radzenhq/radzen-blazor-studio/issues/122#issuecomment-1814709027, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHU7HXIXMBF723ZHWFEMEW3YEYX3TAVCNFSM6AAAAAA7JAJ2VKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUG4YDSMBSG4. You are receiving this because you were mentioned.Message ID: @.***>