Как установить devexpress visual studio
Элементы управления DevExpress не отображаются в панели инструментов. Я попытался запустить программу ToolboxCreator с ведением журнала, и это привело к:
- VS 2005 не найден
- VS 2008 не найден
- VS 2010 не найден
Похоже, что я могу вручную добавить элементы управления DevExpress в ToolBox, выполнив метод «Выбрать элементы . » и выбрав инструмент DevExpress, но это много элементов управления, и хотя я указал только установить элементы управления WinForm, это выглядит как и множество веб-элементов управления.
Я должен это делать так или есть лучший способ?
4 ответа
Так что, извините, более простого пути нет; Я предполагаю, что сами DevExpress предложили бы это, если бы они были.
Элементы управления DevExpress не отображаются (отключены) в панели инструментов Visual Studio:
Как только Target Framework была изменена на 4.0, элементы управления стали доступны в Toolbox.
Чтобы изменить целевую платформу в Visual Studio:
После этого вам нужно восстановить панель инструментов, щелкнув правой кнопкой мыши вкладку панели инструментов, где есть элементы управления. Visual Studio закроется автоматически и снова откроется после применения некоторых настроек. Теперь вы найдете все элементы управления devExpress, доступные на панели инструментов.
Я решил проблему следующим образом. Я запустил devexpress toolboxcreator. Но после этого на панели инструментов все еще не было никаких элементов управления devexpress. Затем я щелкнул правой кнопкой мыши на панели инструментов и выбрал «Сбросить панель инструментов». Возможно, это сработало бы, если бы я попробовал сначала, но это помогло мне!
Русские Блоги
DevExpressШироко используется в управлении контентом ECM Enterprises, управление затратами, надзором процессов, планированию производства, занимающих важное место в управлении информацией на предприятии предприятия / правительства. пройти черезDevExpress WPF ControlsВы можете создавать приложения XAML Basic с мощными интерактивными функциями, которые сосредоточены на потребностях современных клиентов и создают новое поколение новых поколений, которые поддерживают прикосновение. Будь то расширение программного обеспечения Office Office, или по данным, ориентированным на продукты бизнес-аналитики.
Подготовка
Предварительные условия
Ограниченность и переносимость
Уведомление: Вы должны попытаться восстановить код приложения и уменьшить отсутствующие вызовы API, могут найти альтернативную API с требуемой функцией.
Обновить пакет Nuget
Миграционное применение
Процесс
важный намекПеред миграцией вы должны создать резервную копию вашего проекта.
Создайте новый файл проекта
Замените существующий файл проекта в недавно сгенерированный файл проекта.
Переключатель devexpress Ссылки от GAC до Nuget
Добавьте пакет Nuget Devexpress:
- Зарегистрировать свой локальный илионлайнDevExpress NuGet Feed。
- Найти и установить devexpress.windowsdesktop.wpf и defexpress.windowsdesktop.wpf.themes.all пакет.
После добавления этих пакетов к проекту Visual Studio загрузится и отображает управление WPF DEVEXPRESPS в его панели инструментов.
Сканирование Следуйте от Vexpress Китайский WeChat Открытый аккаунт, своевременно получить последние разработки и последнюю информацию
как добавить devexpress к visual studio 2012
Я скачал файл DevExpress Universal 12.2 Exe, и он устанавливает 2 папки на мой компьютер. это папки devexpress dxperience 12.2 и dxteeme 12.2. Когда я открываю visual studio express 2012, я не вижу элементов управления devexpress? Я попытался восстановить свою установку devexpress, нажав кнопку SETUP.
3 ответа
В версиях Visual Studio до 2012 года можно было открыть окно инструмента источник данных, нажать кнопку Добавить источник данных, выбрать объект и перейти по иерархии пространства имен проекта к классу (бизнес-объекту). Visual Studio 2012, из коробки, больше не позволяет вам просто выбрать класс.
Откройте Панель инструментов windows на Visual Studio, щелкните правой кнопкой мыши и выберите пункт выбранные элементы. Затем просмотрите ваши библиотеки DLL devexpress, вы можете найти эти библиотеки DLL в папках devexpress, выбрать, какие элементы управления dev вам понадобятся, например XtraGrid.dll, XtraEditors.dll и т. д..
Эти 2 статьи базы знаний также могут вам помочь:
Вам нужно добавить их в качестве ссылки в свой проект. Просто найдите .dll, которые были загружены, и добавьте их в свой проект.
Я работал в Visual Studio, который имеет DevExpress. Мой проект теперь не распознает DevExpress, поэтому у меня теперь есть 102 ошибки в таких строках, как: GroupHeader1.GroupFields.Add(New DevExpress.XtraReports.UI.GroupField(name)) Friend WithEvents XrPageInfo1 As.
Ранее я использовал Visual Studio 2010 с visual SVN в качестве элемента управления версиями. Теперь, когда я обновился до Visual Studio 2012, я столкнулся с проблемой добавления SVN в качестве элемента управления версиями (до VS 2012). По умолчанию существует только Team Foundation. Любая помощь в.
Похожие вопросы:
Можно ли добавить веб-ссылку на мой проект в Visual Studio 2012? В Visual Studio 2010 это было возможно, нажав кнопку Advanced в диалоге Add Service Reference, как написано на этой странице.
Я скачал и установил Visual Studio Express 2012 для телефона Windows. Есть ли способ, чтобы иметь возможность кодировать WPF приложения для Windows тоже? Могу ли я обновить Visual Studio, потому что.
Я уже установил Crystal Reports для Visual Studio 13.0.5 на своей машине, но не вижу возможности добавить новый отчет Crystal в свой проект в Visual Studio 2012. Какой шаг я упускаю? Единственный.
В версиях Visual Studio до 2012 года можно было открыть окно инструмента источник данных, нажать кнопку Добавить источник данных, выбрать объект и перейти по иерархии пространства имен проекта к.
Я работал в Visual Studio, который имеет DevExpress. Мой проект теперь не распознает DevExpress, поэтому у меня теперь есть 102 ошибки в таких строках, как: GroupHeader1.GroupFields.Add(New.
Ранее я использовал Visual Studio 2010 с visual SVN в качестве элемента управления версиями. Теперь, когда я обновился до Visual Studio 2012, я столкнулся с проблемой добавления SVN в качестве.
У меня на компьютере установлены Visual studio 2008 и Visual studio 2012, и я хочу установить DevExpress DXperience 12.1.4 , но только с Visual studio 2008. Есть ли какой — нибудь способ сделать это.
Я пытаюсь добавить TypeScript к существующему: веб-сайт (не веб-приложение) веб-формы (не MVC) Visual Studio 2012 Я думаю, что на фундаментальном уровне проблема заключается в том, что веб-сайт.
Во-первых, я установил версию DevExpress 13.2.5. После этого я установил Visual Studio Community 2013 edition. Но я не вижу пункта меню DevExpress в меню Visual Studio IDE. Как я могу принести пункт.
You need to register the DevExpress NuGet feed as a package source to install DevExpress packages through NuGet.
-
You can access DevExpress NuGet packages with NuGet Feed URL or authorization key. Refer to the following topic for more information: Obtain Your NuGet Feed Credentials.
To register the DevExpress NuGet feed as a package source in Visual Studio, invoke the Visual Studio Options dialog (Tools → Options). In this dialog, locate the Package Manager item and add the DevExpress Feed to the package source as shown below.
If you use a NuGet Feed URL, specify it as the package source.
Install Packages Using NuGet Package Manager
After you register the NuGet Feed, use the NuGet Package Manager to install DevExpress NuGet packages:
In the Solution Explorer, right-click the project and select Manage NuGet Packages in the invoked drop-down menu.
If you registered the DevExpress NuGet feed with an authorization key, the login form is displayed when you invoke the NuGet Package Manager window for the first time. Enter your credentials as follows:
If you want to remove saved credentials, go to Control Panel → User Accounts → Credential Manager → Windows Credentials and delete the following records:
Select the DevExpress NuGet feed as a package source.
Locate the package in the list of available packages or use the embedded search.
You should enable the Include prerelease option to display specific DevExpress packages that are available as a CTP version.
Click Install next to the package you want to install.
Use Package Manager Console
You can also use the Package Manager console (Tools → NuGet Package Manager → Package Manager Console) to find, install, or update packages. Use the Package source drop-down list to specify the DevExpress NuGet feed as a package source.
The sample below illustrates different console inputs which allow you to manage NuGet packages.
Refer to the Microsoft documentation for more information: Package Manager Console.
The steps below describe how to use this project template.
In the Configure your new project window, specify the project name and location, and click Create.
- Bootstrap - Creates a lightweight application based on the Bootstrap 4 starter template.
- Material - Creates a responsive application that has a navigation layout based on the Drawer control and is styled with a custom theme using color swatches. Refer to this blog post for more information.
Click Create. Visual Studio creates a project with the DataGrid control. You can also add other controls to a project.
Add DevExtreme to an Existing Project
To configure an existing project to use DevExtreme-based controls, add DevExtreme resources to the project and set up a layout (complete project configuration).
Add DevExtreme Resources
Open your project in Visual Studio (see supported versions).
Right-click the project in the Solution Explorer window and select the Add DevExtreme to the Project command in the menu.
In the invoked dialog box, click OK.
It takes a few seconds for Visual Studio to complete the following operations:
This process is logged in the Output window.
Complete the Project Configuration
To complete project configuration, make sure that client-side resources are linked in the project. You can use the DevExtreme layout file where the resources are already linked or link the resources by yourself.
Use the DevExtreme Layout File
The DevExtreme layout file (_DevExtremeLayout.cshtml) is added to the project when you click the Add DevExtreme to the Project menu command. This file contains links to all the client-side resources.
To use this layout, go to the _ViewStart.cshtml file (located in the Pages or View/Shared folder) and change _Layout to _DevExtremeLayout .
Link the Resources in the Project
Resources are usually linked in a project’s layout - the _Layout.cshtml file located in the Views/Shared folder (for MVC projects) or Pages folder (for Razor Pages).
Modify this file as follows:
Add the following CSS and script links to the section:
If the layout file contains jQuery links that were added earlier (they may be placed in the containers), then remove them.
Environment and Requirements
Download and Installation
Download the DevExtreme installer (.exe file) here and run it. The setup wizard will guide you through the installation steps.
Start a New Project
Add or Upgrade the Resources in an Existing Project
Using Visual Studio Wizards
See this topic for details.
Open your project in Visual Studio.
Add the DevExtreme.AspNet.Mvc.dll assembly to References. You can find the assembly in %ProgramFiles(x86)%\DevExpress 18.2\DevExtreme\System\DevExtreme\Bin\AspNet if you did not change the default installation path. Alternatively, you can install the DevExtreme.AspNet.Mvc NuGet package from the DevExpress NuGet feed.
Add the DevExtreme.AspNet.Mvc namespace to the Views\Web.config file:
Copy the DevExtreme scripts and CSS files:
- from %ProgramFiles(x86)%\DevExpress 18.2\DevExtreme\Sources\Lib\css to the Content folder
- from %ProgramFiles(x86)%\DevExpress 18.2\DevExtreme\Sources\Lib\js to the Scripts folder
Create a DevExtremeBundleConfig.cs file in the AppStart folder and configure bundles for the DevExtreme resources in it:
DevExtremeBundleConfig.cs
Register the bundles in the Global.asax.cs file:
Open the Views\Shared\_Layout.cshtml file, find a jQuery bundle reference in the section and move it to the . If there is no reference, return to the DevExtremeBundleConfig.cs file (step 6) and uncomment the lines that add jQuery to the DevExtreme script bundle. After that, reference the DevExtreme bundles in the section.
To upgrade your project, update the NuGet packages and replace the files mentioned in steps 2 and 5 with their new versions.
Open the console and navigate to your project's directory:
Add one of the following NuGet package sources:
DevExpress NuGet Feed
Obtain your NuGet feed URL and run the following command. If nuget is not recognized, install the NuGet CLI using these instructions.
Local Source
In both cases, you can change the %AppData%\NuGet\NuGet.config file as follows instead of running commands in the NuGet CLI:
Install the DevExtreme.AspNet.Data and DevExtreme.AspNet.Core packages for your project:
Open the bower.json file and reference the jquery, devextreme, and devextreme-aspnet-data packages in the "dependencies" section. In addition, change the bootstrap version to 3.4.1 or later because earlier versions contain known XSS vulnerabilities (report 1, report 2) or do not support jQuery v3. If bower.json is absent, run the bower init command.
Install the bower packages:
Open the _Layout.cshtml file located in the Views/Shared folder (for conventional Razor views) or Pages folder (for Razor Pages) and move the jQuery links in the containers from the to the section. If there are no jQuery links, add one to the section manually.
Link the following styles and scripts after the jQuery links:
Import the DevExtreme.AspNet.Mvc namespace in the _ViewImports.cshtml file located in the same folder:
In the Startup.cs file, amend the ConfigureServices method as follows to ensure proper JSON serialization:
To upgrade your project, update the NuGet and bower packages from steps 3 and 4.
Sample Applications
Первый шаг в создании программы для просмотра изображений — это создание проекта приложения Windows Forms. When you create a picture viewer, the first step is to create a Windows Forms App project.
Откройте Visual Studio 2017. Open Visual Studio 2017
В строке меню выберите Файл > Создать > Проект. On the menu bar, choose File > New > Project. Диалоговое окно должно выглядеть так же, как на следующем снимке экрана. The dialog box should look similar to the following screenshot.
Дополнительные сведения см. в разделе Установка Visual Studio. For more information, see the Install Visual Studio page.
Запустите Visual Studio 2019. Open Visual Studio 2019
На начальном экране выберите Создать проект. On the start window, choose Create a new project.
В поле поиска окна Создание проекта введите Windows Forms. On the Create a new project window, enter or type Windows Forms in the search box. Затем в списке Тип проекта выберите Рабочий стол. Next, choose Desktop from the Project type list.
Затем нажмите кнопку Изменить в Visual Studio Installer. After that, choose the Modify button in the Visual Studio Installer. Вам может быть предложено сохранить результаты работы; в таком случае сделайте это. You might be prompted to save your work; if so, do so. Выберите Продолжить, чтобы установить рабочую нагрузку. Next, choose Continue to install the workload.
В поле Имя проекта окна Настроить новый проект введите PictureViewer. In the Configure your new project window, type or enter PictureViewer in the Project name box. Затем нажмите Создать. Then, choose Create.
Visual Studio создает решение для приложения. Visual Studio creates a solution for your app. Решение играет роль контейнера для всех проектов и файлов, необходимых приложению. A solution acts as a container for all of the projects and files needed by your app. Более подробно эти термины поясняются далее в этом учебнике. These terms will be explained in more detail later in this tutorial.
Сведения о проекте приложения Windows Forms About the Windows Forms App project
Среда разработки содержит три окна: главное окно, Обозреватель решений и окно Свойства. The development environment contains three windows: a main window, Solution Explorer, and the Properties window.
Если какое-либо из этих окон отсутствует, можно восстановить макет окон по умолчанию. If any of these windows are missing, you can restore the default window layout. В строке меню выберите Окно > Сброс макета окна. On the menu bar, choose Window > Reset Window Layout.
Если открыты какие-либо другие окна, закройте их с помощью кнопки Закрыть (x) в верхнем правом углу. If any other windows are open, close them by choosing the Close (x) button in their upper-right corners.
В строке меню выберите Файл > Сохранить все. On the menu bar, choose File > Save All.
Другой вариант — нажать кнопку Сохранить все на панели инструментов, как показано на рисунке ниже. As an alternative, choose the Save All button on the toolbar, which the following image shows.
Visual Studio автоматически заполняет имя папки и имя проекта, а затем сохраняет проект в папке проектов. Visual Studio automatically fills in the folder name and the project name and then saves the project in your projects folder.
Дальнейшие действия Next steps
Step 1: Create a Windows Forms App project
When you create a picture viewer, the first step is to create a Windows Forms App project.
Open Visual Studio 2017
On the menu bar, choose File > New > Project. The dialog box should look similar to the following screenshot.
New project dialog box
For more information, see the Install Visual Studio page.
Open Visual Studio 2019
On the start window, choose Create a new project.
On the Create a new project window, enter or type Windows Forms in the search box. Next, choose Desktop from the Project type list.
After that, choose the Modify button in the Visual Studio Installer. You might be prompted to save your work; if so, do so. Next, choose Continue to install the workload.
In the Configure your new project window, type or enter PictureViewer in the Project name box. Then, choose Create.
Visual Studio creates a solution for your app. A solution acts as a container for all of the projects and files needed by your app. These terms will be explained in more detail later in this tutorial.
About the Windows Forms App project
The development environment contains three windows: a main window, Solution Explorer, and the Properties window.
If any of these windows are missing, you can restore the default window layout. On the menu bar, choose Window > Reset Window Layout.
You can also display windows by using menu commands. On the menu bar, choose View > Properties Window or Solution Explorer.
If any other windows are open, close them by choosing the Close (x) button in their upper-right corners.
Properties window In this window, you can change the properties of items that you choose in the other windows. For example, if you choose Form1, you can change its title by setting the Text property, and you can change the background color by setting the Backcolor property.
On the menu bar, choose File > Save All.
As an alternative, choose the Save All button on the toolbar, which the following image shows.
Visual Studio automatically fills in the folder name and the project name and then saves the project in your projects folder.
Next steps
To go to the next tutorial step, see Step 2: Run your app.
To return to the overview topic, see Tutorial 1: Create a picture viewer.
Создание проекта Create a project
Откройте Visual Studio 2017. Open Visual Studio 2017.
В верхней строке меню последовательно выберите Файл > Создать > Проект. From the top menu bar, choose File > New > Project.
Запустите Visual Studio 2019. Open Visual Studio 2019.
На начальном экране выберите Создать проект. On the start window, choose Create a new project.
В поле Имя проекта окна Настроить новый проект введите HelloWorld. In the Configure your new project window, type or enter HelloWorld in the Project name box. Затем нажмите Создать. Then, choose Create.
Новый проект открывается в Visual Studio. Visual Studio opens your new project.
Создание приложения Create the application
Добавление кнопки на форму Add a button to the form
Щелкните значок Закрепить, чтобы закрепить окно Панель элементов. Choose the Pin icon to dock the Toolbox window.
Выберите элемент управления Кнопка и перетащите его на форму. Choose the Button control and then drag it onto the form.
Добавление метки на форму Add a label to the form
Выберите элемент управления Метка в окне Панель элементов, а затем перетащите его на форму и расположите под кнопкой Нажмите это. Select the Label control from the Toolbox window, and then drag it onto the form and drop it beneath the Click this button.
Добавление кода на форму Add code to the form
В окне Form1.cs [Проект] дважды щелкните кнопку Нажмите это, чтобы открыть окно Form1.cs. In the Form1.cs [Design] window, double-click the Click this button to open the Form1.cs window.
(Кроме того, можно развернуть узел Form1.cs в обозревателе решений, а затем выбрать Form1.) (Alternatively, you can expand Form1.cs in Solution Explorer, and then choose Form1.)
Запуск приложения Run the application
Будет выполнено несколько операций. Several things will happen. В интегрированной среде разработки Visual Studio откроются окна Средства диагностики и Вывод. In the Visual Studio IDE, the Diagnostics Tools window will open, and an Output window will open, too. Кроме того, вне этой среды откроется диалоговое окно Form1. But outside of the IDE, a Form1 dialog box appears. Оно будет содержать вашу кнопку Нажмите это и текст Label1. It will include your Click this button and text that says Label1.
Закройте диалоговое окно Form1, чтобы завершить работу приложения. Close the Form1 dialog box to stop running the app.
Следующие шаги Next steps
Для получения дополнительных сведений перейдите к следующему руководству: To learn more, continue with the following tutorial:
Нет C++ Windows Forms
Странная прозрачность в Windows Forms
У меня возникла странная проблема с Windows Forms. Есть форма, на которой стоит объект PictureBox.
Создание приложения Windows Forms
Здравствуйте. В программировании ничего не понимаю, но работники нашей конторы плохо работают с.
Тут много проблем, например ваша тема не в том разделе.
Основная причина, по которой я спрашиваю об этом, заключается в том, что (мне и другим) очень трудно использовать редакторы кода (такие как VS Code и Atom).
Я надеюсь, что это хороший вопрос.
Обходной путь заключается в использовании классического приложения WinForms и приложения CORE WinForms в одном решении с одинаковым корневым пространством имен.
Для добавления новых проектируемых элементов, каждый раз, когда вы хотите добавить новый элемент, вам нужно добавить его в классический проект, затем переместить 3 сгенерированных файла (.cs,.designer.cs,.resx) в приложение CORE, а затем добавить их как ссылку на классическое приложение.
Для редактирования, поскольку они доступны в виде ссылки в классическом приложении, отредактируйте их в конструкторе классического приложения. Все изменения видны в приложении CORE.
Создайте приложение Windows Forms.NET Core. (См. Шаги и требования.) Откройте проект в Visual Studio и сохраните проект, включая решение. Щелкните правой кнопкой мыши "Решение" и "Добавить новый проект" → "Из шаблонов", выберите проект Windows Forms, назовите его тем же именем, что и Core app + ".Designer", и нажмите "ОК". В свойствах проекта Classic Framework установите для пространства имен по умолчанию такое же пространство имен по умолчанию для основного приложения. Сотрите все существующие файлы в обоих проектах и сохраните изменения.
Добавление формы или UserControl
Каждый раз, когда вы хотите добавить новую форму или пользовательский элемент управления, вам необходимо выполнить следующие шаги:
В классическом рамочном проекте Add New Item Выберите форму Windows или пользовательский элемент управления Сделайте некоторые изменения в desginer, например, измените размер формы, чтобы сгенерировать файл resx и сохранить. В обозревателе решений щелкните правой кнопкой мыши форму и выберите "Вырезать". В основном приложении вставьте все элементы (форма, дизайнер, resx). В классическом приложении щелкните правой кнопкой мыши и выберите "Добавить существующий элемент". Откройте диалоговое окно открытия в основной папке приложения и выберите эти 3 добавленных файла, щелкните раскрывающийся список рядом с кнопкой "Добавить" и выберите "Добавить как ссылку". Скомпилируйте решение. Обновите файлы в классическом приложении, используя Расширение вложенности файлов Mad Kristensen или отредактировав файл проекта.
Теперь, когда вам нужно использовать Designer в одном из файлов базовой формы или UserControl, просто откройте связанные файлы в проекте Classic Framework с помощью Classic Windows Forms Designer.
Читайте также: