Change from Windows Forms to WPF Application - c#

I already made an application that is using Windows Forms, but I knew that Windows Forms setup was no longer available in Visual Studio 2013, that is made me to install both of Visual Studio 2010 and Visual Studio 2013. When I want to make some changes in my application and re-build the setup, I have to run Visual Studio 2010 rather than Visual Studio 2013. The reason because I am using Visual Studio 2013, because I like this version and I am using Visual Studio 2010 just because for when I want to make some changes in my application.
I knew about WPF Applications when I finished made my application. And I am considering to uninstall Visual Studio 2010 and work with Visual Studio 2013. Do I have to re-write everything on my application's code to WPF? Because from what I heard, some functions in WPF are not the same in Windows Forms. And let's say that I successfully change my application from Windows Forms to WPF, what setup is provided with WPF ? So the other users could use my application on their computer?

i knew that Windows Forms setup has no longer available in Visual Studio 2013
Windows Forms is still available as a technology in Visual Studio 2013. If you are referring to the setup project type for creating an installer switching to WPF will not make it available for you.
So you can switch to Visual Studio 2013 and continue using Windows Forms but you will have to find another way to create an installer (and switching to WPF will not fix that problem).
In my opinion the ViX Toolset is very good for creating an installer. However, it is not "drag and drop" as the old Visual Studio Setup project type is.

#Kaoru You have to make some changes, Because some of functions in WPF and Win Forms are different.You don't need to change the Application Logic. But you have to change some modifications in UI and also code.
I heard a tool something called WF2WPF But I never used it and not found yet it.

If you are missing installer projects in VS 2013, then you may want to try Visual Studio Installer Projects Extension.
This preview release provides support for Visual Studio Installer projects in Visual Studio 2013. You can download the extension from the Visual Studio Gallery.

Related

Windows Forms application option seems to be missing?

I'm learning how to design a Windows Forms Application in Visual Studio 2017. The tutorial asks me to create a new project using the File -> New -> Project option and selecting 'Windows Forms Application' in the new project dialog box.
However, when I explore this option in Visual Basic, my New Project dialog window only has three options, and the Windows Forms Application is not one of them (see screenshot - attached).
Just wondered if anyone might be able to suggest how to get this option to appear? I have tried looking for the correct option in the Visual Studio installer, but I cannot find it their either.
Screenshot attached.
Because you need to install it.
Go to Visual Studio Installer from the start and check the checkbox .NET Desktop Development.
After that restart the VS 2017.
Open Visual Studio Installer, ‘Modify’ your installation and install the ‘.Net Desktop Development’ workload.
Add "Universal Windows Platform development" to your work load
Visual studio community

Is it possible to create a Windows Service through Visual Studio Code?

In my visual studio code project, I have generated an .exe file for the project and I'm trying create make my .exe as Windows Service.
From here and here, if I'm not mistaken, these solutions look like done by using Visual Studio instead of Visual Studio Code. Is it possible to create a Window Service through Visual Studio Code?
You cant,
Visual Studio Code is a code editor redefined and optimized for
building and debugging modern web and cloud applications. Visual
Studio Code is free and available on your favorite platform - Linux,
Mac OSX, and Windows.
It has no concept of an Windows Service
If you wish to create a Windows service you will have to use Visual Studio or something that can compile standard .net Windows application
Great comment from Ben Voigt
You're correct that Visual Studio Code doesn't have a concept of a
service, but that's because it is an editor not a compiler. The same
C# compiler installed as part of the .NET runtime, can build Windows
Services. And you can edit the windows service code in VS Code

Create service installer for existing C# console application in Visual Studio 2015 Community

I have an app (C# Console application). I know that in Visual Studio 2008 was the template for creating "Setup project".In Visual Studio 2015 Community this template is not available.
What tools inside VS 2015 could help me to pack my app as a Windows service (within Windows 7) and create installer for it?
You may want to check out this extension for vs2k15:
https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9
Also the learning curve is a bit steep but WiX is widely accepted as a very good solution for creating installers for windows apps. Read more about it here:
http://wixtoolset.org/

Visual studio Express 2013 is not showing web templates

I just installed visual studio 2013 on windows 8.1
When i go to new project then in the windows visual studio is not showing web templates like web pages, MVC 3,4,5 and other stuff like Windows form application and data bases. Visual studio is just showing phone apps development templates. why is this so because i have installed visual studio express with update 2 and i think its latest.
I tried many things like repairing update 2 and installed other asp.net templates for visual studio 2013 but i am not getting on my way...
Please suggest me solutions
The Express versions of Visual Studio come in flavors for desktop and web. It sounds like you might want Microsoft Visual Studio Express 2013 for Web. If you want the more full featured version, check out the commercial versions here.
There's also a few ways to get the commercial versions for free. If you're a small company, check out the BizSpark program. If you're a student, check out the DreamSpark program.
Both Web and Desktop can be installed at the same time. I have both installed on my Windows Server 2012 Box

Monogame 3.2 in Visual Studio 2013 doesn't work?

I've already edited the vstemplate file to change the version number from 11.0 to 12.0 like the answer to a similar question says on here, but that only makes Visual Studio crash after a create a Windows Store XAML Monogame project instead of giving me the version error. The project ends up getting created, but after I restart visual studio it doesn't want to open any of the source files even after I retarget the project to Windows 8.1. Im using visual studio 2013 express btw.
After a lot of problems, I found a better way of getting it to work.
First install Visual studio 2013 (or 2012, that will work too)
Download XNA 4.0 Refresh and install it
Download MonoGame 3.2 and install it
Then you can start using the MonoGame templates in Visual Studio without problems.
Haven't tried it for a Store app, but it fixed all my other problems with Visual Studio 2013 and MonoGame. I used Visual Studio 2013 Express for Desktop to test it.

Categories