La mayor innovación en Visual Studio 2022 es que es una aplicación de 64 bits por primera vez. Hasta ahora, el entorno de desarrollo solo estaba disponible en una versión de 32 bits y su consumo de recursos estaba limitado a unos cuatro GB de memoria principal. El cambio de 32 a 64 bits acelera el entorno de desarrollo, especialmente al abrir carpetas de proyectos más grandes. Todavía es posible compilar, depurar y probar aplicaciones de 32 y 64 bits en Visual Studio.
Los desarrolladores deben revisar todas las extensiones.
Sin embargo, todas las extensiones de Visual Studio deben revisarse, ya que hay numerosos cambios importantes en el SDK de Visual Studio. Incluso si Microsoft ya había pedido a la comunidad de desarrolladores que adaptara las extensiones en junio de 2021, muestra unBusque en Visual Studio Marketplaceque muchas extensiones aún no se han convertido. Esto incluye importantesExtensiones del propio Microsoft, como .NET Portability Analyzery extensiones habilitadas para Visual Studio 2022. Solo 542 de las muchas miles de extensiones se encuentran actualmente en Visual Studio Marketplace.ya compatible con la versión de 64 bits en Visual Studio MarketplaceVisual Studio 2022 marcado (ver Fig. 1).
IntelliSense y más allá: sugerencias de toda la línea
El soporte de entrada de IntelliSense no solo ha existido desde la primera versión de Visual Studio en 1997, sino que también estuvo presente en productos anteriores (Visual C++, Visual Basic y Visual FoxPro). IntelliCode ha estado disponible desde 2018Función adicional que resalta los miembros de clase de uso frecuente del contexto.
En Visual Studio 2022, Microsoft no solo hace sugerencias para identificadores individuales por primera vez, sino también para líneas de programa completas basadas en el contexto actual (ver Fig. 2). Los desarrolladores aceptan una sugerencia tocando dos veces. Las sugerencias se basan en el entrenamiento de IA con el código fuente de medio millón de proyectos de código abierto en GitHub.Detalles sobre esta característica avanzada de IntelliCodese puede encontrar en una entrada de blog.
También hay algunas innovaciones en las funciones de refactorización de C# en Visual Studio 2022, que incluyen Sincronizar espacios de nombres, Introducir parámetro, Rastrear fuente de valor, Convertir a espacio de nombres con ámbito de archivo.
Cambie las aplicaciones en ejecución con Hot Reload
La recarga en caliente es lo que Microsoft llama la capacidad del entorno de desarrollo para cambiar una aplicación en ejecución. El desarrollador puede usarlo para realizar cambios en el código del programa en el momento del desarrollo sin tener que reiniciarlo y perder su estado. Básicamente, Hot Reload funciona cuando se desarrollan aplicaciones con .NET Framework, .NET Core, .NET 5 y .NET 6, tanto con C# como con Visual Basic .NET. Las versiones anteriores de .NET solo pueden usar la recarga en caliente cuando se inician en el depurador.
Anfitrión el 23 de noviembre de 2021Heisey el Dr. La empresa de Holger SchwichtenbergIT-Visions.de un evento en línea para el nuevo lanzamiento de LTS: .NET 6 es la base de todos los programas que se basan en la plataforma de desarrollo de Microsoft. La conferencia en línea proporciona una visión general y ayuda a sopesar si el cambio ya vale la pena.
Se trata de esto:
- Migración: cuándo y cómo migrar a .NET 6
- ¿Qué hay de nuevo en .NET 6?
- Obtenga información sobre las nuevas funciones en ASP.NET Core 6 y Blazor 6
- Principales novedades en C# 10
- Utilice WinUI 3 en sus propias aplicaciones
- Outlook en .NET 7
Un día completo de experiencia .NET
expulsadoExpertos en .NET y C# presentan las novedades de la versión LTS online por un díay responda las inquietudes de los participantes sobre el nuevo lanzamiento y la próxima migración en las charlas y rondas de preguntas directas. Además de siete conferencias especializadas de 45 minutos, el Dr. Holger Schwichtenberg una sesión de preguntas y debate. El 25 de noviembre podrás profundizar lo aprendido en un taller práctico con él (el taller está agotado, los interesados pueden ponerse en lista de espera).
Las entradas para la conferencia están disponibles por 199 EUR (más 19 % de IVA) y hay descuentos disponibles para grupos, alumnos y estudiantes previa solicitud. Puede encontrar más información en el programa de la conferencia.
Solo .NET 6 puede cambiar una aplicación incluso si el depurador no se está ejecutando. Tambiénotras características de Hot Reload dependen de .NET 6. Visual Studio 2022 será para .NET 6, elfue lanzado junto con el entorno de desarrollo, y se requiere C# 10: el predecesor Visual Studio 2019 no puede compilar .NET 6 y C# 10.
Hot Reload también funciona para aplicaciones nativas de C++– al contrario de lo que se menciona en la entrada del blog, no solo con MSBuild, sino también con CMake. Los desarrolladores de C++ también pueden usar unsoporte extendido para C++ 20y detección de desreferencia de puntero mejorada.
Además de Hot Reload, las aplicaciones basadas en XAML también tienen una vista previa en vivo en la interfaz gráfica que funciona con WPF, así como con WinUI, UWP, Xamarin Forms y aplicaciones GUI basadas en MAUI. Microsoft ha revisado el diseñador XAML para WPF en .NET Framework, así como el editor Razor para ASP.NET Core y Blazor. Especialmente en las aplicaciones Blazor, el resaltado de sintaxis y la sangría automática funcionan mejor y más rápido. Algunos controles de WPF (DataGrid, ListBox y ListView) ahora muestran datos de muestra. Esto se puede apagar bajoHerramientas>Opciones>Diseñador XAML.
Cambios en las pruebas y la depuración
Al depurar, los desarrolladores ahora pueden usar el punto de interrupción dependiente para definir puntos de interrupción en los que el depurador solo se detiene si se ha alcanzado otro punto de interrupción de antemano. También puede definir un punto de interrupción que solo detenga la ejecución del código una vez y luego se elimine. Además, los puntos de interrupción ahora se pueden mover fácilmente con el mouse usando arrastrar y soltar.
En las pruebas unitarias, es útil que ahora pueda usar el código de prueba paraMostrar en el Explorador de pruebaspuede encontrar la entrada adecuada en la lista de pruebas. Si bien las pruebas de carga web ahora también se pueden crear con Visual Studio 2022, Microsoft anunció en las notas de la versión que la grabadora para la prueba de IU codificada, que se suspendió en abril de 2019ya no migró al nuevo IDE de 64 bits.
proyectos JavaScript
Visual Studio ha proporcionado durante mucho tiempo un editor para JavaScript y TypeScript, pero hasta ahora solo había plantillas de proyecto para usar estos lenguajes para interfaces junto con proyectos backend basados en .NET. Por primera vez en Visual Studio 2022, Microsoft también proporciona plantillas de proyecto independientes para proyectos web de clientes. en diálogoCrear un nuevo proyectohay plantillas para los marcos web React, Vue.js y Angular (ver Fig. 3). Sin embargo, al crear un proyecto, Visual Studio pregunta si también está disponible una WebAPI basada en ASP.NET Core. Luego, Visual Studio crea los proyectos usando las herramientas CLI específicas del marco.
Los desarrolladores pueden agregar paquetes NPM a través de la rama "npm" (consulte la Figura 4). Sin embargo, el soporte de entrada actualmente solo funciona para el código JavaScript y TypeScript, no para los marcadores de posición en las plantillas. Visual Studio Test Explorer ahora también muestra pruebas para proyectos web.
Cambios ópticos
La Figura 4 muestra el cambio visual más notable en Visual Studio 2022, a saber, la nueva fuente Cascadia Code y los íconos completamente rediseñados.
Las pestañas verticales y horizontales de los archivos abiertos ahora pueden tener un marcador de color en el entorno de desarrollo, lo que facilita la asignación de proyectos. Esta función debe ser tomada por los desarrolladores.Herramientas>Opciones>Ambiente>Pestañas y ventanaspero activar primero.
Lo popular en Visual Studio CodeEl tema de la interfaz de usuario "Winter is Coming" ahora también está disponible para el gran Visual Studio.
Seguridad
Mientras que Visual Studio solía abrir cualquier proyecto desde el disco duro, incluso si se ejecutaba el código del programa, Visual Studio 2022 ahora pregunta a los desarrolladores si confían en el código fuente. BajoHerramientas>Opciones>Ambiente>Configuración de confianzapueden almacenar caminos familiares.
BajoHerramientas>Opciones>Ambiente>Funciones de vista previalos desarrolladores pueden activar el guardado automático de archivos al salir de la ventana, que a menudo ha estado ausente hasta ahora.
La herramienta Azurite reemplaza al emulador de Azure Storage anterior. Git admite soluciones de Visual Studio que abarcan varios repositorios de Git.
Variantes de Visual Studio
Como antes, Microsoft ofrece su Visual Studio en las variantes Community, Professional y Enterprise. Los proyectos de código abierto y las empresas más pequeñas pueden seguir utilizando la versión comunitaria de forma gratuita. Como antes, Visual Studio 2022 completo solo se ejecuta en Windows. ElVisual Studio para Mac y Visual Studio Code (para Windows, macOS y Linux) ofrecidos en la página de descarga, ambos gratuitos, cada uno tiene una base de código diferente y no son compatibles con todas las características de Visual Studio. Visual Studio 2022 para macOSpermanece en la fase de vista previa por el momento.
Visual Studio 2022 se puede instalar junto con Visual Studio 2019. Al igual que con la versión anterior, además del canal de lanzamiento (versión 17.0), también hay unoCanal de vista previa, que ya contiene una vista previa de la próxima actualización (versión 17.1)..
Se puede encontrar más información sobre Visual Studio 2022en el sitio web del evento de lanzamiento de Visual Studio. El evento de presentación se repetirá el 8 de noviembre de 2021 a partir de las 17:30 horas (CET) y el 9 de noviembre a las 9:30 y 17:30 horas (CET).
(si)
FAQs
Is Visual Studio 2022 64-bit? ›
Visual Studio 2022 on Windows is now a 64-bit application. This means you can open, edit, run, and debug even the biggest and most complex solutions without running out of memory.
How do I enable 64-bit in Visual Studio? ›From the Visual Studio menu, choose Test, then choose Processor Architecture for AnyCPU projects. Choose x64 to run the tests as a 64-bit process.
Why isn t Visual Studio 64-bit? ›Visual Studio is huge and most of its packages wouldn't benefit from 64 bit addressing but nearly all of it would benefit from using more lazy algorithms — the tendency to load too much about the current solution is a general problem which results in slowness even when there is enough memory to do the necessary work.
How do I know if Visual Studio is 32 or 64-bit? ›Fortunately, you can enable a Platform column by right-clicking on the column headers in the Details tab and choosing Select columns. The column will contain either "32-bit" or "64-bit" as appropriate. If you got Visual Studio or the Platform SDK installed you can use dumpbin /headers to look at the PE header values.
Is VS code 32 or 64-bit? ›VS Code is supported on the following platforms: Windows 10 and 11 (32-bit and 64-bit)
How do I change Visual Studio from 32-bit to 64-bit? ›From the Visual Studio menu, choose Test, then choose Settings, and then choose Processor Architecture. Choose x64 to run the tests as a 64-bit process. Specify x64 in a . runsettings file.
Does Visual Studio have 64-bit version? ›Visual Studio 2022 on Windows is now a 64-bit application.
How do I set 64-bit? ›- Check your CPU compatibility with 64-bit architecture.
- Determine driver and system compatibility with 64-bit architecture.
- Create a new installation media with a USB flash drive.
- Boot Windows from the installation media.
- Follow the setup and install the 64-bit version of Windows 10.
If you have Visual Studio open, go to Tools > Get Tools and Features... which opens the Visual Studio Installer. Or, open the Visual Studio Installer from the Start menu. From there, you can choose the workloads or components that you wish to install.
Is everything 64-bit now? ›The latest version of the Everything app for Windows works with 32 and 64-bit versions and is easy to set up and use.
Do I need Visual Studio x86 and x64? ›
The installation attempts to install these automatically, but this seems to fail sometimes (for example missing entry point). In most cases you should install both the x64 (64-bit) and the x86 (32-bit) versions. If you're using a 32-bit version of Windows, then you only need to install the x86 version.
Why can't i upgrade to 64-bit? ›A 32-bit operating system cannot run 64-bit applications which is exactly what the Windows 7 64-bit setup is. If you want to change from a 32-bit OS to a 64-bit OS, you must be running 64-bit hardware and have bootable installation media for the 64-bit OS so you can install it. This is not a simple replacement either.
What is the difference between 32-bit and 64 but? ›As its name suggests, the 32 bit OS can store and handle lesser data than the 64 bit OS. More specifically, it addresses a maximum of 4,294,967,296 bytes (4 GB) of RAM. The 64 bit OS, on the other hand, can handle more data than the 32 bit OS.
Is Visual Studio still 32-bit? ›Visual Studio 2022 and WinForms 32-bit . NET Framework components. Visual Studio 2022 is the first Visual Studio that runs as a 64-bit application. We received lots of requests to make this change and now you can open, edit, run, and debug the biggest and most complex solutions without running out of memory.
Why use 32-bit instead of 64? ›A 32-bit system can access 232 different memory addresses, i.e 4 GB of RAM or physical memory ideally, it can access more than 4 GB of RAM also. A 64-bit system can access 264 different memory addresses, i.e actually 18-Quintillion bytes of RAM.
Does 64-bit software run on 32? ›In a word, you can't install and run 64-bit software on a 32-bit computer, or vice versa. But sometimes, if the 64-bit operating system is compatible with 32-bit, you can install a 32-bit app on the 64-bit computer.
How do I upgrade my software from 32-bit to 64-bit? ›How do I upgrade from the 32-bit to the 64-bit version of Windows? Upgrading from the 32-bit version to the 64-bit version of Windows requires that you reformat your hard disk, install the 64-bit version of Windows, and then reinstall everything else that you had on your device.
Why is Visual Studio running 32-bit? ›## As I know, Visual Studio IDE is 32bit because of many existing extensions and the long history of Visual Studio. So the Task Manager identifies Visual Studio 2019 as a 32bit application, which is not caused by the wrong version.
How to convert 32-bit to 64-bit without CD? ›- Plug in your USB flash drive and set boot priority to this drive in BIOS, then restart your computer and press any key to boot from it.
- Wait for Windows 7 installation files to load, then you will see the main interface. ...
- Accept the license terms and click Next.
Visual Studio Code is the best choice for web development. It offers incredible support with thousands of tools and extensions willing to work in your favour.
What is the difference between x86 and x64 Visual Studio? ›
x86 and x64 are what are known as instruction set architectures (ISA) used by Intel as a standard for their microprocessors. ISAs define how a processor manages and executes instructions from the OS and applications. An x86 processor can process 32 bits at a time, while an x64 processor can process 64 bits at a time.
What is x86 and x64 in Visual Studio? ›The Win32 platform name is used for C++ projects, and it means x86. Visual Studio considers both project-level platforms and solution-level platforms, and the project platforms come from the language-specific project systems. C++ projects use Win32 and x64, but the solution platforms use x86 and x64.
Can I switch to 64-bit? ›If you have a computer with a 32-bit setup, you can upgrade to the 64-bit version without acquiring a new license. The only caveat is that there is no in-place upgrade path to make the switch. The only option is to perform a clean installation of Windows 10.
What is 64-bit mode? ›In the x86-64 computer architecture, long mode is the mode where a 64-bit operating system can access 64-bit instructions and registers. 64-bit programs are run in a sub-mode called 64-bit mode, while 32-bit programs and 16-bit protected mode programs are executed in a sub-mode called compatibility mode.
How much RAM does Windows 10 32-bit use vs 64-bit? ›Windows 10 64-bit supports up to 2 TB of RAM, while Windows 10 32-bit can utilize up to 3.2 GB. The memory address space for 64-bit Windows is much larger, which means you need twice as much memory than 32-bit Windows to accomplish some of the same tasks.
Which version of Visual Studio is best for Windows 10? ›Visual Studio 2022 is the best Visual Studio ever. Our first 64-bit IDE makes it easier to work with even bigger projects and more complex workloads.
Is Visual Studio 19 64-bit? ›Hi! Thank you for reporting this. Visual Studio remains a 32 bit application, though certain components (e.g., diagnostics/debuggers, MSBuild, compilers, designers) will take advantage of 64-bit processors if available. We've updated our download pages to clarify this.
What version of Visual Studio is compatible with Windows 10? ›Summary. Visual Studio 2022 is supported only on 64-bit editions of Windows 10 version 1909 and higher and Windows Server 2016 and higher. We don't recommend using Visual Studio on earlier versions of Windows and Windows Server.
How do I know if my application is 64-bit? ›- Click Start, type system in the search box, and then click System Information in the Programs list.
- When System Summary is selected in the navigation pane, the operating system is displayed as follows:
- For a 64-bit version operating system: X64-based PC appears for the System Type under Item.
- Run the program you want to check.
- Launch the Task Manager, select More Details.
- Select the Details tab, then right click any column, click Select Columns.
- Check the box next to Platform, click OK.
- View the new Platform column, this lists the bit version.
Why did we switch to 64-bit? ›
Better performance when moving data.
Since processors use 64 bits for both addressing and data, the processor can carry twice the amount of data carried by 32-bit processors in every clock cycle. This enables the processor to handle far more data and instructions per unit of time than previous processors.
- Better software performance.
- Increased memory support.
- Better computer performance.
- Enhanced Security features.
- The pride of using the latest and the most advanced technology.
The biggest difference between x86 and x64 is that they can access different amounts of RAM. The x86 (32-bit processors) has a limited amount of maximum physical memory at 4 GB, while x64 (64-bit processors) can handle 8, 16, and some even 32GB physical memory.
Should I use x64? ›You should always use 64-bit versions if your system has a 64-bit architecture. This will ensure your programs run smoothly and quickly even when used intensively and in parallel.
Will upgrading to 64-bit improve performance? ›Benefits of 64-Bits:
The main perks gained from installing a 64-bit version of Windows are the ability to access RAM above the 4-GB range and the advanced security features. The access to more memory allows for more efficiency when administering processes and consequently improves performance of the OS.
What Does it Cost to Upgrade 32-bit Windows 10? Upgrading from 32-bit to 64-bit Windows is totally free, and you don't even need to have access to your original product key. As long as you have a valid version of Windows 10, your license extends to a free upgrade.
What does upgrading to 64-bit do? ›Simply put, a 64-bit processor is more capable than a 32-bit processor because it can handle more data at once. A 64-bit processor can store more computational values, including memory addresses, which means it can access over 4 billion times the physical memory of a 32-bit processor.
Does 32-bit run slower than 64-bit? ›Most importantly, 32-bit systems are slow in computing calculations due to the amount of memory available. Due to this, they render graphics slower and at a much lower quality as compared to their 64-bit counterparts.
Can Visual Studio run on Windows 10 32-bit? ›Visual Studio supports creating and running 64-bit applications on 64-bit computers for a long, but Visual Studio remains a 32-bit application itself. If you have a 32-bit operating system, you can't take advantage of these 64bit features.
What is the latest version of Visual Studio? ›Visual Studio 2022
The most comprehensive IDE for .NET and C++ developers on Windows for building web, cloud, desktop, mobile apps, services and games.
Do people still use 32-bit systems? ›
Yes. People use old video game consoles, PCs and laptops because they prefer them or cannot afford 64-bit hardware. You would also need 32-bit hardware to use many MacOS programs, hence using a 32-bit Mac.
Is there a 32-bit version of Visual Studio 2022? ›Supported Operating Systems
32-bit and ARM32 operating systems. Windows 11 Home in S mode, Windows Enterprise IoT, Windows 10 IoT Core, Windows 10 Enterprise LTSC edition, Windows 10 S, and Windows 10 Team Edition. You may use Visual Studio 2022 to build apps that run on these editions of Windows.
Visual Studio 2022 version 17.0 is Available Today!
How to change 32-bit to 64-bit Visual Studio 2022? ›The 32-bit MSBuild is run by default in the Azure Pipelines Visual Studio Build and MSBuild tasks. To change this, specify msbuildArchitecture: 'x64' in your YAML job definition. For GitHub Actions, the setup-msbuild action allows for specifying this same setting using msbuild-architecture: 'x64' .
Why do 32-bit programs still exist? ›Compared to smaller bit widths, 32-bit computers can perform large calculations more efficiently and process more data per clock cycle. Typical 32-bit personal computers also have a 32-bit address bus, permitting up to 4 GB of RAM to be accessed, far more than previous generations of system architecture allowed.
Which Visual Studio is best for Windows 10 Pro 64 bit? ›Visual Studio 2022 is the best Visual Studio ever. Our first 64-bit IDE makes it easier to work with even bigger projects and more complex workloads. The stuff you do every day—like typing code and switching branches—feels more fluid more responsive.
What is the difference between Visual Studio 2017 and 2022? ›Visual Studio 2022 includes better cross-platform app development tools and the latest version of C++ build tools, to include C++20 support. As well, we're updating Hot Reload so that you can edit either C++ or . NET projects while your application is running. For more information, see the Speed up your .
Is there a 64-bit Visual Studio? ›Visual Studio 2022 on Windows is now a 64-bit application.
Will 64bit run on 32-bit? ›The x64-based versions of Windows doesn't support 32-bit drivers. All hardware device drivers and program drivers must be compiled specifically for the x64-based version of Windows.
How do I know if my Windows 10 is 32 or 64-bit? ›- Select the Start button > Settings > System > About . Open About settings.
- Under Device specifications > System type, see if you're running a 32-bit or 64-bit version of Windows.
- Under Windows specifications, check which edition and version of Windows your device is running.