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

docker-compose fails on project install #4

Closed
weklund opened this issue Mar 22, 2018 · 2 comments
Closed

docker-compose fails on project install #4

weklund opened this issue Mar 22, 2018 · 2 comments

Comments

@weklund
Copy link

weklund commented Mar 22, 2018

Trying out .NET for the 1st time on a Mac and getting this issue. It's odd because hello_world_demo.csproj clearly exists.

Also, thanks for a template with docker!

$ docker-compose -f docker-compose.ci.build.yml up --build
Starting helloworlddemo_ci-build_1 ... done
Attaching to helloworlddemo_ci-build_1
ci-build_1  | MSBUILD : error MSB1009: Project file does not exist.
ci-build_1  | Switch: ./src/hello_world_demo.csproj
helloworlddemo_ci-build_1 exited with code 1

Here's my dotnet info:

$ dotnet --info
.NET Command Line Tools (2.1.101)

Product Information:
 Version:            2.1.101
 Commit SHA-1 hash:  6c22303bf0

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.1.101/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.6
  Build    : 74b1c703813c8910df5b96f304b0f2b78cdf194d
@weklund
Copy link
Author

weklund commented Mar 22, 2018

So if the directory you're running dotnet new httpapi has dashes instead of underscores, the template won't create the right files.

I think in the docker-compose it's looking for hello_world_demo.csproj where it's actually hello-world-demo-csproj

There's a mismatch in a few other places as well.

@popov1024
Copy link
Owner

dotnet/templating#1168

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

2 participants