Bug 34889 - System.IO.FileNotFoundException: Could not find file
Summary: System.IO.FileNotFoundException: Could not find file
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-10-14 22:22 UTC by Rishi
Modified: 2016-08-29 09:44 UTC (History)
6 users (show)

Tags: BZCU
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 FIXED

Description Rishi 2015-10-14 22:22:02 UTC
Build fails with the following error for my Project using PCL.




C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(501,3): error : Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
3>  System.IO.FileNotFoundException: Could not find file "/Users/admin/Library/Caches/Xamarin/mtbs/builds/CalculatorAppIOS/47f45f216fe3766c8715d2be516a8141/C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/MonoTouch/v1.0/Facades/System.Collections.Concurrent.dll".
3>  File name: '/Users/admin/Library/Caches/Xamarin/mtbs/builds/CalculatorAppIOS/47f45f216fe3766c8715d2be516a8141/C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/MonoTouch/v1.0/Facades/System.Collections.Concurrent.dll'
3>    at System.IO.FileInfo.get_Length () [0x00000] in <filename unknown>:0 
3>    at Xamarin.DRM.AssemblyVerifier.GetAssemblySize (System.String fileName, Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0 
3>    at Xamarin.DRM.AssemblyVerifier.AddFileSize (System.String file, Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0 
3>    at MonoTouch.Tuner.MonoTouchManifestResolver.Load (System.String file) [0x00000] in <filename unknown>:0 
3>    at MonoTouch.Target.Initialize (Boolean show_warnings) [0x00000] in <filename unknown>:0 
3>    at MonoTouch.Application.Initialize () [0x00000] in <filename unknown>:0 
3>    at MonoTouch.Application.Build () [0x00000] in <filename unknown>:0 
3>    at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
3>    at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 
3>  Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch execution finished.
Comment 1 Rishi 2015-10-15 05:40:00 UTC
The Diagnostic Build Output:


>Project Performance Summary:
3>        4 ms  E:\Share\xamarin\CalcApp1 - Copy\CalculatorAppLibrary\CalculatorAppLibrary.csproj   3 calls
3>                  2 ms  GetTargetPath                              1 calls
3>                  1 ms  GetNativeManifest                          1 calls
3>                  1 ms  GetCopyToOutputDirectoryItems              1 calls
3>     5912 ms  E:\Share\xamarin\CalcApp1 - Copy\CalculatorAppIOS\CalculatorAppIOS.csproj   1 calls
3>
3>Target Performance Summary:
3>        0 ms  _CoreCompileImageAssets                    1 calls
3>        0 ms  _GenerateBundleName                        1 calls
3>        0 ms  _CollectAssemblies                         1 calls
3>        0 ms  PrepareForBuild                            1 calls
3>        0 ms  _SetEmbeddedWin32ManifestProperties        1 calls
3>        0 ms  GetCopyToOutputDirectoryXamlAppDefs        2 calls
3>        0 ms  _SetMtouchProjectDirectory                 1 calls
3>        0 ms  _ResolveWatchAppReferences                 1 calls
3>        0 ms  _CoreCompileColladaAssets                  1 calls
3>        0 ms  _SplitWatchAppReferencesByExistent         1 calls
3>        0 ms  Compile                                    1 calls
3>        0 ms  CreateCustomManifestResourceNames          1 calls
3>        0 ms  GetReferenceAssemblyPaths                  1 calls
3>        0 ms  _CompileTextureAtlases                     1 calls
3>        0 ms  BeforeResGen                               1 calls
3>        0 ms  GetInstalledSDKLocations                   1 calls
3>        0 ms  _CompileImageAssets                        1 calls
3>        0 ms  _CheckForCompileOutputs                    1 calls
3>        0 ms  _CheckForInvalidTargetFrameworkProfile     1 calls
3>        0 ms  ResolveReferences                          1 calls
3>        0 ms  CreateSatelliteAssemblies                  1 calls
3>        0 ms  _CopySourceItemsToOutputDirectory          1 calls
3>        0 ms  SetWin32ManifestProperties                 1 calls
3>        0 ms  PrepareResources                           1 calls
3>        0 ms  _CompileSceneKitAssets                     1 calls
3>        0 ms  AfterBuild                                 1 calls
3>        0 ms  AfterCompile                               1 calls
3>        0 ms  ValidationExtension                        1 calls
3>        0 ms  _GenerateSatelliteAssemblyInputs           1 calls
3>        0 ms  GetFrameworkPaths                          1 calls
3>        0 ms  CleanXsdCodeGen                            1 calls
3>        0 ms  AfterResGen                                1 calls
3>        0 ms  _GenerateCompileInputs                     1 calls
3>        0 ms  GetTargetPath                              2 calls
3>        0 ms  BuildOnlySettings                          1 calls
3>        0 ms  _SeparateAppExtensionReferences            1 calls
3>        0 ms  ResGen                                     1 calls
3>        0 ms  DesignTimeXamlMarkupCompilation            1 calls
3>        0 ms  ResolveSDKReferences                       1 calls
3>        0 ms  _OptimizePngImages                         1 calls
3>        0 ms  PrepareForRun                              1 calls
3>        0 ms  CompileRdlFiles                            1 calls
3>        0 ms  PrepareRdlFiles                            1 calls
3>        0 ms  BeforeCompile                              1 calls
3>        0 ms  _SetTargetFrameworkMonikerAttribute        1 calls
3>        0 ms  BeforeResolveReferences                    1 calls
3>        0 ms  AfterResolveReferences                     1 calls
3>        0 ms  _CompileColladaAssets                      1 calls
3>        0 ms  ExpressionBuildExtension                   1 calls
3>        0 ms  PrepareResourceNames                       1 calls
3>        0 ms  BeforeBuild                                1 calls
3>        0 ms  SplitResourcesByCulture                    1 calls
3>        0 ms  _CompileInterfaceDefinitions               1 calls
3>        0 ms  GenerateTargetFrameworkMonikerAttribute    1 calls
3>        0 ms  _SplitProjectReferencesByFileExistence     2 calls
3>        0 ms  _GenerateBuildSessionId                    1 calls
3>        0 ms  CoreBuild                                  1 calls
3>        0 ms  ExpandSDKReferences                        1 calls
3>        1 ms  AssignTargetPaths                          2 calls
3>        1 ms  _CollectPngImages                          1 calls
3>        1 ms  GetNativeManifest                          1 calls
3>        1 ms  AssignProjectConfiguration                 1 calls
3>        1 ms  PreXsdCodeGen                              1 calls
3>        1 ms  CoreResGen                                 1 calls
3>        1 ms  GetBundleResourceWithLogicalNameItems      1 calls
3>        1 ms  _CollectColladaAssets                      1 calls
3>        2 ms  _CleanGetCurrentAndPriorFileWrites         1 calls
3>        2 ms  _AfterCoreOptimizePngImages                1 calls
3>        2 ms  _CheckForInvalidConfigurationAndPlatform   2 calls
3>        2 ms  _CopyOutOfDateSourceItemsToOutputDirectoryAlways   1 calls
3>        2 ms  GenerateCompiledExpressionsTempFile        1 calls
3>        3 ms  ImplicitlyExpandDesignTimeFacades          1 calls
3>        3 ms  _CopyFilesMarkedCopyLocal                  1 calls
3>        3 ms  IncrementalClean                           1 calls
3>        6 ms  CopyFilesToMacOutputDirectory              1 calls
3>        7 ms  GetCopyToOutputDirectoryItems              2 calls
3>       10 ms  _SayHello                                  1 calls
3>       10 ms  _DetectAppManifest                         1 calls
3>       10 ms  _DetectSdkLocations                        1 calls
3>       10 ms  ResolveAssemblyReferences                  1 calls
3>       11 ms  _GetNativeExecutableName                   1 calls
3>       12 ms  _CollectITunesArtwork                      1 calls
3>       17 ms  _CoreCompileTextureAtlases                 1 calls
3>       17 ms  _CollectBundleResources                    1 calls
3>       24 ms  _CoreCompileSceneKitAssets                 1 calls
3>       27 ms  ResolveProjectReferences                   1 calls
3>       27 ms  _ConvertDebuggingFiles                     1 calls
3>       40 ms  _DetectSigningIdentity                     1 calls
3>       45 ms  _CompileAppManifest                        1 calls
3>       63 ms  CopyFilesToOutputDirectory                 1 calls
3>       68 ms  _CopyContentToBundle                       1 calls
3>      134 ms  _UnpackLibraryResources                    1 calls
3>      162 ms  CoreCompile                                1 calls
3>      920 ms  _CoreOptimizePngImages                     4 calls
3>      964 ms  _CompileToNative                           1 calls
3>     3303 ms  _CoreCompileInterfaceDefinitions           1 calls
3>
3>Task Performance Summary:
3>        0 ms  ReadLinesFromFile                          1 calls
3>        0 ms  Message                                    6 calls
3>        0 ms  ResolveNonMSBuildProjectOutput             1 calls
3>        0 ms  AssignCulture                              1 calls
3>        0 ms  GetReferenceAssemblyPaths                  1 calls
3>        0 ms  Delete                                     2 calls
3>        0 ms  CallTarget                                 1 calls
3>        0 ms  MakeDir                                    1 calls
3>        0 ms  GetFrameworkPath                           1 calls
3>        0 ms  AssignProjectConfiguration                 1 calls
3>        0 ms  GenerateBuildSessionId                     1 calls
3>        0 ms  FindAppConfigFile                          1 calls
3>        1 ms  AssignTargetPath                          12 calls
3>        1 ms  FindUnderPath                              5 calls
3>        1 ms  CollectMonotouchReferences                 1 calls
3>        1 ms  CreateItem                                 4 calls
3>        1 ms  ConvertToAbsolutePath                      1 calls
3>        2 ms  RemoveDuplicates                           2 calls
3>        2 ms  WriteLinesToFile                           4 calls
3>        6 ms  CopyFilesToBuildServer                     1 calls
3>       10 ms  FindItemWithLogicalName                    1 calls
3>       10 ms  SayHello                                   1 calls
3>       10 ms  DetectSdkLocations                         1 calls
3>       10 ms  ResolveAssemblyReference                   1 calls
3>       11 ms  GetNativeExecutableName                    1 calls
3>       12 ms  CollectITunesArtwork                       1 calls
3>       17 ms  TextureAtlas                               1 calls
3>       18 ms  CollectBundleResources                     2 calls
3>       20 ms  RemoveDir                                  1 calls
3>       23 ms  CompileSceneKitAssets                      1 calls
3>       25 ms  CompileAppManifest                         1 calls
3>       27 ms  ConvertPdbToMdb                            1 calls
3>       32 ms  MSBuild                                    3 calls
3>       40 ms  DetectSigningIdentity                      1 calls
3>       66 ms  SmartCopy                                  1 calls
3>       67 ms  Copy                                       4 calls
3>      133 ms  UnpackLibraryResources                     1 calls
3>      162 ms  Csc                                        1 calls
3>      920 ms  OptimizeImage                              4 calls
3>      964 ms  MTouch                                     1 calls
3>     3303 ms  IBTool                                     1 calls
3>
3>Build FAILED.
Comment 2 Al Clark [MSFT] 2015-10-16 09:08:26 UTC
Hi Rishi.

Would you be able to please include your full version information of both your Windows and Mac systems and also a sample project?

Xamarin Studio in OS X
"Xamarin Studio -> About Xamarin Studio -> Show Details -> Copy Information [button]"

Xamarin Studio in Windows
"Help -> About -> Show Details -> Copy Information [button]"

Visual Studio
"Help -> About Microsoft Visual Studio -> Copy Info [button]"

Thanks,
Alan
Comment 3 Rishi 2015-10-19 04:52:22 UTC
Hi Alan,

The Full version information on Windows is given below:


Microsoft Visual Studio Ultimate 2012
Version 11.0.60610.01 Update 3
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Ultimate

Architecture and Modeling Tools   04940-004-0038003-02465
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2012   04940-004-0038003-02465
Microsoft LightSwitch for Visual Studio 2012

Office Developer Tools   04940-004-0038003-02465
Microsoft Office Developer Tools

Team Explorer for Visual Studio 2012   04940-004-0038003-02465
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012   04940-004-0038003-02465
Microsoft Visual Basic 2012

Visual C# 2012   04940-004-0038003-02465
Microsoft Visual C# 2012

Visual C++ 2012   04940-004-0038003-02465
Microsoft Visual C++ 2012

Visual F# 2012   04940-004-0038003-02465
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker   04940-004-0038003-02465
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Visual Studio 2012 SharePoint Developer Tools   04940-004-0038003-02465
Microsoft Visual Studio 2012 SharePoint Developer Tools

Microsoft Practices Project Linker   1.0
Microsoft patterns & practices project linker

NuGet Package Manager   2.8.60318.667
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   11.1.20627.00
Microsoft SQL Server Data Tools

Web Developer Tools   1.2.40308.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
Web Form Templates: Includes the default templates for Web Form Applications.
Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.

Xamarin   3.11.666.0 (ebae43a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.4.16 (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.10.2.0 (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 4 Rishi 2015-10-26 05:26:08 UTC
Hi Alan,

Can you help me out with this bug?
Comment 5 Rishi 2016-08-29 09:44:20 UTC
Bug Fixed after the xamarin update.