Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic install setup #3

Closed
airboss001 opened this issue Mar 27, 2019 · 15 comments
Closed

basic install setup #3

airboss001 opened this issue Mar 27, 2019 · 15 comments

Comments

@airboss001
Copy link

Wanted to put a few notes here on my experience trying to get this to run.

Here are the manual steps followed:
dotnet new -i aurelia.dotnet.templates
dotnet new aurelia -ht http2 -c sass -e none

Additional Steps:
cd ClientApp
npm i
au build

cd ../project.Spa
dotnet run
[failing messages, can't find ClientApp]

Troubleshooting steps:
Trying to do the command 'dotnet run' in the project.Spa directory now fails. It is looking for 'ClientApp' to be in the same directory, not on level up.

Moving ClientApp from the solution root into the 'project.Spa' directory now allows it to start and opening a browser to 'localhost:8080' loads the site.

I tried using the --secure and failed miserably, but that was before I discovered the above required steps. So I'll go back and try that.

@airboss001
Copy link
Author

Going back to using the flag --secure the command:
dotnet run /seed
is failing with

Couldn't find a project to run. Ensure a project exists in G:\2019\ASP.Net Core\Apptest4-secure, or pass the path to the project using --project.

@brandonseydel
Copy link
Member

brandonseydel commented Mar 27, 2019

There is a bug on first execute if the aurelia-cli package is not yet installed.
After that run
dotnet new aurelia --secure
then deny the auto seed
Just found a bug in the Secure app that will need a find and replace
Replace SecureSpa with Spa in all files and then run the project

@airboss001
Copy link
Author

Thanks @brandonseydel for the update.

I'm interested in looking at that, and just wanted to do the id10t test for you.
It appears I am excelling at that task ;)

@brandonseydel
Copy link
Member

Did everything work for you after those recommendations?

@airboss001
Copy link
Author

I'll try it in the morning, and post here when I do.

@brandonseydel
Copy link
Member

I will have a new version for you by then ;)

@brandonseydel
Copy link
Member

1.3.0 released. Everything should be good other than docker has one small hiccup.

@arjendeblok
Copy link

Where did you release this version 1.3.0?

@brandonseydel
Copy link
Member

it goes to nuget.org technically you can update by rerunning the install command
dotnet new -i aurelia.dotnet.templates

@airboss001
Copy link
Author

Ok, so I installed the new version with:
dotnet new -i aurelia.dotnet.templates

and then in a new project directory:
dotnet new aurelia --secure

Opening the project in VS2017
All the project references are bad for:
Model
Logic
DataAccess

Removed the bad references and added back the project references.

Running build causes a fail with the following message:
Severity Code Description Project File Line Suppression State
Error MSB6003 The specified task executable "cmd.exe" could not be run. The working directory "ClientApp" does not exist. Apptest4-secure.Spa G:\2019\ASP.Net Core\Apptest4-secure\Apptest4-secure.Spa\Apptest4-secure.Spa.csproj 71

Moved ClientApp from solution root into Spa root
Error goes away, and now it installs the npm modules, and 4 successful project builds.

Starting Debug Apptest4-secure.Spa and errors out on SeedAsync()

        public void Seed()
        {
            this.SeedAsync().Wait();
        }

System.AggregateException: 'One or more errors occurred. (Could not load file or assembly 'Apptest4_secure.Spa, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.)'

FileNotFoundException: Could not load file or assembly 'Apptest4_secure.Spa, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

@brandonseydel
Copy link
Member

Lots of problems stemmed from a - in the folder name it appears.

@airboss001
Copy link
Author

hmm...never even crossed my mind. Let me remove that, and put that in my notes of DOH!

@brandonseydel
Copy link
Member

Would you be willing to guinea pig some of the new VSIX stuff?

@airboss001
Copy link
Author

Ok, so removing the dash from the path fixed it. Man, am I good, or am I just really really unlucky! lol

Hey, whatever I can do to help, would be glad to. Apparently I am good at breaking stuff that works for everyone else :p

@brandonseydel
Copy link
Member

I’ll publish a pre release vsix in the coming days and we can start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants