Is it possible to add Windows Forms to .NET Core console application? - winforms

Just like how we right click on the project and would be able to add Windows Form in the .NET Framework console application, is it possible to add Windows Form in .NET Core console application?

Create a .net core winform project, compile, manually reference System.Windows.Forms.dll and System.Drawing.Common.dll into the project, then use [STAThread] for the Main function, it works for me.

NuGet manager, Install-Package System.Configuration.ConfigurationManager

Related

Visual studio 2019 and IdentityServer project template

Trying to follow the tutorials for IdentityServer using Visual studio 2019.
As per the instructions created a .Net Core Web Application and then an MVC project type and as per tutorials a welcome screen for IdentityServer should come at run time
But i am getting an MVC page template only like this
Is there any difference in project templates based on new visual studio updates? Or what is the correct selection of project types to get the window similar to the first image ?
It seems you are running the mvc application insteed of the identity provider service.
Go to the solution properties, Common Properties, and select Multiple startup projects. Then change the Action to Start for debug all your projects.
If you prefer start only your identity provider service set it as the Single startup project.

Onesignal API in Windows Phone 8.1 Silverlight App

I made a little app started with Databound App template. Didn't have an idea that it made use of Silverlight and at same time that this was making this framework uncompatible. I have to install Onesignal API to it for push notifications. So, I followed the documentation procedure.
It failed at 1.4 with this error when pressing OK:
Microsoft Visual Studio
A reference to a higher version or incompatible assembly cannot be added to the project
So I tried to do the same thing, in case I did something wrong, on the Blank App template which doesn't feature Silverlight and it worked.
How can either install the API in my Silverlight project or "convert" (or migrate) it to non-Silverlight?

communication between silverlight plugin and mvc project without using WCF

I just need a help regarding the communication between the silverlight plugin which uses webcam and gives response to the mvc application.I just need the breakpoints to be hitted on the silverlight project run mode that are not hitting for the moment.
Any help will be highly appreciated..
On Solution Explorer of Visual Studio right click on your web project and select Properties. Go to the Web tab. In the bottom under Debuggers check Silverlight checkbox. After that you can debug your Silverlight application.

Debug Silverlight component from MVC application Visual Studio 2010

In my solution I have a MVC project. Then I added a Silverlight project. When I added the Silverlight project, I set to include it in the existing web application (MVC project).
It added an .aspx page that contains the Silverlight component. The problem is that I cannot debug into the Silverlight code when I start the ASP.NET MVC application. I set a breakpoint in the Application_Startup function in the Silverlight code, but it never stops there. On the breakpoint I have a tooltip:
The breakpoint will not currently be hit. No symbols have been loaded for this document
How do I fix this problem?
Which browser are you using? I've had mixed results with debugging Silverlight with anything besides Internet Explorer, so I'm making sure to use Internet Explorer when developing Silverlight applications.
If you're using Internet Explorer, then Evan's solution should work (at least that's what has stopped me some time - Silverlight debugging disabled in the web project).
Also check that your Silverlight application is present in the list located under Web project properties > Silverlight Applications.
I found the problem. The browser was caching the Silverlight application. I solved that with the following code when initializing the Silverlight component:
param name="source" value="ClientBin/form.xap?<%= DateTime.Now.Ticks %>"

Silverlight debug problem blank page

I have a Visual Studio 2010 and silverlight 4 over it. When I'm trying to run a simple application hello world in a browser, it shows only the blank page.
The type 'Deployment' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
I think the problem is above but how can I solve it?
did you use silverlight with web application? When you create a silverlight app it have one web site associated. On the default.aspx, you have the object. Check the parameters off the object and verify if everything is ok and you have installed all components that support it.

Resources