asp.net-core-cli

Publishing appsettings.json to different environment

只谈情不闲聊 提交于 2019-12-12 12:16:27
问题 I have three files appsettings.json which is a file that I want to store "general shared settings", then I have appsettings.Development.json and appsettings.Production.json . When I do a publish from Visual Studio, it seems like only appsettings.json is copied and not adding / merge or even just send a simple copy the deployment folder, to me this task should be incorporated into the deployment pipeline. The question is: how can I do it? What am I missing? Is it not supposed that these

How to list all installed NuGet Packages and Versions using .NET CLI

家住魔仙堡 提交于 2019-12-11 17:32:18
问题 How to list all locally installed NuGet packages using .NET Core CLI in a ASP.NET Core project without Visual Studio 2017? I have a ASP.NET Core 2.1 project. I have a <PackageReference Include="Microsoft.AspNetCore.App" /> by default that don't have a Version in it. I'd like to know what's the Version it used. I can't find any CLI command to query that information. 回答1: If Version attribute for metapackage (which Microsoft.AspNetCore.App is) is not supplied, the lowest locally installed