Bug 19061 - Cannot deploy project
Summary: Cannot deploy project
Status: RESOLVED INVALID
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.12.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-04-15 14:15 UTC by René Ruppert
Modified: 2015-07-15 02:36 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description René Ruppert 2014-04-15 14:15:28 UTC
I'm trying to run the instructor code from XamU session XAM210. It fails to deploy with the following error. Note that usually VS.iOS works pretty well for me!

1>Could not copy the file "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\bin\iPhoneSimulator\Debug\" to the destination file "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\obj\Debug\build_package\assemblies\", because the destination is a folder instead of a file. To copy the source file into a folder, consider using the DestinationFolder parameter instead of DestinationFiles.


Here the complete output:

1>Build started.
1>Project "Demo2_LongRunningTasks.csproj" (_RemoteBuild target(s)):
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (entry point):
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "Demo2_LongRunningTasks.csproj".
1>Target "_VerifyResourcesExist" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Done building target "_VerifyResourcesExist" in project "Demo2_LongRunningTasks.csproj".
1>Target "BeforeResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveReferences" depends on it):
1>Done building target "BeforeResolveReferences" in project "Demo2_LongRunningTasks.csproj".
1>Target "AssignProjectConfiguration" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveReferences" depends on it):
1>Done building target "AssignProjectConfiguration" in project "Demo2_LongRunningTasks.csproj".
1>Target "_SplitProjectReferencesByFileExistence" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveProjectReferences" depends on it):
1>Done building target "_SplitProjectReferencesByFileExistence" in project "Demo2_LongRunningTasks.csproj".
1>Target "ResolveProjectReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveReferences" depends on it):
1>Done building target "ResolveProjectReferences" in project "Demo2_LongRunningTasks.csproj".
1>Target "GetFrameworkPaths" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "GetFrameworkPaths" in project "Demo2_LongRunningTasks.csproj".
1>Target "GetReferenceAssemblyPaths" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "GetReferenceAssemblyPaths" in project "Demo2_LongRunningTasks.csproj".
1>Target "PrepareForBuild" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "PrepareForBuild" in project "Demo2_LongRunningTasks.csproj".
1>Target "GetInstalledSDKLocations" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveSDKReferences" depends on it):
1>Done building target "GetInstalledSDKLocations" in project "Demo2_LongRunningTasks.csproj".
1>Target "ResolveSDKReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "ResolveSDKReferences" in project "Demo2_LongRunningTasks.csproj".
1>Target "ExpandSDKReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "ExpandSDKReferences" in project "Demo2_LongRunningTasks.csproj".
1>Target "ResolveAssemblyReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveReferences" depends on it):
1>Done building target "ResolveAssemblyReferences" in project "Demo2_LongRunningTasks.csproj".
1>Target "AfterResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveReferences" depends on it):
1>Done building target "AfterResolveReferences" in project "Demo2_LongRunningTasks.csproj".
1>Target "ImplicitlyExpandDesignTimeFacades" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "ResolveReferences" depends on it):
1>Done building target "ImplicitlyExpandDesignTimeFacades" in project "Demo2_LongRunningTasks.csproj".
1>Target "ResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "_ComputeReferencesToUpload" depends on it):
1>Done building target "ResolveReferences" in project "Demo2_LongRunningTasks.csproj".
1>Target "_ComputeReferencesToUpload" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Done building target "_ComputeReferencesToUpload" in project "Demo2_LongRunningTasks.csproj".
1>Target "_ComputeBundleContentPaths" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Done building target "_ComputeBundleContentPaths" in project "Demo2_LongRunningTasks.csproj".
1>Target "_GenerateBundleContentDir" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets" from project "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\Demo2_LongRunningTasks.csproj" (target "_PrepareApplicationBundle" depends on it):
1>Could not copy the file "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\bin\iPhoneSimulator\Debug\" to the destination file "C:\tmp\Instructor - XAM210 - Backgrounding\instructor_code\Backgrounding.iOS\Demo2_LongRunningTasks\obj\Debug\build_package\assemblies\", because the destination is a folder instead of a file. To copy the source file into a folder, consider using the DestinationFolder parameter instead of DestinationFiles.
1>Done building target "_GenerateBundleContentDir" in project "Demo2_LongRunningTasks.csproj" -- FAILED.
1>Done building project "Demo2_LongRunningTasks.csproj" -- FAILED.
1>Build FAILED.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Comment 1 Jatin 2015-07-15 02:08:05 UTC
Could you please provide us the test steps you followed. If possible please
attach a small complete project that demonstrates this behavior.

Also can you please add the logs from the following places?:
For VS, 
IDE log: Location: C:\User\AppData\Local\Xamarin\Log\ 
(Devenev file with latest timestamp)
Android Trace log: Location: \AppData\Local\Xamarin\Log\XamarinAndroid
Comment 2 René 2015-07-15 02:36:55 UTC
Project does not exist anymore. Cannot reproduce with other projects.