microsoft / generator-docker

Yeoman generator for Docker
Other
346 stars 69 forks source link

Where does the dll come from for C# projects? #97

Open sunshineo opened 8 years ago

sunshineo commented 8 years ago

Hello,

I used the C# project https://github.com/SteveLasker/DotNetCoreMultiService.API I was able to run "dotnet run" directly from my machine and got the service running. I removed the existing docker files and then used "yo docker" to generate them. The main problem I'm facing is that the entrypoint is: ENTRYPOINT dotnet MultiService.API.dll However it seems I can't get MultiService.API.dll to show up in the project even after I run "dotnet run".

Thank you in advance!

--Gordon

SteveLasker commented 8 years ago

Hi Gordon. To answer your question for the title of the issue, the dll names come from the folder name of the project

We just got the yo docker updates out for RC 2 and haven't synchronized all samples to make sure they work on both yo docker and the Docker Tools for VS This is the project I was using to test yo docker https://github.com/SteveLasker/polyglot-api-dotnet The main branch has a completed project that launches a node.js front end to test the dotnet api project Simply open the api-dotnet folder under vs code and hit F5 If you want to test yo docker, you can switch to the before-docker branch of the same repo We can take a look at the samples across our tools as we update for dotnet RTM. Thanks for the feedback. Steve

sunshineo commented 8 years ago

Hi @SteveLasker I cloned the project https://github.com/SteveLasker/polyglot-api-dotnet and opened the api-dotnet folder using vs code. When I hit F5 this happens. f5

I'm using Mac and I have dot-net rc2 and docker installed. When I run on the command line dotnet restore and dotnet run under the api-dotnet folder, I got

The targeted framework { 'Microsoft.NETCore.App': '1.0.0' } was not found.
  - Check application dependencies and target a framework version installed at:
      /usr/local/share/dotnet/shared/Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0-rc2-3002702
  - Alternatively, install the framework version '1.0.0'.
it-sea15228-mbp:api-dotnet ssun$