15,894,825 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Magnus Sydoff (Top 6 by date)
Magnus Sydoff
17-Sep-22 8:01am
View
Thanks @Graeme_Grant
I've watched the video and really tried hard to apply the ideas mentioned (even though they did not use a console application as starting point). However I still fail to get the UI to show up properly. It is just shown as poor html page without any css or equivalent at all.
I hope that you would be able to give just a short push in the right direction.
Thanks in advance,
Magnus
Magnus Sydoff
11-Sep-22 6:25am
View
(Since a reply can't seem to contain formatting, I've put an image here instead.
Hopefully it says more than the 1000 words.... ;-) )
https://imgur.com/a/vHrrY5j
Magnus Sydoff
11-Sep-22 6:11am
View
Thank you for your answer @Graeme_Grant
I've tried to read up on Blazor Hybrid, but I can't really see how I should go about it.
Basically the Blazor app looks like this
-----------------------------
public class MyProgram
{
public static void Main(string[] args)
{
new OurTestBlazorApp().Start();
}
}
public class OurTestBlazorApp
{
public void Start()
{
var builder = WebApplication.CreateBuilder();
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSingleton<weatherforecastservice>();
var app = builder.Build();
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
}
app.UseStaticFiles();
app.UseRouting();
app.MapBlazorHub();
app.MapFallbackToPage("/_Host");
app.Run();
}
}
-----------------------------
and it works just as expected (great that is) whereas the regular console application looks like this
-----------------------------
new OurTestBlazorApp().Start();
-----------------------------
When I start the alternative console application (which as you see call the Blazor server app) the functionality of weather forecast (fetch data) and the counter works but it looks awkward with no graphics.
I'm still under the impression that there is just a small setting / tweak somewhere that needs to be done but I might be totally wrong here.
King regards
Magnus
Magnus Sydoff
4-Sep-22 4:19am
View
Thanks @TimWallace for your answer. I wrote something that might not be a factory but solves the problem anyway. I'll post it in case someone else might need something similar.
Magnus Sydoff
17-Jan-22 13:05pm
View
Hi _Asif,
Yes, I looked at that article, but if I'm not misreading it, it just gives me a value in return, not wiring up my services.
I have ended up writing my own implementation that reads from a json file and then looks at the defined interfaces and classes and wires it up.
Thanks!
Magnus Sydoff
29-Dec-21 15:26pm
View
Thanks for the answer Luc, but does the concept of Application exist in Net6?
From what I remember it is lives in the Windows Forms assembly, and that will not play nicely with Linux, or am I mistaken?
King regards
Magnus
Show More