Today Microsoft announced the next version of Windows and a new Windows Store, and we’re excited to see how people take advantage of its new features. One thing that hasn’t changed is that Windows is still the best platform to design, build, test, and deploy Android apps.
اشتراکها
دوره آموزشی - مقدمه ای بر Angular 2
یک نکتهی تکمیلی: منقضی شدن مجوز آزمایشی
اگر مجوز آزمایشی مطرح شدهی در این مطلب منقضی شود، یک چنین پیام خطایی را با اجرای dotnet run دریافت خواهید کرد:
System.InvalidOperationException: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found. To generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'. For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.
Secure Connection Failed An error occurred during a connection to localhost:5001. Certificate key usage inadequate for attempted operation. Error code: SEC_ERROR_INADEQUATE_KEY_USAGE
dotnet dev-certs https --clean dotnet dev-certs https --trust
پس از اجرای این دستورات، هم برنامه و هم مرورگر را باید یکبار بسته و بار دیگر از ابتدا اجرا کنید؛ تا مجوزهای جدید را دریافت کنند.
نظرات مطالب
غیرفعال کردن کش مرورگر در MVC
معادل این مطلب برای ASP.NET Core
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Primitives; using Microsoft.Net.Http.Headers; namespace ASPNETCoreIdentitySample.Common.WebToolkit { public class NoBrowserCacheAttribute : ActionFilterAttribute { public override void OnResultExecuting(ResultExecutingContext filterContext) { filterContext.HttpContext.DisableBrowserCache(); base.OnResultExecuting(filterContext); } } public static class CacheManager { public static void DisableBrowserCache(this HttpContext httpContext) { // Note: https://docs.microsoft.com/en-us/aspnet/core/performance/caching/middleware // The Antiforgery system for generating secure tokens to prevent Cross-Site Request Forgery (CSRF) // attacks sets the Cache-Control and Pragma headers to no-cache so that responses aren't cached. // More info: // https://github.com/aspnet/Antiforgery/blob/dev/src/Microsoft.AspNetCore.Antiforgery/Internal/DefaultAntiforgery.cs#L381 // https://github.com/aspnet/Antiforgery/issues/116 // So ... the following settings won't work for the pages with normal forms with default settings. httpContext.Response.Headers[HeaderNames.CacheControl] = new StringValues(new[] { "no-cache", "max-age=0", "must-revalidate", "no-store" }); httpContext.Response.Headers[HeaderNames.Expires] = "-1"; httpContext.Response.Headers[HeaderNames.Pragma] = "no-cache"; } } }
- Find the Code You’re Looking For: Enhanced search capabilities to help you quickly locate the code you need, even in the largest projects.
- More Meaningful Code Reviews: Improvements to code review workflows, making it easier to spot potential issues and collaborate with your team.
- Updates to pull request creation: Continual improvements to the pull request creation experience.
- Familiar keyboard shortcuts: Some common keyboard shortcuts now match those in other popular IDEs.
- AI-Generated Breakpoint Expressions: Automatically suggest breakpoints based on your code, helping you debug more efficiently.
- Understand Your Symbols: Improved symbol recognition to ensure you get the most accurate suggestions.
- Refined Suggestions: More precise and context-aware code completions, reducing the need for manual edits.
- GitHub Copilot is even more secure: GitHub Copilot Business customers to prevent specified files or repositories from being used to inform code completion suggestions made by GitHub Copilot.
اشتراکها
بهبودهای زمان و تاریخ در NET 6.
In this blog post, I’m going to cover the following topics:
- The new DateOnly and TimeOnly types
- Time Zone Conversion APIs
- Time Zone Display Names on Linux and macOS
- TimeZoneInfo.AdjustmentRule Improvements
For even more details, you can also refer to dotnet/runtime#45318 on GitHub.
اشتراکها