AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Building Music Store

Open danroth27 opened this issue 11 years ago • 11 comments

Getting Started -> Tutorials -> Building Music Store

danroth27 avatar Apr 16 '15 15:04 danroth27

Hello where is the tutorial :)?

pharmatechnik avatar Nov 25 '15 12:11 pharmatechnik

I would like to contribute/review, [email protected]

baibaomen avatar Feb 01 '16 03:02 baibaomen

@baibaomen can you test https://github.com/aspnet/MusicStore/blob/dev/README.md and see if that is enough to build/test/run MusicStore?

Rick-Anderson avatar Mar 21 '17 21:03 Rick-Anderson

@baibaomen can you test https://github.com/aspnet/MusicStore/blob/dev/README.md and see if that is enough to build/test/run MusicStore? cc @tdykstra

Rick-Anderson avatar Jun 19 '17 15:06 Rick-Anderson

@Rick-Anderson I tried running the MusicStore.

The README says to cd \src\MusicStore
I went to \samples\MusicStore\

With .NET Core 1.1, running "dotnet restore" led to numerous errors.

Installed .NET Core 2.0 Preview 2 and then "dotnet restore" ran with no errors.

"dotnet run" complained that "project targets multiple frameworks"

"dotnet run --framework net461" got the MusicStore running and it appeared fully functional.

After opening the solution file in Visual Studio 2017 and selecting "Start Without Debugging" the browser displayed "HTTP Error 502.5 - Process Failure".

I am just getting started with software development and will be the first to admit I don't really know what I am doing. But I appreciate the opportunity to look through this sample project to see how things can be done in ASP.NET Core. Thank you!

geoffreyaladro avatar Jun 29 '17 20:06 geoffreyaladro

Try

dotnet restore
dotnet run

to run the app. If you want to use VS, you'll need VS 17 Preview 3

Rick-Anderson avatar Jun 29 '17 22:06 Rick-Anderson

@danroth27 @scottaddie I just took a look at this one. The way Music Store is configured these days, the packages aren't versioned. One apparently must run build.cmd /t:Pin, which runs the build.ps1 script to pin the packages and restore the app. However when I tried that ... :boom: :cry: ...

Expand-Archive : A parameter cannot be found that matches parameter name 'DestinationPath'. At C:\Users\xxxxx\Desktop\MusicStore-dev\MusicStore-dev\build.ps1:98 char:47
+ ...                Expand-Archive -Path $tmpfile -DestinationPath $korebu ...
+                                                  ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Expand-Archive], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : NamedParameterNotFound,Pscx.Commands.IO.Compression.ExpandArchiveCommand

... possibly due to a conflict with PSCX according to a forum comment that I found on this exception.

Whatever the case with that, are u sure you want to go forward with this issue? It looks like the dev team isn't so hot about devs playing with it. Note their message in the repo README:

It is not intended to be a representative sample of how to use ASP.NET Core.

... and I'm a little concerned that Music Store won't be a well-behaved test app for devs.

guardrex avatar Sep 16 '17 03:09 guardrex

@guardrex I'll look to Dan for a decision on this one.

scottaddie avatar Sep 16 '17 03:09 scottaddie

The original intent of this issue was to have a tutorial doc that walked you through creating the Music Store app, like we had for previous versions of ASP.NET MVC (see https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/mvc-music-store/).

The MusicStore repo was based on the Music Store tutorial, but is now primarily used for testing purposes as part of the ASP.NET Core build infrastructure. This repo is not intended to be consumed as a sample and should not be the basis for any docs. If we decided to recreate the Music Store tutorial for ASP.NET Core it will need to live in a separate repo.

I believe the main value the Music Store app added over our existing Movie Store tutorial is that it touched on Identity.

We could try to merge the useful parts from the Music Store repo into the Movie Store tutorial, but I suspect that would add too much complexity.

So, yes, I think we still want a Music Store tutorial as a more advanced tutorial after you've made it through the basic Movie Store tutorial. We just can't use the MusicStore repo.

danroth27 avatar Sep 27 '17 22:09 danroth27

I see ... I misunderstood your intent. Since this would be a tutorial that covers significant segments of a rather large app, this is potentially a big job.

guardrex avatar Sep 27 '17 23:09 guardrex

it touched on Identity.

@danroth27 That's covered better by https://docs.microsoft.com/en-us/aspnet/core/security/authorization/secure-data

closing this issue

Rick-Anderson avatar Sep 28 '17 00:09 Rick-Anderson