We’ve got a lot of great features in TypeScript 3.7, including:
Optional Chaining
Nullish Coalescing
Assertion Functions
Better Support for never-Returning Functions
--declaration and --allowJs
(More) Recursive Type Aliases
The useDefineForClassFields Flag and The declare Property Modifier
Build-Free Editing with Project References
Uncalled Function Checks
Flatter Error Reporting
// @ts-nocheck in TypeScript Files
Semicolon Formatter Option
Website and Playground Updates
Breaking Changes
DOM Changes
Class Field Mitigations
Function Truthy Checks
Local and Imported Type Declarations Now Conflict
API Changes
- Fixed: Error running the selected code generator :" value -1 is outside the acceptable [0,2147483647] range. Parameter name :value"
- Fixed: VS2019 will randomly hang while unloading projects
- Fixed: vcpkgsrv freezes VS on opening new cpp files
- Fixed an issue that caused Visual Studio 2019 to stop responding on shut down.
- Added error handling to prevent a crash when displaying tool windows with Per-Monitor awareness enabled.
C# Application From Start to Finish: Tournament Tracker Course - YouTube
28 videos, 192,192 views, Last updated on Jan 13, 2019
Follow along in this free course as I show you how to create an application in C# from idea through the finished product. Everything is shown on screen and in great detail. Learn how to use SQL databases, CSV text files, custom events, Linq, Lambda expressions, emailing, and more. Everything you learn will be in context of a real application.
There's two ways to deploy a .NET Core application. There's FDD and SCD. Since TLAs (three letter acronyms) are stupid, that's Framework-dependent and Self-contained. When .NET Core is installed it ends up in C:\program files\dotnet on Windows, for example. In the "Shared" folder there's a bunch of .NET stuff that is, well, shared. There may be multiple folders, as you can see in my folder below. You can have many and multiple installs of .NET Core.
We finished week 2 of the 9-week boot camp. This week was AngularJS week. We covered building the front-end of a Single Page App with the AngularJS framework. In particular, we covered topics such as client-side routing, making Ajax calls using the $http service and the $route factory, building custom AngularJS services, working with Google Maps, using Angular UI Bootstrap, and uploading files to services such as FilePicker.io.
بهبودهای WPF در NET 4.6.1.
With the 4.6.1 RC we have added support for WPF to recognize custom dictionaries registered globally. This capability is available in addition to the ability to register them per-control. Also, custom dictionaries in the previous versions of WPF had no affordance for Excluded Words and AutoCorrect lists. On Windows 8.1 and Windows 10, these scenarios are now enabled through the use of files that can be placed under %AppData%\Microsoft\Spelling\<language tag>.
<script type="text/javascript"> if (!window.resourceProvider) { window.resourceProvider = { message1: '', message2: '' }; } </script>
@using Microsoft.AspNetCore.Mvc.Localization @inject IViewLocalizer Localizer @section Scripts { <script type="text/javascript"> resourceProvider.message1 = '@Localizer["About Title"]'; </script> }
<script type="text/javascript"> alert(resourceProvider.message1); </script>
خطای زیر را مشاده کردم .
An assembly specified in the application dependencies manifest (MyWebApp.deps.json) was not found: package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1.1' path: 'lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll' This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
<PropertyGroup> <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> </PropertyGroup>
پیاده سازی مطلب جاری برای ASP.NET Identity 2.x یک چنین تغییراتی را پیدا میکند:
app.UseCookieAuthentication(new CookieAuthenticationOptions { // ... Provider = new CookieAuthenticationProvider { OnValidateIdentity = context => { if(shouldIgnoreRequest(context)) // How to ignore Authentication Validations for static files in ASP.NET Identity { return Task.FromResult(0); } return container.GetInstance<IApplicationUserManager>().OnValidateIdentity().Invoke(context); } }, // ... });
private static bool shouldIgnoreRequest(CookieValidateIdentityContext context) { string[] reservedPath = { "/__browserLink", "/img", "/fonts", "/Scripts", "/Content", "/Uploads", "/Images" }; return reservedPath.Any(path => context.OwinContext.Request.Path.Value.StartsWith(path, StringComparison.OrdinalIgnoreCase)) || BundleTable.Bundles.Select(bundle => bundle.Path.TrimStart('~')).Any(bundlePath => context.OwinContext.Request.Path.Value.StartsWith(bundlePath,StringComparison.OrdinalIgnoreCase)); }
استفاده از bower در visual studio
- برای کار با bower در ویژوال استودیو فقط کافی است فایل استاندارد کانفیگ آنرا اضافه کنید:
سپس محتوای این فایل bower.json را به نحو ذیل تغییر داده و ذخیره کنید:
{ "name": "asp.net", "private": true, "dependencies": { "bootstrap-rtl":"" } }
- فایلهای نهایی که باید استفاده شوند، در پوشههای dist آن قرار دارند (distribution).
در این مورد خاص، نیاز خواهید داشت به فایلهای توزیع بوت استرپ اصلی و همچنین به بوت استرپ راست به چپ:
bower_components\bootstrap\dist\css\bootstrap.min.css bower_components\bootstrap-rtl\dist\css\bootstrap-rtl.min.css bower_components\jquery\dist\jquery.min.js bower_components\bootstrap\dist\js\bootstrap.min.js