Posts

Showing posts from August, 2024

[MS] Announcing ASP.NET Core OData 9 Official Release - devamazonaws.blogspot.com

We're happy to announce that ASP.NET Core OData 9 has been officially released and is available on NuGet: Microsoft.AspNetCore.OData 9.0.0 The major highlight of this release is the update of the OData .NET dependencies to the 8.x major version . By updating the dependencies, we're able to take advantage of the improvements and new capabilities introduced in Microsoft.OData.Core 8.x and Microsoft.OData.Edm 8.x releases specifically. The ASP.NET Core OData 9 release will only support .NET 8 or later. The OData .NET 8 official release announcement addresses the major changes introduced in that release. It's advisable to go through the post to familiarize yourself with the changes. In this post, we explore how some of those changes affect the ASP.NET Core OData library, and how to toggle the legacy behavior where possible. Character encoding in request and response payloads In OData .NET 8, we introduced a new JSON writer that uses the .NET Utf8JsonWriter behind the sc...

[MS] 使用 MSTest.Analyzers 增强您的测试体验 - devamazonaws.blogspot.com

Image
本篇翻译于Jakub Jareš的 Supercharge your testing experience with MSTest.Analyzers - .NET Blog (microsoft.com)   MSTest 附带一组分析器,用于检查您的测试代码并指出常见的错误和陷阱。这些错误可能很微妙, 并导致测试框架完全忽略您的测试 。   我们从 3.2.0 版本就开始提供这些分析器了,但在最新的 3.5.1 版本中,我们添加了一些我们认为您不应错过的分析器 。   遗漏的测试   一个常见问题是当您忘记在类上添加 [TestClass] 时。 MSTest 将无法知道类中有测试,也不会运行它们 :   public class MyTests { [TestMethod] public async Task TestMethod1() { Assert.Fail(); } } 如果没有 MSTest.Analyzers ,此代码在构建时不会出现警告或信息提示。运行测试时也不会出现测试失败的情况。由于类上没有 [TestClass] 属性, MSTest 会出于性能原因跳过整个类,并且您的测试将永远不会被找到 。   但是使用分析器时您会在构建过程中收到一条信息提示 :   我们建议将此信息提示升级为警告,甚至是构建错误。可以通过在 .editorconfig 文件中添加以下这行代码来实现   [*.cs] # MSTEST0030: Type containing '[TestMethod]' should be marked with '[TestClass]' dotnet_diagnostic.MSTEST0030.severity = warning 为什么默认情况下这不是警告?   您可能会问为什么 MSTEST0030 默认是一条信息提示而不是默认的警告。原因是我们不能在 MSTest v3 中引入重大变更 , 而上述代码是一个常见的模式,用于从基类重用测试。   public class MyTestsBase { [TestMet...

Research and Engineering Studio on AWS Version 2024.08 now available - devamazonaws.blogspot.com

Today we’re excited to announce Research and Engineering Studio (RES) on AWS Version 2024.08. This release adds new features such as Amazon S3 bucket mountpoints for Linux, allows creation of custom user roles and permission profiles, and offers the ability to adjust the list of Amazon EC2 instances available to launch as virtual desktops. Amazon S3 mountpoints allow Linux desktops to access S3 buckets as a file system. Amazon S3 buckets are created using the AWS Console or AWS CLI and onboarded to RES by administrators using the S3 Buckets page in the web portal. You can mount buckets in either Read Only or Read/Write mode. Read/Write buckets have an optional setting to restrict data access by project, or both project and user. RES can also mount S3 buckets from other AWS accounts with the proper permissions. Custom permission profiles allow administrators to create unique permissions and assign them to users or groups. Start by modifying the default Project Member and Project Ow...

[MS] New GitHub Copilot features in Visual Studio 2022 17.11 - devamazonaws.blogspot.com

Image
Visual Studio 2022 17.11 now brings exciting advancements from GitHub Copilot! This release significantly improves how GitHub Copilot integrates into your development workflow, offering smarter and more intuitive coding assistance. Discover the new GitHub Copilot features in Visual Studio, such as enhanced context understanding, improved code completions, and AI insights for debugging and naming. These updates aim to boost your productivity and efficiency in coding. To try these new features, download the update, make sure to activate your GitHub Copilot account and check out the release notes for more detailed information. GitHub Copilot is getting smarter GitHub Copilot Chat now enables you to reference your complete solution, which allows you to gain an even deeper, holistic understanding of your solution to get better results! To reference your solution, simply use @workspace , and Copilot will respond to high-level questions regarding your solution, files, and their interactio...

[MS] How is the Windows.Foundation.Uri.Domain property different from Host? - devamazonaws.blogspot.com

The Windows Runtime class Windows. Foundation. Uri has two string properties: Host and Domain . What's the difference? Let's start with Host . This is the "host" as defined in RFC 3986 which defines the syntax for URIs. Okay, that was easy. What about Domain ? The Domain is an attempt to identify the part of the Host that was registered with a top-level domain (TLD) registrar. Host Domain example.com example.com mail.example.com example.com www.bbc.co.uk bbc.co.uk bbc.co.uk bbc.co.uk The code for the Domain property applies a bunch of rules to determine how many levels of the fully-qualified domain name should be used to determine the "domain". The problem is that the authority for these rules is "whoever runs the TLD". We see that different TLDs have different policies: The .com TLD allows organizations to register second-level domains, whereas the .uk TLD registers organizations as third-level domains, under ....

[MS] Dev Proxy v0.20 with improved simulating API errors and a new API for building integrations - devamazonaws.blogspot.com

We’re excited to share with you a new version of Dev Proxy to help you build robust apps connected to APIs. In this version: Match simulating random API errors with request Ignore specific permissions when detecting minimal permissions for calling Microsoft Graph APIs Remotely control Dev Proxy using its new web API Easily open Dev Proxy configuration ...and more! Match simulating random API errors with requests The ability to simulate API errors is fundamental to building resilient apps connected to cloud APIs. It enables you to ensure that your app properly handles API errors, which will happen, it’s a matter of ‘when’ rather than ‘if’. Using Dev Proxy, you can simulate all possible API errors and see for yourself how your app handles them, all without changing a line of your app’s code! In this version, we further improve the ability to simulate random errors. Previously, you’d specify an array of errors for a URL pattern, like: In this version, we align simulating random ...

Amazon Q Business launches IAM federation for user identity authentication - devamazonaws.blogspot.com

Amazon Q Business is a fully managed, generative AI–powered assistant that enhances workforce productivity by answering questions, providing summaries, generating content, and completing tasks based on customers’ enterprise data. Customers create and manage their workforce user identity using identity providers of their choice. Previously, customers had to sync their user identity information from their identity provider into AWS IAM Identity Center, and then connect their Amazon Q Business applications to IAM Identity Center for user authentication. Starting today, customers can use the Amazon Q Business IAM federation feature to connect their applications directly to their identity provider to source user identity and user attributes for these applications. At launch, Amazon Q Business IAM federation will support the OpenID Connect (OIDC) and SAML2.0 protocols for identity provider connectivity. Amazon Q Business applications built using IAM federation will support advanced featu...

[MS] C# Dev Kit update brings enhanced Razor IntelliSense, Project Status, and New Config Options - devamazonaws.blogspot.com

Image
Whether you're a seasoned C# developer or just getting started with C#, the August 2024 release of C# Dev Kit extension for Visual Studio Code is here to enhance your productivity. Many developers find that using Visual Studio alongside VS Code provides a versatile and powerful development workflow. This update (v1.9.55) brings significant quality improvements and exciting new features to C# Dev Kit, designed to make your coding experience in VS Code smoother and more efficient than ever. Quality Improvements Top feedback that we’ve heard from you is we should focus on quality and to make the experience more reliable for your C# development. Listening to your feedback, we've focused on making the C# Dev Kit more reliable and intuitive, addressing over 72 developer-reported issues last month alone. With the August release, we're continuing this commitment by resolving more of the most pressing challenges you face. Razor One of the top developer requests is that we impro...

[MS] Reliable Web App – Reliability Patterns - devamazonaws.blogspot.com

Image
(Only got 5 minutes? The completed example is available here) As applications migrate to the cloud, they must be designed to handle inevitable failures gracefully. Network issues, service outages, and other transient faults are common in distributed systems . Without proper handling mechanisms, these failures can lead to system instability and poor user experiences. This is why Retry and Circuit Breaker patterns are essential. The Retry pattern allows applications to recover from temporary failures by reattempting failed operations, while the Circuit Breaker pattern helps prevent cascading failures by stopping attempts to perform an action that is likely to fail, thereby maintaining the overall health of the system. You can think of the Reliable Web Application (RWA) pattern as a pattern of patterns. Each pattern provides prescriptive guidance on how to build a specific aspect of a reliable web application. The patterns are derived from both the Azure Well-Architected Framework...

[MS] The Microsoft/IBM joint development was built on mutual respect, wait, is respect the right word? - devamazonaws.blogspot.com

I've noted in the past that Microsoft and IBM collaborated on a project known as OS/2. The Microsofties viewed the IBM engineers as mired in corporate policy , whereas the IBM engineers viewed their Microsoft counterparts as a bunch of undisciplined hackers. At a team meeting in Redmond, Steve Ballmer (then head of the Platform division) recognized one of my colleagues in the back of the room¹ who had previously worked as an intern at IBM. He asked, "You used to work at IBM, right? What do they think of us?" My colleague replied, "They hate us just as much as we hate them." ¹ Steve Ballmer is well-known for his ability to remember the names and personal details of people he has met, even if only briefly. Post Updated on August 27, 2024 at 03:00PM Thanks for reading from devamazonaws.blogspot.com

[MS] How to build customized Power BI dashboards with user insights data in External ID - devamazonaws.blogspot.com

Image
The user insights feature is generally available (GA) in Microsoft Entra External ID external tenants. It is accessible via Microsoft Graph APIs, which are currently in beta, or through prebuilt dashboards in the Microsoft Entra admin center. User insights dashboards provide organizations with valuable insights into user behavior and patterns within customer-facing applications. You can query and analyze user metrics such as total user count, monthly active users (MAU), daily active users (DAU), newly added users, authentications, and multifactor authentication (MFA) usage. Custom dashboards with Microsoft Graph API The out-of-the box dashboards in the Microsoft Entra admin center provide easy-to-digest graphs and charts but have limited customization options. Microsoft Graph APIs enable you to build powerful, customized dashboards with data tailored to your specific needs and preferences. This has some advantages: Flexibility: You can integrate with other data sources to prese...

[MS] New IDE features in Visual Studio v17.11 - devamazonaws.blogspot.com

Image
In Visual Studio 2022 v17.11, you'll discover several new features that address specific issues developers have reported. These updates don't belong to a distinct category, but we're dedicated to sharing them with you in this blog post. You can download the update and view the comprehensive release notes for full details. Find the code you're looking for Do you ever feel like you're seeing too many results in code search? Narrow down your focus with the newly added scoping options in  Code Search . For the default code search experience and each filter, you can now set the scope to  Entire solution ,  Current project , or  Current document  and toggle inclusion of external files. You can set different scopes for different filters. For example, the default experience can be set to look through  Entire solution  and  members  can be set to look through only current document. Your selections will be preserved past the current session. Famili...

[MS] Thoughts on finding the essential elements of a set - devamazonaws.blogspot.com

Suppose you have a set of n items, two of which are essential, and the rest are superfluous. You can pass any subset of these items to an oracle, and the oracle will tell you whether the set contains all of the essential elements. The objective is to identify those essential elements. You might run into this problem if the elements are package dependencies, and you want to figure out which ones are actually necessary for your project to build, and which ones are just cargo cult . If the problem had been formulated with just one essential element, then it would be a simply binary search: Divide the set into equal-sized subsets and ask the oracle which subset contains the essential element. Recurse on that subset, and you can find the essential element in O (log n ) steps. But what if there are two essential elements? You could try the same thing and divide in half, but if the oracle says "Neither half contains both of the essential elements," then you're in a bit of a...

[MS] Retrieval Augmented Generation with Azure SQL - devamazonaws.blogspot.com

Image
Retrieval Augmented Generation, or RAG, is one of the hottest topics at the moment as it opens up the possibility of interacting with data using natural language, which is a long-time dream finally coming true. It is very likely that a lot of your data is already stored or will be stored in Azure SQL, so a common request is to have an example on how to apply the RAG pattern to your own data stored an Azure SQL database. This blog post is all about that. Let's start from the basics and make sure the RAG pattern is clearly understood. RAG Pattern 101 To make the explanation easy to understand, even if you are completely new to the topics, let's start from a simple scenario. You have a database where you have stored details - title, abstract, time, speakers - of all the session of a conference. A good example could be the just passed .NET Focus on AI conference or the forthcoming .NET Conf 2024 conference, or one of my favorites, the VS Live conference. Why RAG? You already ...