小编Muh*_*del的帖子

如何一次性或手动或本地安装 C# 依赖项以在没有 VS-code 的互联网连接的情况下脱机工作?

我不需要每次重新打开我的项目时都下载 C# 依赖项的包,它会消耗时间。此外,当您像我这样的互联网连接速度较慢时,将很难继续。

我在搜索解决方案时得到的是 .vsix 解决方案,但它没有帮助。

Installing C# dependencies...
Platform: win32, x86_64

Downloading package 'OmniSharp for Windows (.NET 4.6 / x64)' (33778 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package 'OmniSharp for Windows (.NET 4.6 / x64)'

Downloading package '.NET Core Debugger (Windows / x64)' (47489 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package '.NET Core Debugger (Windows / x64)'

Downloading package 'Razor Language Server (Windows / x64)' (59571 KB).................... Done!
Installing package 'Razor Language Server (Windows / …
Run Code Online (Sandbox Code Playgroud)

c# visual-studio-code asp.net-core

8
推荐指数
1
解决办法
5213
查看次数

如何在从右到左的文化本地化 ASP.Net core 2.2 应用程序中启用 RTL 模式?

我启用了本地化和全球化配置,需要在 RTL Culture 中添加 RTL 模式。我该怎么做?

将 ASP.Net Core 2.2 与 razor 页面和个人帐户配置一起使用

// Configuration Of Localizaion
            services.AddLocalization(opts =>
            {
                opts.ResourcesPath = "CultureResources";
            });

            //services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

            services.AddMvc()
                    .AddViewLocalization(opts => { opts.ResourcesPath = "CultureResources"; })
                    .AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix)
                    .AddDataAnnotationsLocalization()
                .SetCompatibilityVersion(CompatibilityVersion.Version_2_1)
            .AddRazorPagesOptions(options =>
            {
                options.AllowAreas = true;
                options.Conventions.AuthorizeAreaFolder("Identity", "/Account/Manage");
                options.Conventions.AuthorizeAreaPage("Identity", "/Account/Logout");
            });

            services.Configure<RequestLocalizationOptions>(opt =>
            {
                var supportedCulutures = new List<CultureInfo>
                {
                    new CultureInfo("en"),
                    new CultureInfo("en-US"),
                    new CultureInfo("ar-EG")
                };

                opt.DefaultRequestCulture = new RequestCulture("en-US");
                // Formating numbers, date, etc.
                opt.SupportedCultures = supportedCulutures;
                // UI strings that we …
Run Code Online (Sandbox Code Playgroud)

globalization localization right-to-left razor asp.net-core

2
推荐指数
1
解决办法
1729
查看次数