Closed kspearrin closed 6 years ago
@kspearrin so the 3 projects are .net core? or one of them was net461? Are you having this issue with that specific solution or in general?
All 3 are ASP.NET Core but can target either framework. We target netcoreapp2.0 for docker.
Can you set the MSBuild project output verbosity to detailed (in Tools > Options > Projects and Solutions > Build and Run) and then provide the contents of the Build output panel?
Closing the issue for now, @kspearrin please feel free to reopen if needed.
Here is an example from a .net core 2.0 project with hangfire.io configured that may help @haniamr understand the scenario.
Windows 10 enterprise v1709 VS 2017 v15.5.6 Enterprise VS Build Tools 2017 v15.5.5 (2) Docker Version 17.12.0-ce-win47 (15139) .net core SDK 1.0.3, 1.0.4, 1.1.0 x64 installed
C:\Users\jamie.clayton\Documents\Source\Dpe.Supply-Scheduler\Dominos.Supply.Scheduler\Dominos.Supply.Scheduler.csproj. 1>------ Build started: Project: docker-compose, Configuration: Debug Any CPU ------ 2>------ Build started: Project: Dominos.Supply.Scheduler, Configuration: Debug Any CPU ------ 1>Build started 17/02/2018 3:53:35 PM. 1>Building with tools version "15.0". 1>Target _CheckForInvalidConfigurationAndPlatform: 1> Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ). 1> Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ). 1> Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1> Task "Message" 1> Configuration=Debug 1> Done executing task "Message". 1> Task "Message" 1> Platform=AnyCPU 1> Done executing task "Message". 1> Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('bin\Debug\' != '' and !HasTrailingSlash('bin\Debug\')). 1> Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')). 1> Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('obj\Debug\' != '' and !HasTrailingSlash('obj\Debug\')). 1>Target "_CheckForInvalidConfigurationAndPlatform" skipped. Previously built successfully. 1>Target DockerCheckProjectVersion: 1> Using "CheckProjectVersion" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.Docker.Sdk\build..\tools\Microsoft.Docker.BuildTasks.dll". 1> Task "CheckProjectVersion" 1> Done executing task "CheckProjectVersion". 1>Target DockerSetDevelopmentMode: 1>Target DockerResolveTargetOS: 1> Using "ResolveTargetOS" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.Docker.Sdk\build..\tools\Microsoft.Docker.BuildTasks.dll". 1> Task "ResolveTargetOS" 1> Done executing task "ResolveTargetOS". 1>Target DockerGetServiceReferences: 1> Using "GetServiceReferences" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.Docker.Sdk\build..\tools\Microsoft.Docker.BuildTasks.dll". 1> Task "GetServiceReferences" 2>Build started 17/02/2018 3:53:35 PM. 2>Building with tools version "15.0". 2>Project file contains ToolsVersion="". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424. 1> Done executing task "GetServiceReferences". 2>Target _SetBuildInnerTarget: 2>Target _ComputeTargetFrameworkItems: 2>Target DispatchToInnerBuilds: 2> Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 2> Task "MSBuild" 2> Additional Properties for project "Dominos.Supply.Scheduler.csproj": 2> TargetFramework=netcoreapp2.0 1>Target DockerResolveAppType: 1> Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1> Task "MSBuild" 1> Global Properties: 1> Configuration=Debug 1> Platform=AnyCPU 1> BuildingInsideVisualStudio=false 1> Building with tools version "15.0". 1> Project file contains ToolsVersion="". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424. 1> C:\Users\jamie.clayton\Documents\Source\Dpe.Supply-Scheduler\Dominos.Supply.Scheduler\Dominos.Supply.Scheduler.csproj : error MSB4057: The target "DockerResolveAppType" does not exist in the project. 1> 1> Done building project "Dominos.Supply.Scheduler.csproj" -- FAILED. 1> Done executing task "MSBuild" -- FAILED. 1> 1>Done building project "docker-compose.dcproj" -- FAILED. 1> 1>Build FAILED.
Same problem. My project first targeted only core20 and built successfully with docker. Then i changed it to <TargetFrameworks>net471;netcoreapp2.0</TargetFrameworks>
and it does not build, giving the same error. I understand that multi targeting is not well supported, but it would be nice to have docs on what's working and what's not.
Looks like now it's impossible to build same code for .net core with docker AND full framework...
After finding this issue description, I wanted to eliminate the multi targeting - and took a few good minutes to realise that although using <TargetFrameworks>netcoreapp2.0</TargetFrameworks>
is semantically correct, the problem still happens.
I had to use <TargetFramework>netcoreapp2.0</TargetFramework>
- so drop the s ... I hope this saves time to others too...
Same issue Severity Code Description Project File Line Suppression State Error MSB4057 The target "DockerResolveTargetOS" does not exist in the project. docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 4952
C:\Temp\Test9\WebApplication1\WebApplication1>dotnet --version 2.1.302
Restoring NuGet packages... To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the NuGet Package Manager node and uncheck 'Allow NuGet to download missing packages during build.' Running restore with 8 concurrent jobs. Reading project file C:\Temp\Test9\WebApplication1\WebApplication1\WebApplication1.csproj. Reading project file C:\Temp\Test9\WebApplication1\WebApplication1\WebApplication1.csproj. The restore inputs for 'microsoft.visualstudio.web.codegeneration.tools-netcoreapp2.1-[2.0.4, )' have not changed. No further actions are required to complete the restore. The restore inputs for 'WebApplication1' have not changed. No further actions are required to complete the restore. Committing restore... Tool assets file has not changed. Skipping assets file write. Path: C:\Users\msanjaka.nuget\packages.tools\microsoft.visualstudio.web.codegeneration.tools\2.0.4\netcoreapp2.1\project.assets.json No-Op restore. The cache will not be updated. Path: C:\Users\msanjaka.nuget\packages.tools\microsoft.visualstudio.web.codegeneration.tools\2.0.4\netcoreapp2.1\microsoft.visualstudio.web.codegeneration.tools.nuget.cache Restore completed in 40.7 ms for C:\Temp\Test9\WebApplication1\WebApplication1\WebApplication1.csproj. Committing restore... Assets file has not changed. Skipping assets file writing. Path: C:\Temp\Test9\WebApplication1\WebApplication1\obj\project.assets.json No-Op restore. The cache will not be updated. Path: C:\Temp\Test9\WebApplication1\WebApplication1\obj\WebApplication1.csproj.nuget.cache Restore completed in 12.26 ms for C:\Temp\Test9\WebApplication1\WebApplication1\WebApplication1.csproj.
NuGet Config files used: C:\Users\msanjaka\AppData\Roaming\NuGet\NuGet.Config C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config
Feeds used:
https://api.nuget.org/v3/index.json
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
1>------ Build started: Project: docker-compose, Configuration: Debug Any CPU ------
1>Build started 7/23/2018 5:42:43 PM.
1>Environment at start of build:
1>ALLUSERSPROFILE = C:\ProgramData
1>APPDATA = C:\Users\msanjaka\AppData\Roaming
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>COMPLUS_InstallRoot =
1>COMPLUS_Version =
1>COMPUTERNAME = GURU-LAPTOP3
1>ComSpec = C:\Windows\system32\cmd.exe
1>configsetroot = C:\Windows\ConfigSetRoot
1>FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
1>FPS_BROWSER_USER_PROFILE_STRING = Default
1>FSHARPINSTALLDIR = C:\Program Files (x86)\Microsoft SDKs\F#\10.1\Framework\v4.0\
1>HOMEDRIVE = H:
1>HOMEPATH = \
1>HOMESHARE = \guru-dc\home\mSanjaka
1>IIS_BIN = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE
1>IIS_DRIVE = C:
1>IIS_SITES_HOME = C:\Users\msanjaka\Documents\My Web Sites
1>IIS_USER_HOME = C:\Users\msanjaka\Documents\IISExpress
1>LOCALAPPDATA = C:\Users\msanjaka\AppData\Local
1>LOGONSERVER = \GURU-AWS-AD
1>MSBuildLoadMicrosoftTargetsReadOnly = true
1>MSMPI_BIN = C:\Program Files\Microsoft MPI\Bin\
1>NUMBER_OF_PROCESSORS = 8
1>OneDrive = C:\Users\msanjaka\OneDrive
1>OS = Windows_NT
1>Path = C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Users\msanjaka.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;C:\Program Files (x86)\dotnet\;C:\Program Files\dotnet;C:\Users\msanjaka\AppData\Local\Microsoft\WindowsApps;C:\Users\msanjaka\AppData\Roaming\npm;C:\Users\msanjaka.dotnet\tools
1>PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
1>PkgDefApplicationConfigFile = C:\Users\msanjaka\AppData\Local\Microsoft\VisualStudio\15.0_908c1927\devenv.exe.config
1>PROCESSOR_ARCHITECTURE = x86
1>PROCESSOR_ARCHITEW6432 = AMD64
1>PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
1>PROCESSOR_LEVEL = 6
1>PROCESSOR_REVISION = 9e09
1>ProgramData = C:\ProgramData
1>ProgramFiles = C:\Program Files (x86)
1>ProgramFiles(x86) = C:\Program Files (x86)
1>ProgramW6432 = C:\Program Files
1>PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
1>PUBLIC = C:\Users\Public
1>SystemDrive = C:
1>SystemRoot = C:\Windows
1>TEMP = C:\Users\msanjaka\AppData\Local\Temp
1>TMP = C:\Users\msanjaka\AppData\Local\Temp
1>TVT = C:\Program Files (x86)\Lenovo
1>USERDNSDOMAIN = A2ZMOONLIGHTER.COM
1>USERDOMAIN = A2ZMOONLIGHTER
1>USERDOMAIN_ROAMINGPROFILE = A2ZMOONLIGHTER
1>USERNAME = MSanjaka
1>USERPROFILE = C:\Users\msanjaka
1>VisualStudioDir = C:\Users\msanjaka\Documents\Visual Studio 2017
1>VisualStudioEdition = Microsoft Visual Studio Community 2017
1>VisualStudioVersion = 15.0
1>VS140COMNTOOLS = C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
1>VSAPPIDDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\
1>VSAPPIDNAME = devenv.exe
1>VSLANG = 1033
1>VSSKUEDITION = Community
1>windir = C:\Windows
1>__COMPAT_LAYER = Installer
1>Initial Properties:
1>__COMPAT_LAYER = Installer
1>_DebugSymbolsProduced = false
1>_DeploymentBuiltUpdateInterval = 0
1>_DeploymentBuiltUpdateIntervalUnits = Days
1>_DeploymentDeployManifestIdentity = docker-compose.application
1>_DeploymentFileMappingExtension =
1>_DeploymentUrl =
1>_DirectoryBuildPropsBasePath =
1>_DirectoryBuildPropsFile = Directory.Build.props
1>_DirectoryBuildTargetsBasePath =
1>_DirectoryBuildTargetsFile = Directory.Build.targets
1>_DocumentationFileProduced = false
1>_GenerateBindingRedirectsIntermediateAppConfig = obj\Debug\docker-compose.config
1>_GenerateRestoreGraphProjectEntryInputProperties = ExcludeRestorePackageImports=true
1>_GetChildProjectCopyToOutputDirectoryItems = true
1>_InitialBaseIntermediateOutputPath = obj\
1>_InitialMSBuildProjectExtensionsPath = C:\Temp\Test9\WebApplication1\obj\
1>_OriginalConfiguration = Debug
1>_OriginalPlatform = AnyCPU
1>_ProjectDefaultTargets = Build
1>_ResolveReferenceDependencies = false
1>_SGenDllCreated = false
1>_SGenDllName = docker-compose.XmlSerializers.dll
1>_SGenGenerateSerializationAssembliesConfig = Off
1>_TargetFrameworkVersionWithoutV =
1>AddAdditionalExplicitAssemblyReferences = false
1>AddAppConfigToBuildOutputs = true
1>AllowedReferenceAssemblyFileExtensions =
1> .winmd;
1> .dll;
1> .exe
1>
1>AllowedReferenceRelatedFileExtensions =
1> .pdb;
1> .xml;
1> .pri;
1> .dll.config;
1> .exe.config
1>
1>ALLUSERSPROFILE = C:\ProgramData
1>AndroidTargetsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\MDD\Android\V150\
1>APPDATA = C:\Users\msanjaka\AppData\Roaming
1>AssemblyFoldersConfigFile = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\AssemblyFolders.config
1>AssemblyFoldersConfigFileSearchPath = {AssemblyFoldersFromConfig:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\AssemblyFolders.config,};
1>AssemblyFoldersSuffix = AssemblyFoldersEx
1>AssemblyName = docker-compose
1>AssemblySearchPaths =
1> {CandidateAssemblyFiles};
1> ;
1> {HintPathFromItem};
1> {TargetFrameworkDirectory};
1> {AssemblyFoldersFromConfig:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\AssemblyFolders.config,};
1> {Registry:Software\Microsoft\,,AssemblyFoldersEx};
1> {AssemblyFolders};
1> {GAC};
1> {RawFileName};
1> bin\Debug\
1>
1>AssignTargetPathsDependsOn =
1>AutoUnifyAssemblyReferences = true
1>AvailablePlatforms = Any CPU,x86,x64
1>BaseIntermediateOutputPath = obj\
1>BuildCompileAction = Build
1>BuildDependsOn =
1> DockerCheckProjectVersion;
1> DockerSetDevelopmentMode;
1> DockerResolveTargetOS;
1> DockerGetServiceReferences;
1> DockerResolveAppType;
1> DockerResolveTargetFramework;
1> DockerResolveProjectInputAndOutput;
1> DockerCreateComposeVsGeneratedFiles;
1> DockerPrepareForBuild;
1> DockerBuildServiceReferences;
1> DockerUpdateComposeVsGeneratedFiles;
1>
1> BeforeBuild;
1> CoreBuild;
1> AfterBuild
1> ;
1> DockerComposeBuild;
1> DockerPrepareForLaunch;
1>
1>BuildGenerateSourcesAction = Build
1>BuildingInsideVisualStudio = true
1>BuildingProject = false
1>BuildInParallel = true
1>BuildLinkAction = Build
1>BuildProjectReferences = true
1>BuiltProjectOutputGroupDependsOn = PrepareForBuild
1>CleanDependsOn =
1> DockerCheckProjectVersion;
1> DockerCleanComposeProjectCache;
1> DockerSetDevelopmentMode;
1> DockerResolveTargetOS;
1> DockerGetServiceReferences;
1> DockerResolveAppType;
1> DockerResolveTargetFramework;
1> DockerResolveProjectInputAndOutput;
1> DockerCreateComposeVsGeneratedFiles;
1> DockerCleanWorkspace;
1>
1> BeforeClean;
1> UnmanagedUnregistration;
1> CoreClean;
1> CleanReferencedProjects;
1> CleanPublishFolder;
1> AfterClean
1> ;
1> DockerCleanServiceReferences;
1>
1>CleanFile = docker-compose.dcproj.FileListAbsolute.txt
1>CodeAnalysisApplyLogFileXsl = false
1>CodeAnalysisFailOnMissingRules = false
1>CodeAnalysisForceOutput = true
1>CodeAnalysisGenerateSuccessFile = true
1>CodeAnalysisIgnoreGeneratedCode = true
1>CodeAnalysisIgnoreInvalidTargets = true
1>CodeAnalysisIgnoreMissingIndirectReferences = false
1>CodeAnalysisInputAssembly = bin\Debug\docker-compose
1>CodeAnalysisLogFile = bin\Debug\docker-compose.CodeAnalysisLog.xml
1>CodeAnalysisModuleSuppressionsFile = GlobalSuppressions
1>CodeAnalysisOutputToConsole = false
1>CodeAnalysisOverrideRuleVisibilities = false
1>CodeAnalysisPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\FxCop\
1>CodeAnalysisQuiet = false
1>CodeAnalysisRuleDirectories = ;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\FxCop\Rules
1>CodeAnalysisRuleSet = MinimumRecommendedRules.ruleset
1>CodeAnalysisRuleSetDirectories = ;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\Rule Sets
1>CodeAnalysisSaveMessagesToReport = Active
1>CodeAnalysisSearchGlobalAssemblyCache = true
1>CodeAnalysisStaticAnalysisDirectory = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\
1>CodeAnalysisSucceededFile = bin\Debug\docker-compose.lastcodeanalysissucceeded
1>CodeAnalysisSummary = false
1>CodeAnalysisTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
1>CodeAnalysisTimeout = 120
1>CodeAnalysisTreatWarningsAsErrors = false
1>CodeAnalysisUpdateProject = false
1>CodeAnalysisUseTypeNameInSuppression = true
1>CodeAnalysisVerbose = false
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>CommonTargetsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets
1>CommonXamlResourcesDirectory = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\en-US\
1>CompileDependsOn =
1> ResolveReferences;
1> ResolveKeySource;
1> SetWin32ManifestProperties;
1> FindReferenceAssembliesForReferences;
1> _GenerateCompileInputs;
1> BeforeCompile;
1> _TimeStampBeforeCompile;
1> _GenerateCompileDependencyCache;
1> CoreCompile;
1> _TimeStampAfterCompile;
1> AfterCompile;
1>
1>CompileLicxFilesDependsOn =
1>CompileTargetNameForTemporaryAssembly = CompileTemporaryAssembly
1>ComputeIntermediateSatelliteAssembliesDependsOn =
1> CreateManifestResourceNames
1>
1>COMPUTERNAME = GURU-LAPTOP3
1>ComReferenceExecuteAsTool = false
1>ComReferenceNoClassMembers = false
1>ComSpec = C:\Windows\system32\cmd.exe
1>configsetroot = C:\Windows\ConfigSetRoot
1>Configuration = Debug
1>ConfigurationName = Debug
1>ConsiderPlatformAsProcessorArchitecture = true
1>ContentFilesProjectOutputGroupDependsOn = PrepareForBuild;AssignTargetPaths
1>ContinueOnError = false
1>CoreBuildDependsOn =
1> BuildOnlySettings;
1> PrepareForBuild;
1> PreBuildEvent;
1> ResolveReferences;
1> PrepareResources;
1> ResolveKeySource;
1> Compile;
1> ExportWindowsMDFile;
1> UnmanagedUnregistration;
1> GenerateSerializationAssemblies;
1> CreateSatelliteAssemblies;
1> GenerateManifests;
1> GetTargetPath;
1> PrepareForRun;
1> UnmanagedRegistration;
1> IncrementalClean;
1> PostBuildEvent
1>
1>CoreCleanDependsOn =
1>CoreCompileDependsOn =
1> DesignTimeXamlMarkupCompilation;
1>
1>
1>CoreResGenDependsOn = FindReferenceAssembliesForReferences
1>CreateCustomManifestResourceNamesDependsOn =
1>CreateHardLinksForCopyAdditionalFilesIfPossible = false
1>CreateSatelliteAssembliesDependsOn =
1> _GenerateSatelliteAssemblyInputs;
1> ComputeIntermediateSatelliteAssemblies;
1> GenerateSatelliteAssemblies
1>
1>CreateSymbolicLinksForCopyAdditionalFilesIfPossible = false
1>CurrentSolutionConfigurationContents =
1>DevEnvDir = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\
1>DockerBuildTasksAssembly = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build..\tools\Microsoft.Docker.BuildTasks.dll
1>DockerComposeDownContainersDependsOn =
1> DockerCheckProjectVersion;
1> DockerCleanComposeProjectCache;
1> DockerSetDevelopmentMode;
1> DockerResolveTargetOS;
1> DockerGetServiceReferences;
1> DockerResolveAppType;
1> DockerResolveTargetFramework;
1> DockerResolveProjectInputAndOutput;
1> DockerCreateComposeVsGeneratedFiles;
1>
1>DockerComposeProjectPath = C:\Temp\Test9\WebApplication1\docker-compose.dcproj
1>DockerIntermediateOutputPath = obj\Docker
1>DockerLaunchAction = LaunchBrowser
1>DockerPublishDirectory = obj\Docker\publish
1>DockerServiceName = webapplication1
1>DockerServiceUrl = {Scheme}://localhost:{ServicePort}/api/values
1>DockerTargetOS = Linux
1>DocumentationProjectOutputGroupDependsOn =
1>EmbeddedWin32Manifest =
1>ExpandSDKAllowedReferenceExtensions =
1> .winmd;
1> .dll
1>
1>ExpandSDKReferencesDependsOn =
1> ResolveSDKReferences
1>
1>FindInvalidProjectReferencesDependsOn =
1> GetReferenceTargetPlatformMonikers
1>
1>FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
1>FPS_BROWSER_USER_PROFILE_STRING = Default
1>Framework20Dir = @(_TargetFramework20DirectoryItem)
1>Framework30Dir = @(_TargetFramework30DirectoryItem)
1>Framework35Dir = @(_TargetFramework35DirectoryItem)
1>Framework40Dir = @(_TargetFramework40DirectoryItem)
1>FrameworkDir = @(_TargetFramework40DirectoryItem)
1>FrameworkRegistryBase = Software\Microsoft\
1>FrameworkSDKDir = @(_TargetFrameworkSDKDirectoryItem)
1>FrameworkSDKRoot = C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\
1>FSHARPINSTALLDIR = C:\Program Files (x86)\Microsoft SDKs\F#\10.1\Framework\v4.0\
1>FullReferenceAssemblyNames = Full
1>GenerateManifestsDependsOn =
1> SetWin32ManifestProperties;
1> GenerateApplicationManifest;
1> GenerateDeploymentManifest
1>
1>GetCopyToOutputDirectoryItemsDependsOn =
1> AssignTargetPaths;
1> _SplitProjectReferencesByFileExistence;
1> _GetProjectReferenceTargetFrameworkProperties
1>
1>GetFrameworkPathsDependsOn =
1>GetTargetPathDependsOn =
1>GetTargetPathWithTargetPlatformMonikerDependsOn =
1>HideWarningsAndErrors = false
1>HOMEDRIVE = H:
1>HOMEPATH = \
1>HOMESHARE = \guru-dc\home\mSanjaka
1>ImportByWildcardAfterMicrosoftCommonProps = true
1>ImportByWildcardAfterMicrosoftCommonTargets = true
1>ImportByWildcardBeforeMicrosoftCommonProps = true
1>ImportByWildcardBeforeMicrosoftCommonTargets = true
1>ImportDirectoryBuildProps = true
1>ImportDirectoryBuildTargets = true
1>ImportProjectExtensionProps = true
1>ImportProjectExtensionTargets = true
1>ImportUserLocationsByWildcardAfterMicrosoftCommonProps = true
1>ImportUserLocationsByWildcardAfterMicrosoftCommonTargets = true
1>ImportUserLocationsByWildcardBeforeMicrosoftCommonProps = true
1>ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets = true
1>ImportXamlTargets = true
1>IntermediateOutputPath = obj\Debug\
1>iOSTargetsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\MDD\iOS\V150\
1>IsRestoreTargetsFileLoaded = true
1>LangID = 1033
1>LangName = en-US
1>LoadTimeSensitiveProperties =
1> ;
1>
1>LoadTimeSensitiveTargets =
1> ;
1> XamlMarkupCompilePass1;
1>
1>LOCALAPPDATA = C:\Users\msanjaka\AppData\Local
1>LOGONSERVER = \GURU-AWS-AD
1>MaxTargetPath = 100
1>MicrosoftCommonPropsHasBeenImported = true
1>MicrosoftNETBuildExtensionsTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets
1>MicrosoftNETBuildExtensionsTasksAssembly = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\tools\net46\Microsoft.NET.Build.Extensions.Tasks.dll
1>MsAppxPackageTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets
1>MSBuildAllProjects = ;C:\Program Files\dotnet\sdk\2.1.302\Sdks\Microsoft.Docker.Sdk\Sdk\Sdk.props;C:\Program Files\dotnet\sdk\2.1.302\Sdks\Microsoft.Docker.Sdk\Sdk\Sdk.targets;C:\Temp\Test9\WebApplication1\docker-compose.dcproj;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Xaml.targets;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.NET.Build.Extensions.targets;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets
1>MSBuildAssemblyVersion = 15.0
1>MSBuildBinPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
1>MSBuildExtensionsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild
1>MSBuildExtensionsPath32 = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild
1>MSBuildExtensionsPath64 = C:\Program Files\MSBuild
1>MSBuildFrameworkToolsPath = C:\Windows\Microsoft.NET\Framework\v4.0.30319\
1>MSBuildFrameworkToolsPath32 = C:\Windows\Microsoft.NET\Framework\v4.0.30319\
1>MSBuildFrameworkToolsPath64 = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
1>MSBuildFrameworkToolsRoot = C:\Windows\Microsoft.NET\Framework\
1>MSBuildLoadMicrosoftTargetsReadOnly = true
1>MSBuildNodeCount = 8
1>MSBuildProgramFiles32 = C:\Program Files (x86)
1>MSBuildProjectDefaultTargets = Build
1>MSBuildProjectDirectory = C:\Temp\Test9\WebApplication1
1>MSBuildProjectDirectoryNoRoot = Temp\Test9\WebApplication1
1>MSBuildProjectExtension = .dcproj
1>MSBuildProjectExtensionsPath = C:\Temp\Test9\WebApplication1\obj\
1>MSBuildProjectFile = docker-compose.dcproj
1>MSBuildProjectFullPath = C:\Temp\Test9\WebApplication1\docker-compose.dcproj
1>MSBuildProjectName = docker-compose
1>MSBuildRuntimeType = Full
1>MSBuildRuntimeVersion = 4.0.30319
1>MSBuildSDKsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks
1>MSBuildStartupDirectory = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE
1>MSBuildToolsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
1>MSBuildToolsPath32 = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
1>MSBuildToolsPath64 = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64
1>MSBuildToolsRoot = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild
1>MSBuildToolsVersion = 15.0
1>MSBuildUserExtensionsPath = C:\Users\msanjaka\AppData\Local\Microsoft\MSBuild
1>MSBuildVersion = 15.7.180
1>MSMPI_BIN = C:\Program Files\Microsoft MPI\Bin\
1>MsTestToolsTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\TeamTest\Microsoft.TeamTest.targets
1>NuGetProps = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.props
1>NuGetRestoreTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin......\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets
1>NuGetTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets
1>NUMBER_OF_PROCESSORS = 8
1>OneDrive = C:\Users\msanjaka\OneDrive
1>OS = Windows_NT
1>OutDir = bin\Debug\
1>OutputPath = bin\Debug\
1>OutputType = DockerCompose
1>OverwriteReadOnlyFiles = false
1>Path = C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Users\msanjaka.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;C:\Program Files (x86)\dotnet\;C:\Program Files\dotnet;C:\Users\msanjaka\AppData\Local\Microsoft\WindowsApps;C:\Users\msanjaka\AppData\Roaming\npm;C:\Users\msanjaka.dotnet\tools
1>PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
1>PkgDefApplicationConfigFile = C:\Users\msanjaka\AppData\Local\Microsoft\VisualStudio\15.0_908c1927\devenv.exe.config
1>Platform = AnyCPU
1>PlatformName = AnyCPU
1>PlatformTargetAsMSBuildArchitecture = CurrentArchitecture
1>PlatformTargetAsMSBuildArchitectureExplicitlySet = false
1>PostBuildEventDependsOn =
1>PreBuildEventDependsOn =
1>PrepareForBuildDependsOn = GetFrameworkPaths;GetReferenceAssemblyPaths;AssignLinkMetadata
1>PrepareForRunDependsOn =
1> CopyFilesToOutputDirectory
1>
1>PrepareProjectReferencesDependsOn =
1> AssignProjectConfiguration;
1> _SplitProjectReferencesByFileExistence;
1> _GetProjectReferenceTargetFrameworkProperties
1>
1>PrepareResourceNamesDependsOn =
1> AssignTargetPaths;
1> SplitResourcesByCulture;
1> CreateManifestResourceNames;
1> CreateCustomManifestResourceNames
1>
1>PrepareResourcesDependsOn =
1> XamlMarkupCompilePass1;
1> XamlMarkupCompilePass2;
1>
1> PrepareResourceNames;
1> ResGen;
1> CompileLicxFiles
1>
1>
1>PROCESSOR_ARCHITECTURE = x86
1>PROCESSOR_ARCHITEW6432 = AMD64
1>PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
1>PROCESSOR_LEVEL = 6
1>PROCESSOR_REVISION = 9e09
1>ProcessorArchitecture = msil
1>ProcessorArchitectureAsPlatform = AnyCPU
1>ProduceReferenceAssembly = false
1>ProgramData = C:\ProgramData
1>ProgramFiles = C:\Program Files (x86)
1>ProgramW6432 = C:\Program Files
1>ProjectDesignTimeAssemblyResolutionSearchPaths =
1> {CandidateAssemblyFiles};
1> ;
1> {HintPathFromItem};
1> {TargetFrameworkDirectory};
1> {Registry:Software\Microsoft\,,AssemblyFoldersEx};
1> {RawFileName};
1> C:\Temp\Test9\WebApplication1\bin\Debug\
1>
1>ProjectDir = C:\Temp\Test9\WebApplication1\
1>ProjectExt = .dcproj
1>ProjectFileName = docker-compose.dcproj
1>ProjectFlavor = Client
1>ProjectGuid = 2f1cdb21-ae94-495b-be5f-b5652f4c1d4b
1>ProjectName = docker-compose
1>ProjectPath = C:\Temp\Test9\WebApplication1\docker-compose.dcproj
1>ProjectVersion = 2.1
1>PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
1>PUBLIC = C:\Users\Public
1>PublishableProject =
1>PublishBuildDependsOn =
1> BuildOnlySettings;
1> PrepareForBuild;
1> ResolveReferences;
1> PrepareResources;
1> ResolveKeySource;
1> GenerateSerializationAssemblies;
1> CreateSatelliteAssemblies;
1>
1>PublishDependsOn =
1> _DeploymentUnpublishable
1>
1>PublishDir = bin\Debug\app.publish\
1>PublishOnlyDependsOn =
1> SetGenerateManifests;
1> PublishBuild;
1> BeforePublish;
1> GenerateManifests;
1> CopyFilesToOutputDirectory;
1> _CopyFilesToPublishFolder;
1> _DeploymentGenerateBootstrapper;
1> ResolveKeySource;
1> _DeploymentSignClickOnceDeployment;
1> AfterPublish
1>
1>RebuildDependsOn =
1> BeforeRebuild;
1> Clean;
1> Build;
1> AfterRebuild;
1>
1>ReportingServicesTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\ReportingServices\Microsoft.ReportingServices.targets
1>ResGenDependsOn = ResolveAssemblyReferences;SplitResourcesByCulture;BeforeResGen;CoreResGen;AfterResGen
1>ResGenExecuteAsTool = false
1>ResolveAssemblyReferencesDependsOn =
1> GetFrameworkPaths;
1> GetReferenceAssemblyPaths;
1> PrepareForBuild;
1> ResolveSDKReferences;
1> ExpandSDKReferences;
1>
1>ResolveNuGetPackages = false
1>ResolveReferencesDependsOn =
1>
1> BeforeResolveReferences;
1> AssignProjectConfiguration;
1> ResolveProjectReferences;
1> FindInvalidProjectReferences;
1> ResolveNativeReferences;
1> ResolveAssemblyReferences;
1> GenerateBindingRedirects;
1> ResolveComReferences;
1> AfterResolveReferences
1> ;
1> ResolveTestReferences
1>
1>ResolveSDKReferencesDependsOn =
1> GetInstalledSDKLocations
1>
1>RestoreBuildInParallel = true
1>RestoreContinueOnError = WarnAndContinue
1>RestoreRecursive = true
1>RestoreTaskAssemblyFile = NuGet.Build.Tasks.dll
1>RestoreUseSkipNonexistentTargets = true
1>RoslynTargetsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Roslyn
1>RulesDirectory = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Rules
1>RunCodeAnalysisInputs = bin\Debug\docker-compose
1>RunCppAnalysis = false
1>RunDependsOn =
1>SatelliteDllsProjectOutputGroupDependsOn = PrepareForBuild;PrepareResourceNames
1>SDK35ToolsPath = C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\
1>SDK40ToolsPath = C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\
1>SDKRedistOutputGroupDependsOn = ResolveSDKReferences;ExpandSDKReferences
1>SDKReferenceDirectoryRoot = C:\Users\msanjaka\AppData\Local\Microsoft SDKs;C:\Program Files (x86)\Microsoft SDKs
1>SDKReferenceRegistryRoot = Software\Microsoft\Microsoft SDKs
1>ServiceFabricServiceProjectTargets = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\Service Fabric Tools\Microsoft.VisualStudio.Azure.Fabric.ServiceProject.targets
1>SGenFilesOutputGroupDependsOn =
1>SGenShouldGenerateSerializer = true
1>SGenUseKeep = false
1>SGenUseProxyTypes = true
1>ShouldMarkCertainSDKReferencesAsRuntimeOnly = true
1>SkipCopyBuildProduct = true
1>SkipCopyUnchangedFiles = true
1>SkipImportNuGetBuildTargets = true
1>SkipImportNuGetProps = true
1>SolutionDir = C:\Temp\Test9\WebApplication1\
1>SolutionExt = .sln
1>SolutionFileName = WebApplication1.sln
1>SolutionName = WebApplication1
1>SolutionPath = C:\Temp\Test9\WebApplication1\WebApplication1.sln
1>SourceControlInformationFeatureSupported = true
1>SourceFilesProjectOutputGroupDependsOn = PrepareForBuild;AssignTargetPaths
1>SystemDrive = C:
1>SystemRoot = C:\Windows
1>TargetCulture = *
1>TargetDeployManifestFileName = docker-compose.application
1>TargetDir = C:\Temp\Test9\WebApplication1\bin\Debug\
1>TargetedFrameworkDir = @(_TargetedFrameworkDirectoryItem)
1>TargetedSDKArchitecture = msil
1>TargetedSDKConfiguration = Debug
1>TargetFileName = docker-compose
1>TargetFrameworkAsMSBuildRuntime = CurrentRuntime
1>TargetName = docker-compose
1>TargetPath = C:\Temp\Test9\WebApplication1\bin\Debug\docker-compose
1>TargetPlatformDisplayName = Windows 7.0
1>TargetPlatformIdentifier = Windows
1>TargetPlatformMoniker = Windows,Version=7.0
1>TargetPlatformRegistryBase = Software\Microsoft\Microsoft SDKs\Windows
1>TargetPlatformSdkPath =
1>TargetPlatformVersion = 7.0
1>TargetRuntime = None
1>TaskKeyToken = 31bf3856ad364e35
1>TaskVersion = 4.0.0.0
1>TEMP = C:\Users\msanjaka\AppData\Local\Temp
1>TMP = C:\Users\msanjaka\AppData\Local\Temp
1>TVT = C:\Program Files (x86)\Lenovo
1>UnmanagedRegistrationDependsOn =
1>UnmanagedUnregistrationDependsOn =
1>UseCommonOutputDirectory = false
1>USERDNSDOMAIN = A2ZMOONLIGHTER.COM
1>USERDOMAIN = A2ZMOONLIGHTER
1>USERDOMAIN_ROAMINGPROFILE = A2ZMOONLIGHTER
1>USERNAME = MSanjaka
1>USERPROFILE = C:\Users\msanjaka
1>UseSourcePath = true
1>UseVisualStudioTelemetry = true
1>ValidateRuntimeIdentifierCompatibility = false
1>VCTargetsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\
1>VCTargetsPath10 = C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\
1>VCTargetsPath11 = C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\
1>VCTargetsPath12 = C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\
1>VCTargetsPath14 = C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\
1>VisualStudioDir = C:\Users\msanjaka\Documents\Visual Studio 2017
1>VisualStudioEdition = Microsoft Visual Studio Community 2017
1>VisualStudioVersion = 15.0
1>VS140COMNTOOLS = C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
1>VSAPPIDDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\
1>VSAPPIDNAME = devenv.exe
1>VSIDEResolvedNonMSBuildProjectOutputs =
@haniamr Any update on this ? I have same issue here with a webapi targeting netcoreapp2.0 and netcoreapp2.1
@kspearrin the only thing I did for now was to unload the docker-compose project from visual studio
@candoumbe , what version of VS are you using?
@bwateratmsft I'm using VS 2017 update 15.8.1
@candoumbe If possible, can you try this as a workaround:
Beginning with 15.8 we added support for Docker without any docker-compose project, we simply build and run from the dockerfile. Please note that this action will rewrite your dockerfile so if you need custom changes in the dockerfile, you can instruct it to keep the previous copy and rename it, and then move your needed changes.
@bwateratmsft is Docker-support-without-docker-compose-project specific to AspNetCore projects? Yesterday I added Docker support to a .NET Core console application using VS 15.8.2 and it still created the docker-compose project...
@alexvy86 Yes, that is true currently
@haniamr This issue is still happening when targeting multiple frameworks.
vs 2017 community version.
Thank you. Best Regards, BVMV SANJAKA
On Thursday, August 30, 2018 12:26 PM, Brandon Waterloo [MSFT] <notifications@github.com> wrote:
@candoumbe , what version of VS are you using?— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@msanjaka If you go to Help > About Microsoft Visual Studio, which version do you see? e.g. 15.7.5, 15.8.1, etc.
I am having the same error after adding multiple targets as
Here is the logs from my build output >
Restoring NuGet packages... To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the NuGet Package Manager node and uncheck 'Allow NuGet to download missing packages during build.' Running restore with 4 concurrent jobs. Reading project file c:\users\jitendra\source\repos\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj. Restoring packages for c:\users\jitendra\source\repos\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj... Restoring packages for .NETFramework,Version=v4.6.1... Resolving conflicts for .NETFramework,Version=v4.6.1... Restoring packages for .NETCoreApp,Version=v2.0... Resolving conflicts for .NETCoreApp,Version=v2.0... Scanning packages for runtime.json files... Restoring packages for .NETFramework,Version=v4.6.1/win7-x86... Resolving conflicts for .NETFramework,Version=v4.6.1/win7-x86... Scanning packages for runtime.json files... Merging in runtimes defined in package/Microsoft.NETCore.App 2.0.0. Merging in runtimes defined in package/Microsoft.NETCore.DotNetHostPolicy 2.0.0. Merging in runtimes defined in package/Microsoft.NETCore.Platforms 2.0.0. Merging in runtimes defined in package/Microsoft.NETCore.DotNetHostResolver 2.0.0. Merging in runtimes defined in package/Microsoft.NETCore.DotNetAppHost 2.0.0. Restoring packages for .NETCoreApp,Version=v2.0/win7-x86... Resolving conflicts for .NETCoreApp,Version=v2.0/win7-x86... Checking compatibility of packages on .NETFramework,Version=v4.6.1. All packages and projects are compatible with .NETFramework,Version=v4.6.1. Checking compatibility of packages on .NETCoreApp,Version=v2.0. All packages and projects are compatible with .NETCoreApp,Version=v2.0. Checking compatibility of packages on .NETFramework,Version=v4.6.1 (win7-x86). All packages and projects are compatible with .NETFramework,Version=v4.6.1 (win7-x86). Checking compatibility of packages on .NETCoreApp,Version=v2.0 (win7-x86). All packages and projects are compatible with .NETCoreApp,Version=v2.0 (win7-x86). Committing restore... Writing lock file to disk. Path: c:\users\jitendra\source\repos\ConsoleApp1\ConsoleApp1\obj\project.assets.json Writing cache file to disk. Path: c:\users\jitendra\source\repos\ConsoleApp1\ConsoleApp1\obj\ConsoleApp1.csproj.nuget.cache Restore completed in 73.68 ms for c:\users\jitendra\source\repos\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj. NuGet package restore finished. 1>------ Rebuild All started: Project: docker-compose, Configuration: Release Any CPU ------ 1>Build started 22-11-2018 13:22:44. 1>Building with tools version "15.0". 1>Target "EnableIntermediateOutputPathMismatchWarning" skipped, due to false condition; ('$(RestoreProjectStyle)' == 'PackageReference') was evaluated as ('' == 'PackageReference'). 1>Target _CheckForInvalidConfigurationAndPlatform: 1> Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ). 1> Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ). 1> Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1> Task "Message" 1> Configuration=Release 1> Done executing task "Message". 1> Task "Message" 1> Platform=AnyCPU 1> Done executing task "Message". 1> Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('bin\Release\' != '' and !HasTrailingSlash('bin\Release\')). 1> Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')). 1> Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('obj\Release\' != '' and !HasTrailingSlash('obj\Release\')). 1> Task "Error" skipped, due to false condition; ( '$(_InitialMSBuildProjectExtensionsPath)' != '' And '$(MSBuildProjectExtensionsPath)' != '$(_InitialMSBuildProjectExtensionsPath)' ) was evaluated as ( 'c:\users\jitendra\source\repos\ConsoleApp1\obj\' != '' And 'c:\users\jitendra\source\repos\ConsoleApp1\obj\' != 'c:\users\jitendra\source\repos\ConsoleApp1\obj\' ). 1> Task "Warning" skipped, due to false condition; ( '$(EnableBaseIntermediateOutputPathMismatchWarning)' == 'true' And '$(_InitialBaseIntermediateOutputPath)' != '$(BaseIntermediateOutputPath)' And '$(BaseIntermediateOutputPath)' != '$(MSBuildProjectExtensionsPath)' ) was evaluated as ( '' == 'true' And 'obj\' != 'obj\' And 'obj\' != 'c:\users\jitendra\source\repos\ConsoleApp1\obj\' ). 1>Target BeforeRebuild: 1>Target DockerCheckProjectVersion: 1> Using "CheckProjectVersion" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\..\tools\Microsoft.Docker.BuildTasks.dll". 1> Task "CheckProjectVersion" 1> Done executing task "CheckProjectVersion". 1>Target DockerCleanComposeProjectCache: 1> Using "CleanComposeProjectCache" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\..\tools\Microsoft.Docker.BuildTasks.dll". 1> Task "CleanComposeProjectCache" 1> Done executing task "CleanComposeProjectCache". 1>Target DockerSetDevelopmentMode: 1>Target DockerResolveTargetOS: 1> Using "ResolveTargetOS" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\..\tools\Microsoft.Docker.BuildTasks.dll". 1> Task "ResolveTargetOS" 1> Done executing task "ResolveTargetOS". 1>Target DockerGetServiceReferences: 1> Using "GetServiceReferences" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\..\tools\Microsoft.Docker.BuildTasks.dll". 1> Task "GetServiceReferences" 1> docker-compose -f "c:\users\jitendra\source\repos\ConsoleApp1\docker-compose.yml" -f "c:\users\jitendra\source\repos\ConsoleApp1\docker-compose.override.yml" -p dockercompose8528460476543838612 --no-ansi config 1> The DOCKER_REGISTRY variable is not set. Defaulting to a blank string. 1> services: 1> consoleapp1: 1> build: 1> context: c:\users\jitendra\source\repos\ConsoleApp1 1> dockerfile: ConsoleApp1/Dockerfile 1> image: consoleapp1 1> version: '3.4' 1> Done executing task "GetServiceReferences". 1>Target DockerResolveAppType: 1> Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1> Task "MSBuild" 1> Global Properties: 1> Configuration=Release 1> Platform=AnyCPU 1> BuildingInsideVisualStudio=false 1> Building with tools version "15.0". 1> Project file contains ToolsVersion="". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424. 1> c:\users\jitendra\source\repos\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj : error MSB4057: The target "DockerResolveAppType" does not exist in the project. 1> 1> Done building project "ConsoleApp1.csproj" -- FAILED. 1> Done executing task "MSBuild" -- FAILED. 1> 1>Done building project "docker-compose.dcproj" -- FAILED. 1> 1>Build FAILED. 1> 1>c:\users\jitendra\source\repos\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj : error MSB4057: The target "DockerResolveAppType" does not exist in the project. 1> 0 Warning(s) 1> 1 Error(s) 1> 1>Time Elapsed 00:00:03.00 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Same issue, Enterprise 15.9.3.
I cannot find "Add Docker" anything on solution nor the project. With or without docker-compose.dcproj loaded. The project is a commandline application.
@pasisavolainen , in 15.9.3 for console applications, you need to do right click the project and do Add > Container Orchestrator Support, and choose Docker Compose (or any other orchestrator that's available).
I'm also having this problem. I've created a minimal reproduction here - https://github.com/distantcam/MultiTargetDockerTest
Building in VS 15.9.7 still returns the same error. The target "DockerResolveAppType" does not exist in the project.
Still having this problem with VS 2019
Hey @distantcam , unfortunately it isn't supported in the VS Docker tooling to target .NET framework and .NET core at once, due to incompatibilities in the project system. EDIT: Clarification
@bwateratmsft Do you mean it's not supported at all, or just with the Docker tooling? Because if it's just not supported at all you might want to communicate that to the thousands of projects that are already mixing frameworks.
https://github.com/search?l=XML&q=TargetFrameworks&type=Code
@distantcam Sorry for the ambiguity, it's not supported just with the Docker tooling.
Hello everyone! I am having the same issue. I am using Visual Studio 2022 v17.2.0 Preview 3.0 (had to move to preview because of a fix not available in stable version yet). My solution's configuration is based on a few .NET 6.0 class libraries, a single (dockerized) .NET 6.0 web API, an (dockerized) Angular app (as an .esproj) and a docker-compose project.
I want to achieve the following:
I currently cannot build the solution when targeting the docker-compose project:
3>------ Build started: Project: docker-compose, Configuration: Debug Any CPU ------
3>H:\git\personal\Bookary\src\Bookary.WebApp\Bookary.WebApp.esproj : error MSB4057: The target "DockerResolveAppType" does not exist in the project.
3>Done building project "Bookary.WebApp.esproj" -- FAILED.
========== Build: 2 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
FYI: the code is available here at the moment: https://github.com/HunteRoi/bookary/tree/webapp-angular
Can I have some help to troubleshoot the problem and solve it ASAP please?
The Angular Dockerfile --> https://github.com/HunteRoi/bookary/blob/webapp-angular/src/Bookary.WebApp/Dockerfile The .NET 6.0 Dockerfile --> https://github.com/HunteRoi/bookary/blob/webapp-angular/src/Bookary.RestAPI/Dockerfile The Dockercompose --> https://github.com/HunteRoi/bookary/blob/webapp-angular/docker-compose.yml The DockerCompose override --> https://github.com/HunteRoi/bookary/blob/webapp-angular/docker-compose.override.yml
@HunteRoi, .esproj is also not a supported project type. You could consider opening a suggestion in VS developer community. As a workaround, you could place the dockerfile under a subfolder and the compose project will not try to debug this service.
Is there any plan for the Docker tooling to support multi-targeting?
netcoreapp2.0;net461
Added docker support to my 3 projects. Trying to run
docker-compose
debug from inside VS gives the following errors:Dockerfile (from one project)
VS info