asp.net-core

Show only LTS updates for ASP.NET Core NuGet packages in Visual Studio

江枫思渺然 提交于 2021-02-11 04:54:17
问题 Having an ASP.NET Core project running on 2.1 LTS, I want to stay on LTS versions. So I'm not updating on 2.2 or 3.0 (both currently EOL) but an upgrade to 3.1 (next LTS) is planned in the future. Currently I want to stay on 2.1 LTS, which is still supported up to August 21, 2021. The NuGet package manager of VS 2019 show me a lot of updates for 2.2! I have to check every single update if there are any 2.1.x fixes like in this example: Here I have 2.1.11 installed and there is 2.1.16. I'd

Show only LTS updates for ASP.NET Core NuGet packages in Visual Studio

冷暖自知 提交于 2021-02-11 04:51:55
问题 Having an ASP.NET Core project running on 2.1 LTS, I want to stay on LTS versions. So I'm not updating on 2.2 or 3.0 (both currently EOL) but an upgrade to 3.1 (next LTS) is planned in the future. Currently I want to stay on 2.1 LTS, which is still supported up to August 21, 2021. The NuGet package manager of VS 2019 show me a lot of updates for 2.2! I have to check every single update if there are any 2.1.x fixes like in this example: Here I have 2.1.11 installed and there is 2.1.16. I'd

RabbitMQ client throwing error while running docker-compose up command

蹲街弑〆低调 提交于 2021-02-11 04:29:53
问题 I am trying to run docker-compose with two .net core console applications having dependency of rabbitMQ, I am using Docker with Windows. I have added to console application, as described on RabbitMQ official docs https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html Outside of both applications I have added docker-compose.yml Folder structure: 1. Send Send.cs (as it is in RabbitMQ docs) Send.csproj Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:2.2 as build-env WORKDIR /app # Copy

RabbitMQ client throwing error while running docker-compose up command

会有一股神秘感。 提交于 2021-02-11 04:27:19
问题 I am trying to run docker-compose with two .net core console applications having dependency of rabbitMQ, I am using Docker with Windows. I have added to console application, as described on RabbitMQ official docs https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html Outside of both applications I have added docker-compose.yml Folder structure: 1. Send Send.cs (as it is in RabbitMQ docs) Send.csproj Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:2.2 as build-env WORKDIR /app # Copy

RabbitMQ client throwing error while running docker-compose up command

主宰稳场 提交于 2021-02-11 04:25:25
问题 I am trying to run docker-compose with two .net core console applications having dependency of rabbitMQ, I am using Docker with Windows. I have added to console application, as described on RabbitMQ official docs https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html Outside of both applications I have added docker-compose.yml Folder structure: 1. Send Send.cs (as it is in RabbitMQ docs) Send.csproj Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:2.2 as build-env WORKDIR /app # Copy

Asp.net Core Applications Issue with Razor and MVC Pages

不羁岁月 提交于 2021-02-10 23:38:07
问题 I have reinstalled my VS 2019 and cloned my applications on my machine. But suddenly all the applications stopped showing add -> Controller --> MVC 5 Controller and its View. After rebuild my application is converted into Razor from MVC Core 3.1. and now all applications throws error of g.cshtml.cs file. Help me to fix this issues. Why my .net core MVC application is converted to Razor. Why application not adding MVC controller and view. 回答1: Create an empty ASP.NET Core MVC project Change

Asp.net Core Applications Issue with Razor and MVC Pages

瘦欲@ 提交于 2021-02-10 23:36:32
问题 I have reinstalled my VS 2019 and cloned my applications on my machine. But suddenly all the applications stopped showing add -> Controller --> MVC 5 Controller and its View. After rebuild my application is converted into Razor from MVC Core 3.1. and now all applications throws error of g.cshtml.cs file. Help me to fix this issues. Why my .net core MVC application is converted to Razor. Why application not adding MVC controller and view. 回答1: Create an empty ASP.NET Core MVC project Change

how to persist value in a singleton state container in blazor web assembly on page reload

末鹿安然 提交于 2021-02-10 23:17:36
问题 I practicing and learning blazor web assembly . I'm learning on the ways to communicate between the components. One such way is to use a state container. This works as expected however it does not sustain value on page refresh. Here is my state container class, AppState : public class AppState { public string SomeText { get; set; } } I have registered this as a Singleton instance in Program.cs builder.Services.AddSingleton<AppState>(); with this setup, I'm able to @inject AppState in multiple

how to persist value in a singleton state container in blazor web assembly on page reload

◇◆丶佛笑我妖孽 提交于 2021-02-10 23:17:32
问题 I practicing and learning blazor web assembly . I'm learning on the ways to communicate between the components. One such way is to use a state container. This works as expected however it does not sustain value on page refresh. Here is my state container class, AppState : public class AppState { public string SomeText { get; set; } } I have registered this as a Singleton instance in Program.cs builder.Services.AddSingleton<AppState>(); with this setup, I'm able to @inject AppState in multiple

javascript xmlhttp error on signalr in asp.net core

柔情痞子 提交于 2021-02-10 22:22:20
问题 In my application 2 projects and mvc client run at port(5002) and web api project run at port (5001). I have implemented signalr in mvc client. Now showing error log in console as below: and i have also added configuration to my api project for core policy like: services.AddCors(options => { options.AddPolicy("signalr", builder => { builder.WithOrigins("https://localhost:5002") .AllowAnyHeader() .AllowAnyMethod(); }); }); And now also showing same error. Please suggest. 回答1: You need to