aspnet / aspnet-docker

[Archived] ASP.NET Core Docker images for 1.x. Go to https://github.com/dotnet/dotnet-docker for 2.1 and up.
https://asp.net
719 stars 171 forks source link

Unable to build docker compose app for a project with multiple TargetFrameworks #274

Closed mkosieradzki closed 7 years ago

mkosieradzki commented 7 years ago

If you are having an issue with microsoft/aspnet, please open an issue on

Steps to reproduce the issue

Use VS docker tools in a project that has <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>

and no <TargetFramework> element

(try to build project)

Expected behavior

Project builds successfully

Actual behavior

error MSB4057: The target "DockerResolveAppType" does not exist in the project.

Additional information (e.g. issue happens only occasionally)

I am using VS 2017.3 preview 7 and .net core 2.0 preview 2

Output of dotnet --info

.NET Command Line Tools (2.0.0-preview2-006497)

Product Information:
 Version:            2.0.0-preview2-006497
 Commit SHA-1 hash:  06a2093335

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.0-preview2-006497\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0-preview2-25407-01
  Build    : 40c565230930ead58a50719c0ec799df77bddee9

Output of docker info

Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 5
Server Version: 17.07.0-ce-rc1
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: l2bridge l2tunnel nat null overlay transparent
 Log: awslogs etwlogs fluentd json-file logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 15063 (15063.0.amd64fre.rs2_release.170317-1834)
Operating System: Windows 10 Pro
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 23.98GiB
Name: [REMOVED]
ID: DWYS:45ZN:KG4M:Z7UP:2SNC:OHWN:VY6H:JQ4H:IF6H:4D6K:6FCX:R6GV
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: -1
 Goroutines: 24
 System Time: 2017-08-05T00:26:27.782016+02:00
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
natemcmaster commented 7 years ago

This looks like a duplicate of https://github.com/Microsoft/DockerTools/issues/34

mkosieradzki commented 7 years ago

Thanks a lot @natemcmaster - I was unable to find correct repo!

natemcmaster commented 7 years ago

@mkosieradzki no problem :)