Как создать exe файл в visual studio 2019
Перейти к содержимому

Как создать exe файл в visual studio 2019

  • автор:

How to create setup.exe file for window form application in visual studio 2019?

enter image description hereenter image description hereI created one window form application in visual studio 2019. Now I can’t find any solution regarding how to create installer for that window form application.

patel vinay's user avatar

3 Answers 3

Using Visual Studio Installer (look @Hans Passant comment for the download).

I will make a simple tutorial:

1 — Right click on Solution of your project > Add > New Project > Write on SearchBar «Setup» > Setup Project > Next > Create;

enter image description here

2 — Application Folder > Add > Project Output > Primary Output;

3 — User’s Desktop > Create New Shortcut to Primary Output;

4 — Rename your Shortcut for the name of your App;

5 — User’s Program Menu > Create New Shortcut to Primary Output;

6 — Rename your Shortcut for the name of your App;

7 — Application Folder > Add all the files needed for the operation of the application.

Как создать exe файл в visual studio 2019

Gray Pipe

Лучший отвечающий

Вопрос

Все перепробовал и пересобирать решение и проект, комплируется код исключительно в DLL.

Я так полагаю что студия думает будто я буду самолично эту библиотеку вызывать через командную строку чтобы ей воспользоваться или что.

Написал простенькую программу типа Hello World.

При компиляции получаю вот это
1>—— Перестроение всех файлов начато: проект: FirstProgramm, Конфигурация: Debug x64 ——
1>FirstProgramm -> C:\Users\Юлиан Дель-Кампо\source\repos\Hello world\bin\x64\Debug\netcoreapp2.1\FirstProgramm.dll
========== Перестроение всех проектов: успешно: 1, с ошибками: 0, пропущено: 0 ==========

Что делать, как получить ексешник?

Ответы

Да, " dotnet app.dll". Делать переход в каталог вроде не нужно, так как он прописывается в PATH.

"а люди, придумавшие такой способ старта приложения не думали каково будет конечному пользователю"

Обычно создается инсталлятор, который создает ярлык на рабочем столе или в системном меню. Пользователь просто нажимает на ярлык и не задумывается, какой именно тип файла запускается.

"раз в студии изначально отсутсвует компиляция в exe как таковая, значит либо мир с ума сходит либо я чего то не недопонимаю."

Прочитайте внимательно статью, ссылку на которую я дал. В .NET Core "компиляция" (точнее построение) — это процесс получения DLL, не привязанной к конкретной ОС. Получение исполняемых файлов, заточенных под конкретную ОС, это отдельный процесс, называемый публикацией. Он отделен от построения, так как на этапе отладки без разницы, что именно запускать; заточенные под конкретные ОС пакеты нужны только на этапе развертывания готового приложения.

Вроде это не сильно отличается от Java, где компилятор стандартно выдает кроссплатформенный JAR-файл, а для получения EXE нужны дополнительные действия?

https://amdy.su/wp-admin/options-general.php?page=ad-inserter.php#tab-8

How to Create a Setup file in Visual Studio 2019 – C# or VB.Net

Today we are going to be talking about how to create a setup file in visual studio 2019! This setup file is a packaged version of your application with a wizard that will guide the user through the entire installation process. This will allow the user to install your latest build with ease!

If you have ever written an application and wanted to create an MSI or EXE installer then this is the guide for you! I’m going to go step by step and show you exactly how to create an installer!

Install Wizard

The entire process is pretty easy and simply requires a visual studio extension that was developed by Microsoft. This extension is not a 3rd party product nor is it terribly complicated to use.

Alright, so let’s get right into it!

The first thing we’re going to need to do is to download the required extension. The extension we will need is called “Microsoft Visual Studio installer project”

You access the Manage Extensions page by clicking on Extensions and then Manage Extensions at the top

Once you are on the Manage Extensions page, search for this extension. It is one of the most downloaded extensions, so it should be at the top of the list. Go ahead and download it, then we can move on to the next step!

Next, we need to restart visual studio to get it to install the extension. Once visual studio closes this little extension installer will install the new extension.

Once the extension installer comes up hit modify and let it progress through. This can take a second to install but it doesn’t take terribly long. It should only take about a minute or so.

VS Extension installer

alright, once that has finished installing, you can open visual studio again.

Now that you have Visual studio open again, you want to open the project that you would like to create the installer for. because it’s going to be a second project inside the same solution.

alright, so now that we’ve got our extension ready to go we are going to right-click on the solution and add a new project. This new project is going to be the setup project. Search for the setup project template and choose that as your new project type.

Setup Project Template

Once you select Setup Project, give it a name and then click create. This will create a second project under your Solution with the name you provided.

If you open that project, you will be greeted with the setup project’s main screen as shown below.

Setup project

Inside of this project, there will be 3 folders:

  • Application folder: This is where your exe and assembly files will be placed.
  • Desktop folder: This will be where we put items destined for the user’s desktop.
  • User’s Program Menu: This will be where we put items to be added to the user’s program menu.

To configure your new setup project follow these steps

    Add a new project output to the application folder.

Select the Application Folder and then right click and select “Add a new Project Output”. This will copy over all of your dll’s and main exe from your other project. This will look just like your typical Debug folder contents. Add -> Project Output -> “Primary Output”

Right click the Primary Output item that was added when you added the new project output to the Application Folder. Select “Create Shortcut” to create a new shortcut that we will later move to the desktop section.

Right click again, select Add and choose to add a file. Browse for an ico file and import it.

Right click on the new shortcut we have created, select “Properties Window”, from here change the icon by clicking browse on the right. Browse into your Application Folder and choose the new icon.

Drag your new shortcut over to the User’s Desktop folder on the left side of the split-screen. This will make the wizard create that shortcut on the user’s desktop when the application is installed.

Now that you have the desktop shortcut in place, we need to create one more identical shortcut. Follow the same process to create the shortcut and set it’s icon. After you have the new setup created, right click on User’s Programs Menu and select to create a new folder. Create a folder for your shortcut to be under and then move your new shortcut into that folder. Now the User’s Programs Menu will have a shortcut created in it.

From this point, I would update a few properties of the setup project.
Author: company or person who wrote the application
Description: simple description about the app
Manufacturer: Used for the install location.
Those are the only properties I updated in my example.

If you right click the Project and select Properties, you can then click on a button that says “Prerequisites…” This will bring up a screen where you can choose to have certain prerequisites such as certain .net framework versions install with your application.

Right-click on the project and choose build. Once it finishes building, right-click again and select “Open Folder in File Explorer”. This will bring up a folder with your install files in it!

Congratulations! That is all there is to it! At this point, you should have a working setup project! I hope this guide was helpful! I’ll see you in the next one!

как создать Exe файл в Visual Studio 2019 C

как создать Exe файл в Visual Studio 2019 C

Greetings, fellow bloggers and readers! Today, I’m excited to kick off my blog with a topic that I’m particularly passionate about: как создать Exe файл в Visual Studio 2019 C. I believe that как создать Exe файл в Visual Studio 2019 C and I’m looking forward to sharing my thoughts with you. But first, I wanted to introduce myself and hear a little bit about you. So, let’s get to know each other a bit better! exe visual — cpp c microsoft — studio

Main D0 Bf D0 Be D0 B4 D0 B1 D0 Be D1 80 D0 Ba D0 B0 D0 B3 D0 B0 D0 B3 D0 B0 D1 80 D0 B8 D0 Bd

Main D0 Bf D0 Be D0 B4 D0 B1 D0 Be D1 80 D0 Ba D0 B0 D0 B3 D0 B0 D0 B3 D0 B0 D1 80 D0 B8 D0 Bd

Main D0 Bf D0 Be D0 B4 D0 B1 D0 Be D1 80 D0 Ba D0 B0 D0 B3 D0 B0 D0 B3 D0 B0 D1 80 D0 B8 D0 Bd Создание проекта в visual studio 2019. Когда вы запустите visual studio 2019, вы должны увидеть диалоговое окно, которое выглядит следующим образом: Рисунок 2 – Диалоговое окно «Начало работы» visual studio 2019. Как создать exe файл в visual studio 2019 c. Мы можем по отдельности использовать текстовый редактор и компилятор, вручную компилировать и запускать программу в консоли или терминале, однако более удобный способ представляет.

крупнов тв Урок #20. visual studio где exe. Как сделать exe файл в visual studio. Как скомпилировать cpp в exe.Уроки по. Из этой статьи вы узнаете, как преобразовать код c (cpp) в исполняемый exe файл. Если для написания кода вы используете коммерческую версию microsoft visual studio, у нее есть простой в использовании. Если среда visual studio открыта, выберите пункт Сервис > Получить средства и компоненты ; откроется visual studio installer. visual studio installer можно также открыть из меню "Пуск". Здесь можно выбрать рабочие. В visual studio откройте меню Файл и выберите Пункт Создать > проект , чтобы открыть диалоговое окно Создание проекта . Выберите шаблон Консольное приложение с тегами c , windows и Консоль, а затем.

%d0%a2%d1%80%d0%b5%d0%b9%d0%bb%d0%b5%d1%80 %d0%ba %d1%84%d0%b0%d0%bd%d1%84%d0%b8%d0%ba%d1%83 %22%d0%af %d0%a0%d0%be%d0%b1%d0%b5%d1%80%d1%82 %d0%9f%d0%b0%d1%82%d1%82%d0%b8%d0%bd%d1%81%d0%be%d0%bd %d0%b8%d0%bb%d0%b8 %d0%9a%d0%b

%d0%a2%d1%80%d0%b5%d0%b9%d0%bb%d0%b5%d1%80 %d0%ba %d1%84%d0%b0%d0%bd%d1%84%d0%b8%d0%ba%d1%83 %22%d0%af %d0%a0%d0%be%d0%b1%d0%b5%d1%80%d1%82 %d0%9f%d0%b0%d1%82%d1%82%d0%b8%d0%bd%d1%81%d0%be%d0%bd %d0%b8%d0%bb%d0%b8 %d0%9a%d0%b

check out my new videos on my official channel here gummybearintl shop at hello guys, today i will show you the perfect and simple solution for efi network 0 for ipv4 ipv6 boot failed lenovo boot failed lenovo | cheking media | efi network 0 for ipv4 boot failed freshcomchannel dash as fast as you can through the subway and dodge the oncoming trains. help jake, tricky and the rest of the crew escape me name =t3law0u i hope jou fun. Играю в parappa the papper 2 . Все игры и файлы которые использовались в моих видео находятся на этом сайте: it’s random goofy kinda voice reveal. rukcode.ru тут можно купить мою книгу по python. Интересуетесь изучением языка программирования python? creado con wondershare filmora.

Conclusion

After exploring the topic in depth, it is clear that post offers valuable knowledge regarding как создать Exe файл в Visual Studio 2019 C. Throughout the article, the writer demonstrates a deep understanding on the topic. Especially, the section on Z stands out as particularly informative. Thanks for taking the time to the post. If you need further information, feel free to contact me via social media. I look forward to hearing from you. Additionally, below are some relevant posts that might be helpful:

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *