Also: Survey shows IDE's dominance among .NET Core developers, despite cross-platform options Preview 3 of Visual Studio 2019 16.9, the next big release of Microsoft's Windows IDE, features debugging for Chromium-based WebView, audio cues in tests, and updated C++ support.…
A .NET Foundation open source project has emerged for using C# to write embedded applications, letting developers leverage familiar Microsoft technologies to build software for small devices.Called the .NET nanoFramework, the project lets developers use the Visual Studio IDE and C# to write managed code applications for embedded systems without having to worry about the low-level intricacies of a microcontroller. The platform is suitable for projects ranging from IoT sensors and wearables to robotics and industrial equipment.To read this article in full, please click here
Dependency injection is a first-class citizen in ASP.NET Core MVC 5. Part of the new .NET 5, ASP.NET Core MVC 5 is the latest version of Microsoft’s framework for building web apps and APIs using the model-view-controller design pattern.In this article we’ll take a deep dive into dependency injection in ASP.NET Core MVC 5 as well as learn the best practices that one should follow when working with dependency injection.
[ Also on InfoWorld: 27 essential tips for Git and GitHub users ]
To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here.To read this article in full, please click here
Redmond keeps us hanging with on-premises Exchange flaw still to be fixed Patch Tuesday Microsoft on Tuesday released updates addressing 83 vulnerabilities in its software, which doesn't include the 13 flaws fixed in its Edge browser last week.…
The cancelled Tomb Raider: 10th Anniversary is now available to play online.
When developing applications in .NET Core, you might often need a single, shared instance of a class. Typical use cases would be an instance of LogManager, StateManager, etc. You can either use a singleton class or a static class to achieve this. The decision on which to choose—singleton or static—depends on several factors. This article explains singleton classes and static classes and when we should we use one versus the other.To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here. You can download .NET 5.0 from here.To read this article in full, please click here
This month’s update to the Visual Studio Code code editor has been published, featuring a troubleshooter for extensions.Visual Studio Code 1.52, known as the November 2020 release, has an extension bisect feature, to troubleshoot which extensions are causing issues in the editor. Prior to this capability, developers needed to disable all extensions then re-enable them one-by-one to find a problem with an extension.
[ Also on InfoWorld: 10 Visual Studio Code extensions for every developer ]
The extension bisect feature uses a binary search algorithm to quickly identify an extension causing trouble. The feature disables half of extensions and asks developers to check for the issue in question. If the issue is gone, the bad extension must have been in the list of disabled extensions. The process is repeated until a single extension is left.To read this article in full, please click here
ASP.NET 5 is an open source web application development framework for building modern web applications. It is built on the .NET Core runtime and you can take advantage of it to build and run applications on Windows, Linux, and the Mac. ASP.NET Core MVC is a lightweight, open source, highly testable framework built on top of the ASP.NET Core runtime and is available as part of ASP.NET 5.When working in ASP.NET Core MVC, you might often need to handle actions that are not known at development time. This article talks about how you can handle unknown action methods in ASP.NET Core 5. The code examples are given in C#.
[ Also on InfoWorld: Full-stack developer: What it is and how you can become one ]
To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here. And you can download .NET 5.0 here.To read this article in full, please click here
The reason behind its popularity is the extensive benefits offered by React Native development for myriad applications!Right from simple learning curve, code re-usability, cross-platform development, high-speed development, support from a vibrant community, to the creation of native-like applications, this framework has a lot to give.And when we talk about its technical goodies, React Native developer tools just can’t be ignored.So let’s have a glimpse at a few of them.8 Popular React Native Developer Tools to Know and Use in 2020Visual Studio CodeReleased in 2015 by the software giant Microsoft, Visual Studio Code is lightweight yet a robust source-code editor.The recent version of Android Studio comes with features like Kotlin DSL support in Android Gradle plugin, newer database inspector, allows running of android emulator inside Android Studio, visual layout editor, faster emulator, APK analyzer, flexible build system, smart code editor, real-time profilers, and much more.XcodeXcode is Apple’s integrated development environment (IDE) that contains several software development tools for building apps in iOS, MacOs, etc.It is a very small tool whose file size accounts for hardly 2kB including dependencies.
Microsoft is working on a new extensibility model for its signature Visual Studio IDE, with the goals of improving the reliability of extensions and making them easier to write. Extensions are to be supported locally and in the cloud as part of the plan.Elaborating on the effort October 28, Microsoft cited an issue in which Visual Studio would crash because of an extension. Current in-proc extensions are subject to few restrictions over how they can influence the IDE and other extensions, allowing them to corrupt the IDE if an extension crashes or experiences an error.To read this article in full, please click here
Why not just use Visual Studio Code, which has 5 times as many extensions and is designed for cloud? Microsoft is creating a new extensibility model for Visual Studio, its Windows IDE for coding everything from desktop applications to cloud-hosted microservices.…
This posting is a little later than usual due to a number of late-in-the-week updates from Microsoft last week. We started off with no publicly reported zero-days or active exploits in the wild. (As we were working with Microsoft, we felt that an out-of-bound patch was imminent that would change our advice on patch cycles for October. But it appears the final “change” for this release was a relatively minor update to Visual Studio - leading to no change in our recommendations in this benign update.)To read this article in full, please click here(Insider Story)
When working in applications in ASP.NET Core you might often need to invoke the Web API action methods using HttpClient to check if the endpoints are working fine. To achieve this, you would typically instantiate HttpClient and use the instance to invoke your action methods. However, there are certain downsides to using HttpClient directly, mainly having to do with managing the lifetimes of the instances manually. You can avoid these downsides by using IHttpClientFactory to create your HttpClient instances. Introduced in .NET Core 2.1, IHttpClientFactory provides a central place to name, configure, and create HttpClient instances and manages the pooling and lifetimes of the instances automatically. To read this article in full, please click here
For an API to be maintainable and usable there should be consistency in the way responses are sent to the clients. This article talks about ProblemDetails, open source ASP.NET Core middleware from Kristian Hellang that can be used to generate detailed results for the exceptions that occur in your application.To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here. [ Also on InfoWorld: Rapid UI development with Flutter for Windows ]
Create an ASP.NET Core MVC project in Visual Studio 2019
First off, let’s create an ASP.NET Core project in Visual Studio 2019. Assuming Visual Studio 2019 is installed in your system, follow the steps outlined below to create a new ASP.NET Core project in Visual Studio.To read this article in full, please click here
Gosh, that's a lot of Gits. But a viable alternative to Microsoft's stable Developers were given another option for code wrangling today with the arrival of native GitLab integration for Gitpod.…
Route constraints in ASP.NET Core are used to filter out or restrict unwanted data from reaching your controller actions. For a primer on routing in ASP.NET Core, you can refer to my previous article on attribute-based routing versus convention-based routing in ASP.NET Core. This article goes beyond the basics to explore the advanced operations using route constraints.To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here. To read this article in full, please click here
Does Redmond have a reliability problem? Comment Microsoft has fixed an issue with its OneDrive and SharePoint services where users were unable to sign in, caused by a faulty remediation for the earlier Azure Active Directory outage.…
Microsoft today announced the release of the Python version of Playwright, a framework for end-to-end testing of web applications in Python. Playwright is the latest in a slew of Microsoft-created Python tools including the Pylance and Pyright language-support add-ons for Visual Studio Code.To read this article in full, please click here
When working with ASP.NET web applications, you will want to protect certain pieces of application data, called user secrets, that should not be shared with others. Your user secrets might include a database connection string that also contains the user ID and the password for the database. You might also want to refrain from sharing information such as access keys, API keys, and connection information details for cloud services such as Azure or AWS.However, when you share your project with others this secret information also will be shared. How can we prevent this? A feature in ASP.NET Core named User Secrets allows you to store user secrets outside your project tree in a JSON file, and can even be managed using a command-line tool called the Secrets Manager. This article talks about how you can work with the User Secrets API in ASP.NET Core.To read this article in full, please click here