1

I know that there are several questions asking seemingly similar things: Question 1, Question 2

These all answer how to set the default startup project, but they don't answer how to change the "Default Project" property. I have been following this tutorial on Configuring ASP.Net Identity. About 2/3 of the way down the page it has a number list with #1 being:

  1. Set the Default Project property to WebApi.
  2. Open the Package Manager Console.
  3. Enable migrations by targeting our custom context: Enable-Migrations -contexttypename AppUsersDbContext
  4. Add a migration: Add-Migration Initial
  5. Update-Database

The other answers talk about changing the order of projects to set one of them as the default startup project, but this makes it sound as if there is some property named default project that I need to change.

Just some background - the tutorial starts by creating the solution. Only one project is added, so it wouldn't make sense to set a default startup project.

The tutorial doesn't have a date, but speaks of using SQL Server 2016, so it is fairly recent.

Thanks for any help you can offer, the project was working fine until this point, but after doing the rest of the list, something broke. I don't know if this is to blame, but I think it is possible I misunderstood what he meant by this and did something incorrectly.

Once again, thanks so much for any help,

Taylor

Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
Taylor
  • 733
  • 7
  • 18

1 Answers1

6

That tutorial is talking about Nuget, not your project/solution.

To change the default project in Nuget, you should see a drop down on your "Package Manager Console" tab in visual studio.

As @ScottChamberlain pointed out, the tutorial is a bit flawed with their ordering. Had Step 2 (Open Package Manager Console) been performed before Step 1, you would likely be able to find the "Default Project" drop down.

Anyways, open Package Manager Console and you should look something like this: enter image description here

maccettura
  • 10,514
  • 3
  • 28
  • 35
  • 2
    Step 1 and Step 2 of that section should really be reversed in that tutorial. – Scott Chamberlain Jun 27 '17 at 19:56
  • I agree, it would have most likely saved OP from having to post this question. – maccettura Jun 27 '17 at 19:57
  • 2
    [I sent a request](https://github.com/pluralsight/guides/pull/216) to have it fixed – Scott Chamberlain Jun 27 '17 at 20:00
  • 1
    Please, next time provide the most necessary steps in the answer, because not I get 404 and the answer is useless. – LueTm Jul 26 '18 at 09:52
  • @LueTm the instructions and a screenshot are already included in my answer. There is literally nothing more you need. The linked tutorial was the same tutorial that OP was using that had the flawed instructions that OP has _already_ included in their question. – maccettura Jul 26 '18 at 12:55