Github 不久前发布了PR草案。
我拥有正常的PR,我想将其更改为草稿PR。我怎样才能做到这一点?
我在 Mac 上的 Visual Studio Code 上创建了一个项目,并想设置我的默认页面。我在“Startup.cs”上写了代码,但它不起作用。
当我运行项目并打开浏览器时,它显示没有找到控制器。
遵循 Startup.cs 代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace ProblemsV4
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
}
// This method gets called by the runtime. …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用该命令创建迁移mix ecto.gen.migration <migration_name>,但出现错误:
Cannot run task "ecto.gen.migration" from umbrella application
Run Code Online (Sandbox Code Playgroud)
为什么我收到这个错误?