I get the error after creating a new blank Xamarin project. As soon as the project is generated I get the errors:
Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. Droid2 1 Active
Warning The "ChecksumAlgorithm" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property. Droid2
Warning The "Csc" task could not be initialized with its input parameters. Droid2
I've tried several times uninstalling Xamarin and reinstalling to no avail.
The build log file is too big to add in its entirety so I just added the last bit. (30000 char limit)
Target "_ExtractLibraryProjectImports" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Using "ReadLibraryProjectImportsCache" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
Task "ReadLibraryProjectImportsCache"
Task ReadLibraryProjectImportsCache
CacheFile: obj\Debug\libraryprojectimports.cache
Jars:
ResolvedAssetDirectories:
ResolvedResourceDirectories:
ResolvedEnvironmentFiles:
ResolvedResourceDirectoryStamps:
Done executing task "ReadLibraryProjectImportsCache".
Done building target "_ExtractLibraryProjectImports" in project "Droid2.csproj".
Target "_CrunchLibraryProjectImports" skipped, due to false condition; ( '$(AndroidExplicitCrunch)' == 'True' And '$(AndroidApplication)' != '' And $(AndroidApplication)) was evaluated as ( 'False' == 'True' And 'true' != '' And true).
Target "_AddMultiDexDependencyJars" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Task "CreateItem" skipped, due to false condition; ('$(AndroidEnableMultiDex)' == 'True') was evaluated as ('False' == 'True').
Done building target "_AddMultiDexDependencyJars" in project "Droid2.csproj".
Target "_BuildLibraryImportsCache" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Skipping target "_BuildLibraryImportsCache" because all output files are up-to-date with respect to the input files.
Input files: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll;D:\Play App\Droid2\Droid2\Droid2.csproj;obj\Debug\build.props
Output files: obj\Debug\libraryimports.cache
Done building target "_BuildLibraryImportsCache" in project "Droid2.csproj".
Target "_GetLibraryImports" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Using "ReadImportedLibrariesCache" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
Task "ReadImportedLibrariesCache"
Task ReadImportedLibrariesCache
CacheFile: obj\Debug\libraryimports.cache
NativeLibraries:
Jars:
ManifestDocuments:
Done executing task "ReadImportedLibrariesCache".
Task "CreateItem" skipped, due to false condition; ('#(ExtractedNativeLibraryImports)' != '') was evaluated as ('' != '').
Done building target "_GetLibraryImports" in project "Droid2.csproj".
Target "GetNativeProjectLibraries" skipped, due to false condition; ($(NativeAndroidInstalled)) was evaluated as (false).
Target "_GetLibraryImports" skipped. Previously built successfully.
Target "_CheckDuplicateJavaLibraries" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Using "CheckDuplicateJavaLibraries" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
Task "CheckDuplicateJavaLibraries"
JavaSourceFiles:
JavaLibraries:
LibraryProjectJars:
Done executing task "CheckDuplicateJavaLibraries".
Done building target "_CheckDuplicateJavaLibraries" in project "Droid2.csproj".
Target "_ValidateResourceCache" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Using "ReadAdditionalResourcesFromAssemblyCache" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
Task "ReadAdditionalResourcesFromAssemblyCache"
Task ReadAdditionalResourcesFromAssemblyCache
CacheFile: obj\Debug\resourcepaths.cache
AdditionalAndroidResourcePaths:
AdditionalJavaLibraryReferences:
AdditionalNativeLibraryReferences:
IsValid: True
Done executing task "ReadAdditionalResourcesFromAssemblyCache".
Task "Delete" skipped, due to false condition; ( '$(_IsResourceCacheValid)' == 'False' ) was evaluated as ( 'True' == 'False' ).
Done building target "_ValidateResourceCache" in project "Droid2.csproj".
Target "_SetupDesignTimeBuildForIntellisense" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Done building target "_SetupDesignTimeBuildForIntellisense" in project "Droid2.csproj".
Target "_BuildAdditionalResourcesCache" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Skipping target "_BuildAdditionalResourcesCache" because all output files are up-to-date with respect to the input files.
Input files: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll
Output files: obj\Debug\resourcepaths.cache
Done building target "_BuildAdditionalResourcesCache" in project "Droid2.csproj".
Target "_GetAdditionalResourcesFromAssemblies" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Task "ReadAdditionalResourcesFromAssemblyCache"
Task ReadAdditionalResourcesFromAssemblyCache
CacheFile: obj\Debug\resourcepaths.cache
AdditionalAndroidResourcePaths:
AdditionalJavaLibraryReferences:
AdditionalNativeLibraryReferences:
IsValid: True
Done executing task "ReadAdditionalResourcesFromAssemblyCache".
Task "CreateItem" skipped, due to false condition; (Exists ('%(_AdditionalAndroidResourcePaths.Identity)\AndroidManifest.xml')) was evaluated as (Exists ('\AndroidManifest.xml')).
Done building target "_GetAdditionalResourcesFromAssemblies" in project "Droid2.csproj".
Target "_CalculateAdditionalResourceCacheDirectories" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Using "CalculateAdditionalResourceCacheDirectories" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
Task "CalculateAdditionalResourceCacheDirectories"
CalculateAdditionalResourceCacheDirectories Task
AdditionalAndroidResourcePaths:
CacheDirectory: obj\Debug\resourcecache
Done executing task "CalculateAdditionalResourceCacheDirectories".
Done building target "_CalculateAdditionalResourceCacheDirectories" in project "Droid2.csproj".
Target "_GetAdditionalResourcesFromAssemblies" skipped. Previously built successfully.
Target "_CreateAdditionalResourceCache" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Skipping target "_CreateAdditionalResourceCache" because it has no outputs.
Though the target has declared its outputs, the output specification only references empty properties and/or empty item lists.
Done building target "_CreateAdditionalResourceCache" in project "Droid2.csproj".
Target "_ResolveMonoAndroidSdks" skipped. Previously built successfully.
Target "_GenerateAndroidResourceDir" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Skipping target "_GenerateAndroidResourceDir" because all output files are up-to-date with respect to the input files.
Input files: Resources\layout\Main.axml;Resources\values\Strings.xml;Resources\drawable\Icon.png;C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets;D:\Play App\Droid2\Droid2\Droid2.csproj;C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets;C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Xaml.targets;obj\Debug\build.props
Output files: D:\Play App\Droid2\Droid2\obj\Debug\res\layout\main.xml;D:\Play App\Droid2\Droid2\obj\Debug\res\values\strings.xml;D:\Play App\Droid2\Droid2\obj\Debug\res\drawable\icon.png
Done building target "_GenerateAndroidResourceDir" in project "Droid2.csproj".
Target "_UpdateAndroidResgen" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Skipping target "_UpdateAndroidResgen" because all output files are up-to-date with respect to the input files.
Input files: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll;D:\Play App\Droid2\Droid2\obj\Debug\res\layout\main.xml;D:\Play App\Droid2\Droid2\obj\Debug\res\values\strings.xml;D:\Play App\Droid2\Droid2\obj\Debug\res\drawable\icon.png;C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets;D:\Play App\Droid2\Droid2\Droid2.csproj;C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets;C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Xaml.targets
Output files: obj\Debug\R.cs.flag
Done building target "_UpdateAndroidResgen" in project "Droid2.csproj".
Target "_AddLibraryProjectsEmbeddedResourceToProject" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Using "CreateManagedLibraryResourceArchive" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
Task "CreateManagedLibraryResourceArchive"
Done executing task "CreateManagedLibraryResourceArchive".
Task "CreateItem" skipped, due to false condition; (Exists ('$(IntermediateOutputPath)__AndroidLibraryProjects__.zip')) was evaluated as (Exists ('obj\Debug\__AndroidLibraryProjects__.zip')).
Done building target "_AddLibraryProjectsEmbeddedResourceToProject" in project "Droid2.csproj".
Target "_GenerateJavaDesignerForComponent" skipped, due to false condition; ('#(_AdditonalAndroidResourceCachePaths)' != '') was evaluated as ('' != '').
Target "UpdateAndroidResources" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Done building target "UpdateAndroidResources" in project "Droid2.csproj".
Target "GetReferenceAssemblyPaths" skipped. Previously built successfully.
Target "ImplicitlyExpandDesignTimeFacades" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.PCLSupport.targets":
Task "Message" skipped, due to false condition; ('%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandDesignTimeFacades') was evaluated as ('{TargetFrameworkDirectory}' == 'ImplicitlyExpandDesignTimeFacades').
Task "Message"
Done executing task "Message".
Done building target "ImplicitlyExpandDesignTimeFacades" in project "Droid2.csproj".
Target "ResolveReferences" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets":
Done building target "ResolveReferences" in project "Droid2.csproj".
Target "ResolveKeySource" skipped, due to false condition; ($(SignManifests) == 'true' or $(SignAssembly) == 'true') was evaluated as ( == 'true' or == 'true').
Target "ResolveComReferences" skipped, due to false condition; ('#(COMReference)'!='' or '#(COMFileReference)'!='') was evaluated as (''!='' or ''!='').
Target "ResolveNativeReferences" skipped, due to false condition; ('#(NativeReference)'!='') was evaluated as (''!='').
Target "_SetExternalWin32ManifestProperties" skipped, due to false condition; ('$(GenerateClickOnceManifests)'=='true' or '#(NativeReference)'!='' or '#(ResolvedIsolatedComModules)'!='') was evaluated as (''=='true' or ''!='' or ''!='').
Target "_SetEmbeddedWin32ManifestProperties" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets":
Using "GetFrameworkPath" task from assembly "Microsoft.Build.Tasks.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "GetFrameworkPath"
Done executing task "GetFrameworkPath".
Done building target "_SetEmbeddedWin32ManifestProperties" in project "Droid2.csproj".
Target "SetWin32ManifestProperties" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets":
Done building target "SetWin32ManifestProperties" in project "Droid2.csproj".
Target "_GenerateCompileInputs" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets":
Task "Warning" skipped, due to false condition; ('#(ManifestResourceWithNoCulture)'!='' and '%(ManifestResourceWithNoCulture.EmittedForCompatibilityOnly)'=='') was evaluated as (''!='' and ''=='').
Task "Warning" skipped, due to false condition; ('#(ManifestNonResxWithNoCultureOnDisk)'!='' and '%(ManifestNonResxWithNoCultureOnDisk.EmittedForCompatibilityOnly)'=='') was evaluated as (''!='' and ''=='').
Done building target "_GenerateCompileInputs" in project "Droid2.csproj".
Target "PrepareForBuild" skipped. Previously built successfully.
Target "GetReferenceAssemblyPaths" skipped. Previously built successfully.
Target "_SetTargetFrameworkMonikerAttribute" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets":
Done building target "_SetTargetFrameworkMonikerAttribute" in project "Droid2.csproj".
Target "GenerateTargetFrameworkMonikerAttribute" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets":
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
Input files: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.targets
Output files: C:\Users\Ids\AppData\Local\Temp\MonoAndroid,Version=v6.0.AssemblyAttributes.cs
Done building target "GenerateTargetFrameworkMonikerAttribute" in project "Droid2.csproj".
Target "GenerateAdditionalSources" skipped, due to false condition; ('#(AssemblyAttributes)' != '' and '$(GenerateAdditionalSources)' == 'true') was evaluated as ('' != '' and '' == 'true').
Target "BeforeCompile" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets":
Done building target "BeforeCompile" in project "Droid2.csproj".
Target "_TimeStampBeforeCompile" skipped, due to false condition; ('$(RunPostBuildEvent)'=='OnOutputUpdated' or ('$(RegisterForComInterop)'=='true' and '$(OutputType)'=='library')) was evaluated as (''=='OnOutputUpdated' or (''=='true' and 'Library'=='library')).
Target "GenerateCompiledExpressionsTempFile" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WorkflowBuildExtensions.targets":
Task "WriteLinesToFile" skipped, due to false condition; (!Exists('$(GenerateCompiledExpressionsTempFilePathForEditing)')) was evaluated as (!Exists('obj\Debug\\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs')).
Task "WriteLinesToFile" skipped, due to false condition; (!Exists('$(GenerateCompiledExpressionsTempFilePathForValidation)')) was evaluated as (!Exists('obj\Debug\\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs')).
Task "WriteLinesToFile" skipped, due to false condition; (!Exists('$(GenerateCompiledExpressionsTempFilePathForTypeInfer)')) was evaluated as (!Exists('obj\Debug\\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs')).
Done building target "GenerateCompiledExpressionsTempFile" in project "Droid2.csproj".
Target "DesignTimeXamlMarkupCompilation" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets":
Task "MakeDir" skipped, due to false condition; ('#(XamlAppDef)' != '') was evaluated as ('' != '').
Task "CallTarget" skipped, due to false condition; ('$(BuildingProject)' != 'true' and '#(XamlAppDef)' != '') was evaluated as ('false' != 'true' and '' != '').
Done building target "DesignTimeXamlMarkupCompilation" in project "Droid2.csproj".
Target "CleanInProcessXamlGeneratedFiles" skipped, due to false condition; ('#(XamlAppDef)' != '') was evaluated as ('' != '').
Target "_ComputeNonExistentFileProperty" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets":
Done building target "_ComputeNonExistentFileProperty" in project "Droid2.csproj".
Target "ResolveCodeAnalysisRuleSet" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets":
Using "ResolveCodeAnalysisRuleSet" task from assembly "Microsoft.Build.Tasks.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "ResolveCodeAnalysisRuleSet"
Done executing task "ResolveCodeAnalysisRuleSet".
Done building target "ResolveCodeAnalysisRuleSet" in project "Droid2.csproj".
Target "PreXsdCodeGen" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.ServiceModel.targets":
Using "CallTarget" task from assembly "Microsoft.Build.Tasks.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "CallTarget"
Target "CleanXsdCodeGen" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.ServiceModel.targets":
Using "Delete" task from assembly "Microsoft.Build.Tasks.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "Delete"
Done executing task "Delete".
Done building target "CleanXsdCodeGen" in project "Droid2.csproj".
Done executing task "CallTarget".
Done building target "PreXsdCodeGen" in project "Droid2.csproj".
Target "XsdCodeGen" skipped, due to false condition; ( '$(XsdCodeGenPreCondition)' == 'True' ) was evaluated as ( 'False' == 'True' ).
Target "CoreCompile" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.Core.targets":
Building target "CoreCompile" completely.
Output file "obj\Debug\Droid2.dll" does not exist.
Using "Csc" task from assembly "C:\Users\Ids\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\enunflvr.wib\Microsoft.Build.Tasks.CodeAnalysis.dll".
Task "Csc"
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.Core.targets(76,11): error MSB4064: The "ChecksumAlgorithm" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.Core.targets(67,5): error MSB4063: The "Csc" task could not be initialized with its input parameters.
Done executing task "Csc" -- FAILED.
Done building target "CoreCompile" in project "Droid2.csproj" -- FAILED.
Done building project "Droid2.csproj" -- FAILED.
Project Performance Summary:
125 ms D:\Play App\Droid2\Droid2\Droid2.csproj 1 calls
Target Performance Summary:
0 ms _AddMultiDexDependencyJars 1 calls
0 ms ResolveSDKReferences 1 calls
0 ms _SetupDesignTimeBuildForIntellisense 1 calls
0 ms GetInstalledSDKLocations 1 calls
0 ms GetReferenceAssemblyPaths 1 calls
0 ms _ValidateAndroidPackageProperties 1 calls
0 ms _CheckForInvalidConfigurationAndPlatform 1 calls
0 ms ResolveReferences 1 calls
0 ms AssignProjectConfiguration 1 calls
0 ms _GenerateCompileInputs 1 calls
0 ms _BuildAdditionalResourcesCache 1 calls
0 ms _ResolveLibraryProjectImports 1 calls
0 ms _BuildSdkCache 1 calls
0 ms GenerateTargetFrameworkMonikerAttribute 1 calls
0 ms ResolveProjectReferences 1 calls
0 ms GetFrameworkPaths 1 calls
0 ms _CalculateAdditionalResourceCacheDirectories 1 calls
0 ms AfterResolveReferences 1 calls
0 ms _SetEmbeddedWin32ManifestProperties 1 calls
0 ms _CheckDuplicateJavaLibraries 1 calls
0 ms _GetLibraryImports 1 calls
0 ms _GenerateAndroidAssetsDir 1 calls
0 ms _ResolveMonoAndroidFramework 1 calls
0 ms _SeparateAppExtensionReferences 1 calls
0 ms _SplitProjectReferencesByFileExistence 1 calls
0 ms _BuildLibraryImportsCache 1 calls
0 ms _ComputeNonExistentFileProperty 1 calls
0 ms _GenerateAndroidResourceDir 1 calls
0 ms SetWin32ManifestProperties 1 calls
0 ms BeforeResolveReferences 1 calls
0 ms _GetReferenceAssemblyPaths 1 calls
0 ms CleanXsdCodeGen 1 calls
0 ms _UpdateAndroidResgen 1 calls
0 ms ModifyUnitTestPlatformVersion 1 calls
0 ms _ComputeAndroidResourcePaths 1 calls
0 ms _SetTargetFrameworkMonikerAttribute 1 calls
0 ms _AddLibraryProjectsEmbeddedResourceToProject 1 calls
0 ms UpdateAndroidResources 1 calls
0 ms ExpandSDKReferences 1 calls
0 ms BeforeCompile 1 calls
0 ms PrepareForBuild 1 calls
0 ms PreXsdCodeGen 1 calls
0 ms _ExtractLibraryProjectImports 1 calls
0 ms ResolveCodeAnalysisRuleSet 1 calls
0 ms _ComputeAndroidAssetsPaths 1 calls
0 ms DesignTimeXamlMarkupCompilation 1 calls
0 ms _CheckForDeletedResourceFile 1 calls
0 ms _CreateAdditionalResourceCache 1 calls
0 ms _GetAdditionalResourcesFromAssemblies 1 calls
0 ms GenerateCompiledExpressionsTempFile 1 calls
0 ms UpdateAndroidAssets 1 calls
16 ms _ResolveMonoAndroidSdks 1 calls
16 ms ImplicitlyExpandDesignTimeFacades 1 calls
16 ms _ValidateResourceCache 1 calls
16 ms CoreCompile 1 calls
31 ms _SetLatestTargetFrameworkVersion 1 calls
31 ms ResolveAssemblyReferences 1 calls
Task Performance Summary:
0 ms CreateItem 1 calls
0 ms CallTarget 1 calls
0 ms FindAppConfigFile 1 calls
0 ms GetAndroidPackageName 1 calls
0 ms CreateProperty 39 calls
0 ms ReadImportedLibrariesCache 1 calls
0 ms Csc 1 calls
0 ms CreateManagedLibraryResourceArchive 1 calls
0 ms CheckDuplicateJavaLibraries 1 calls
0 ms ResolveCodeAnalysisRuleSet 1 calls
0 ms GetReferenceAssemblyPaths 2 calls
0 ms GetAppSettingsDirectory 1 calls
0 ms Message 13 calls
0 ms Delete 1 calls
0 ms MakeDir 2 calls
0 ms ReadLibraryProjectImportsCache 1 calls
0 ms GetFrameworkPath 1 calls
0 ms ReadResolvedSdksCache 1 calls
0 ms AndroidComputeResPaths 2 calls
0 ms GetJavaPlatformJar 1 calls
0 ms CalculateAdditionalResourceCacheDirectories 1 calls
0 ms AssignProjectConfiguration 1 calls
16 ms GetAndroidDefineConstants 1 calls
16 ms ReadAdditionalResourcesFromAssemblyCache 2 calls
31 ms ResolveAssemblyReference 1 calls
Build FAILED.
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.Core.targets(76,11): error MSB4064: The "ChecksumAlgorithm" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.Core.targets(67,5): error MSB4063: The "Csc" task could not be initialized with its input parameters.
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.14
If it happens after a Xamarin.Forms NuGet package update:
Clean NuGet cache (will clean all cached NuGets in the present directory and below)
rm -rf `find . -name "packages"` # exhaustive and efficient
nuget locals all -clear # also clear cache
Close Solution. Quit Visual Studio for good measures and start over.
I had the same issue after Update 3 and my proj file had the correct order. A co-worker helped me troubleshoot. It turned out I had the Roslyn Insiders extension installed and it was high-jacking the compiler. Once I removed that extension, everything worked fine again.
If you're running Visual Studio 2015 Update 3, there is a workaround posted here - https://github.com/fsprojects/Paket/issues/1789
Related
I've looked at more pages than I can count about how to solve the "I didn't change anything, so why is VS rebuilding my project" problem. And they were helpful for resolving a number of issues with "copy always" flags, and custom build steps that always run. But I'm left with one that won't go away. It passes all the up-to-date fast dependency checks, but continues to start the build anyway. I've traced through all the MSBuild output at the diagnostic level, but I think the "normal" (not minimal) level is sufficient to point in the right direction. Here's the output:
1>------ Build started: Project: OnePawDataSerializer, Configuration: Debug x64 ------
1>Build started 12/20/2019 5:04:37 PM.
1>GenerateTargetFrameworkMonikerAttribute:
1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
1>CoreCompile:
1>Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
1>_CopyFilesMarkedCopyLocal:
1> Touching "D:\Volpe\NuCS-HiEx\NuCS-Repo\Applications\FAB4DA\OnePawDataSerializer\obj\x64\Debug\OnePawDataSerializer.csproj.CopyComplete".
1>_CopyAppConfigFile:
1>Skipping target "_CopyAppConfigFile" because all output files are up-to-date with respect to the input files.
1>CopyFilesToOutputDirectory:
1> OnePawDataSerializer-> D:\Volpe\NuCS-HiEx\NuCS-Repo\Applications\FAB4DA\bin\Debug64\OnePawDataSerializer.exe
1>
1>Build succeeded.
1> 0 Warning(s)
1> 0 Error(s)
1>
1>Time Elapsed 00:00:00.20
========== Build: 1 succeeded, 0 failed, 15 up-to-date, 0 skipped ==========
At this level of output verbosity it doesn't show all the stuff that looks like this:
1>------ Up-To-Date check: Project: CommonDataModelUtilities, Configuration: Debug x64 ------
1>All outputs are up-to-date.
1>Time Elapsed 19 ms
But they all indicate that everything is up to date. In the "normal"-level output, it shows a couple of internal targets being skipped, but then seems to need to execute one called "_CopyFilesMarkedCopyLocal", which doesn't seem to actually copy anything, but does appear to create a file with the name of the project file appended by ".CopyComplete". This appears to be the only instance of the build actually "doing" something tangible, so I'm inclined to suspect that this has something to do with why I'm not seeing this:
========== Build: 0 succeeded, 0 failed, 16 up-to-date, 0 skipped ==========
when I build. But I can't figure out why it's doing it. Any thoughts?
This appears to be the only instance of the build actually "doing"
something tangible, so I'm inclined to suspect that this has something
to do with why I'm not seeing this: ========== Build: 0 succeeded, 0
failed, 16 up-to-date, 0 skipped ========== when I build. But I can't
figure out why it's doing it. Any thoughts?
MSBuild uses incremental compilation, which only compiles files that have been modified, and skips building for files that have not changed. So when build your project again without any changes, it will like this as you wish:
========== Build: 0 succeeded, 0 failed, 16 up-to-date, 0 skipped ==========
This is the normal behavior generated by MSBuild.
But if you build your project again without changing any project files and build always execute, l am afraid that the issue is caused by some project files' settings(set Copy to Output Directory to Copy Always). (Or you can see the files in the xxx.csproj file and then you will find some files add the node <CopyToOutputDirectory>Always</CopyToOutputDirectory>)
According to the build log info from your picture, the targets _CopyFilesMarkedCopyLocal and CopyFilesToOutputDirectory are responsible for copying project resources which you specify as the picture shows to the output path. And when you set the file to Copy Always, MSBuild will always consider this operation to be up to date, so it will always execute.
Note: Build is the process by which msbuild executes a bunch of target targets which contains the compile target. If the files are already compiled and they are not changed, the target will skip. Besides, if some projects are not changed, MSBuild will skip compiling them and regard them as up - to - date.
To prove it l have do a test:
1) I set the project file called JavaScript1.js to Copy Always as the picture shows above.
2) Then when I build the project multiple times, it always turns that the build executes successfully.
In addition, if you want this behavior, you could set Copy to Output Directory to Do not copy. Or if you want to output these files, you can set to Copy if newer.
Update1
If cannot see this abnormal behavior directly, l think you can set MSBuild project build output verbosity to Diagnostic.This mode will display every detailed info about build process.
And l have observed that the build log only shows two targets which are
running _CopyFilesMarkedCopyLocal and CopyFilesToOutputDirectory.
So please check the target CopyFilesToOutputDirectory, _CopyFilesMarkedCopyLocal, Copy task in the Diagnostic build log by the search box and you can search any detailed info about this.
And in my side, l can see this info in the first line of build output which is explain why my project always rebuild:
Project 'ConsoleApp1' is not up to date. Project item 'C:\Users\Admin\source\repos\ConsoleApp32\ConsoleApp32\JavaScript1.js' has 'Copy to Output Directory' attribute set to 'Copy always'.
Hope it could help you.
XAMARIN IOS project release Rebuild taking hours and After waiting for 12 hours I cancelled and rebuild it again and tried multiple time.
Not even a single timeI was able to complete the build it successfully.
In the build output window log following?
Rebuild All started: Project: BMPOS.iOS, Configuration: Release iPhone...
Any idea what went wrong
Build output after enabled MS Build.
I cancelled it manually that why it say Build FAILED at the end
Rebuild All started: Project: BMPOS.iOS, Configuration: Release iPhone ------
2>Build started 12/10/2017 12:00:55 PM.
2>Building with tools version "14.0".
2>Project file contains ToolsVersion="4.0". 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="14.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
2>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (entry point):
2>Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
2>Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
2>Task "Message"
2> Configuration=Release
2>Done executing task "Message".
2>Task "Message"
2> Platform=iPhone
2>Done executing task "Message".
2>Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('bin\iPhone\Release\' != '' and !HasTrailingSlash('bin\iPhone\Release\')).
2>Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')).
2>Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('obj\iPhone\Release\' != '' and !HasTrailingSlash('obj\iPhone\Release\')).
2>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "BMPOS.iOS.csproj".
2>Target "BeforeRebuild" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Rebuild" depends on it):
2>Done building target "BeforeRebuild" in project "BMPOS.iOS.csproj".
2>Target "BeforeClean" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Done building target "BeforeClean" in project "BMPOS.iOS.csproj".
2>Target "UnmanagedUnregistration" skipped, due to false condition; ((('$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)' or '$(RegisterForComInterop)' != 'true' or '$(OutputType)' != 'library') or
2> ('$(_AssemblyTimestampBeforeCompile)' == '')) and
2> Exists('#(_UnmanagedRegistrationCache)')) was evaluated as ((('' != '' or '' != 'true' or 'Exe' != 'library') or
2> ('' == '')) and
2> Exists('obj\BMPOS.iOS.csproj.UnmanagedRegistration.cache')).
2>Target "CoreClean" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Using "Delete" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MacDev.Tasks.dll".
2>Task "Delete"
2> File "obj\iPhone\Release\\TempCA\BMPOS.iOS.pdb" doesn't exist. Skipping.
2> File "obj\iPhone\Release\\TempCA\BMPOS.iOS.exe" doesn't exist. Skipping.
2>Done executing task "Delete".
2>Task "ReadLinesFromFile"
2>Done executing task "ReadLinesFromFile".
2>Task "FindUnderPath"
2> Comparison path is "bin\iPhone\Release\".
2>Done executing task "FindUnderPath".
2>Task "FindUnderPath"
2> Comparison path is "obj\iPhone\Release\".
2>Done executing task "FindUnderPath".
2>Task "Delete"
2>Task "RemoveDuplicates"
2>Done executing task "RemoveDuplicates".
2>Using "MakeDir" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MacDev.Tasks.dll".
2>Task "MakeDir"
2>Done executing task "MakeDir".
2>Task "WriteLinesToFile"
2>Done executing task "WriteLinesToFile".
2>Done building target "CoreClean" in project "BMPOS.iOS.csproj".
2>Target "_CleanMdbFiles" skipped, due to false condition; (Exists('$(TargetPath).mdb')) was evaluated as (Exists('D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\bin\iPhone\Release\BMPOS.iOS.exe.mdb')).
2>Target "_SeparateAppExtensionReferences" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "AssignProjectConfiguration" depends on it):
2>Task "CreateItem" skipped, due to false condition; ('%(Identity)' != '' And '%(ProjectReference.IsAppExtension)' == 'true') was evaluated as ('..\BMPOS\BMPOS.csproj' != '' And '' == 'true').
2>Done building target "_SeparateAppExtensionReferences" in project "BMPOS.iOS.csproj".
2>Target "_SeparateWatchAppReferences" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "AssignProjectConfiguration" depends on it):
2>Task "CreateItem" skipped, due to false condition; ('%(Identity)' != '' And '%(ProjectReference.IsWatchApp)' == 'true') was evaluated as ('..\BMPOS\BMPOS.csproj' != '' And '' == 'true').
2>Done building target "_SeparateWatchAppReferences" in project "BMPOS.iOS.csproj".
2>Target "BclBuildAddProjectReferenceProperties" in file "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "AssignProjectConfiguration" depends on it):
2>Done building target "BclBuildAddProjectReferenceProperties" in project "BMPOS.iOS.csproj".
2>Target "AssignProjectConfiguration" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "CleanReferencedProjects" depends on it):
2>Task "AssignProjectConfiguration"
2> Project reference "..\BMPOS\BMPOS.csproj" has been assigned the "Release|AnyCPU" configuration.
2>Done executing task "AssignProjectConfiguration".
2>Done building target "AssignProjectConfiguration" in project "BMPOS.iOS.csproj".
2>Target "_SplitProjectReferencesByFileExistence" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "CleanReferencedProjects" depends on it):
2>Using "ResolveNonMSBuildProjectOutput" task from assembly "Microsoft.Build.Tasks.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
2>Task "ResolveNonMSBuildProjectOutput"
2> Resolving project reference "..\BMPOS\BMPOS.csproj".
2> Project reference "..\BMPOS\BMPOS.csproj" has not been resolved.
2>Done executing task "ResolveNonMSBuildProjectOutput".
2>Done building target "_SplitProjectReferencesByFileExistence" in project "BMPOS.iOS.csproj".
2>Target "CleanReferencedProjects" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Task "MSBuild" skipped, due to false condition; ('$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '#(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('true' != 'true' and 'true' == 'true' and '..\BMPOS\BMPOS.csproj' != '').
2>Done building target "CleanReferencedProjects" in project "BMPOS.iOS.csproj".
2>Target "CleanPublishFolder" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Task "RemoveDir" skipped, due to false condition; ('$(PublishDir)'=='$(OutputPath)app.publish\' and Exists('$(PublishDir)')) was evaluated as ('bin\iPhone\Release\app.publish\'=='bin\iPhone\Release\app.publish\' and Exists('bin\iPhone\Release\app.publish\')).
2>Done building target "CleanPublishFolder" in project "BMPOS.iOS.csproj".
2>Target "AfterClean" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Done building target "AfterClean" in project "BMPOS.iOS.csproj".
2>Target "_ComputeTargetArchitectures" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Task "ParseDeviceSpecificBuildInformation" skipped, due to false condition; ('$(DeviceSpecificBuild)' == 'true' And '$(TargetiOSDevice)' != '' And '$(_CanDeployToDeviceOrSimulator)' == 'true') was evaluated as ('false' == 'true' And '' != '' And 'True' == 'true').
2>Done building target "_ComputeTargetArchitectures" in project "BMPOS.iOS.csproj".
2>Target "_ComputeTargetArchitectures" skipped. Previously built successfully.
2>Target "_CleanUploaded" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Task "Delete"
2> File "bin\iPhone\Release\.uploaded" doesn't exist. Skipping.
2>Done executing task "Delete".
2>Done building target "_CleanUploaded" in project "BMPOS.iOS.csproj".
2>Target "_ComputeTargetArchitectures" skipped. Previously built successfully.
2>Target "_GenerateBundleName" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "_CleanAppBundle" depends on it):
2>Done building target "_GenerateBundleName" in project "BMPOS.iOS.csproj".
2>Target "_GenerateBuildSessionId" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "_SayHello" depends on it):
2>Using "GenerateBuildSessionId" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.Messaging.Tasks.dll".
2>Task "GenerateBuildSessionId"
2> Generated session id: 319b1c4ad11c8246e68e142c5cf1ceef
2> Generated build app name: BMPOS.iOS
2>Done executing task "GenerateBuildSessionId".
2>Done building target "_GenerateBuildSessionId" in project "BMPOS.iOS.csproj".
2>Target "_SayHello" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "_CleanAppBundle" depends on it):
2>Using "SayHello" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.Messaging.Tasks.dll".
2>Task "SayHello"
2> Connecting to Mac server 192.168.0.20...
2> Starting connection to 192.168.0.20...
2> Executing SSH command 'whereis xcodebuild'...
2> Executing SSH command '/usr/bin/xcodebuild -license check'...
2> Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status
2> Sending Request Xamarin.Messaging.GetActiveClientsMessage to topic xma/clients
2> Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status
2> Received Response of Xamarin.Messaging.GetActiveClientsMessage to topic build7384Atlan/response/xma/clients
2> Registering message handler 'Xamarin.Messaging.Client.DefaultHandler`1[[Xamarin.Messaging.AgentStatusMessage, Xamarin.Messaging.Common, Version=1.1.6.34, Culture=neutral, PublicKeyToken=0738eb9f132ed756]]'
2> Registering message handler 'Xamarin.Messaging.Client.DefaultHandler`1[[Xamarin.Messaging.Build.Contracts.CancelBuildMessage, Xamarin.Messaging.Build.Contracts, Version=4.7.10.22, Culture=neutral, PublicKeyToken=0738eb9f132ed756]]'
2> Registering message handler 'Xamarin.Messaging.Client.DefaultHandler`1[[Xamarin.Messaging.ClientStatusMessage, Xamarin.Messaging.Common, Version=1.1.6.34, Culture=neutral, PublicKeyToken=0738eb9f132ed756]]'
2> Registering message handler 'Xamarin.Messaging.Client.DefaultHandler`1[[Xamarin.Messaging.MessageStatusMessage, Xamarin.Messaging.Common, Version=1.1.6.34, Culture=neutral, PublicKeyToken=0738eb9f132ed756]]'
2>Done executing task "SayHello".
2>Done building target "_SayHello" in project "BMPOS.iOS.csproj".
2>Target "_SetMtouchProjectDirectory" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "_CleanAppBundle" depends on it):
2>Done building target "_SetMtouchProjectDirectory" in project "BMPOS.iOS.csproj".
2>Target "_CleanAppBundle" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Using "RemoveDir" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MacDev.Tasks.dll".
2>Task "RemoveDir"
2> Removing directory "bin\iPhone\Release\BMPOS.iOS.app\".
2>Done executing task "RemoveDir".
2>Task "Delete"
2> File "bin\iPhone\Release\mtouch.stamp" doesn't exist. Skipping.
2>Done executing task "Delete".
2>Done building target "_CleanAppBundle" in project "BMPOS.iOS.csproj".
2>Target "_GenerateBundleName" skipped. Previously built successfully.
2>Target "_CleanDebugSymbols" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "D:\Deven\BMPOS XAMARIN\BMPOS R2 XAMARIN\BMPOS\BMPOS\BMPOS.iOS\BMPOS.iOS.csproj" (target "Clean" depends on it):
2>Using "GetDirectories" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Tasks.dll".
2>Task "GetDirectories"
2> GetDirectories: 2017-12-10T12:01:01.1642240-05:00 - Started
2> GetDirectories: 2017-12-10T12:01:01.1662241-05:00 - Initializing
2> GetDirectories: 2017-12-10T12:01:01.1702628-05:00 - Initialized
2> GetDirectories: 2017-12-10T12:01:01.1772241-05:00 - Serializing intputs
2> GetDirectories: 2017-12-10T12:01:01.1982258-05:00 - Executing
2> Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status
2> Sending Request Xamarin.Messaging.Build.Contracts.ExecuteTaskMessage to topic xvs/Build/4.7.10.22/execute-task/BMPOS.iOS/319b1c4%2FGetDirectories
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(410,3): warning : The client build7384Atlan has been disconnected while waiting a post response to topic xvs/Build/4.7.10.22/execute-task/BMPOS.iOS/319b1c4%2FGetDirectories
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(410,3): warning : The client build7384Atlan has been disconnected while waiting a post response to topic xvs/Build/4.7.10.22/execute-task/BMPOS.iOS/319b1c4%2FGetDirectories
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(410,3): warning : at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext() in C:\d\lanes\5156\fe36becf\source\xamarinvs\External\messaging\src\Xamarin.Messaging.Client\MessagingClient.cs:line 171
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(410,3): error : AggregateException: One or more errors occurred.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(410,3): error : ClientDisconnectedException: The client build7384Atlan has been disconnected while waiting a post response to topic xvs/Build/4.7.10.22/execute-task/BMPOS.iOS/319b1c4%2FGetDirectories
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(410,3): error :
2> GetDirectories: 2017-12-11T01:49:43.3854234-05:00 - Finished
2>Done executing task "GetDirectories" -- FAILED.
2>Done building target "_CleanDebugSymbols" in project "BMPOS.iOS.csproj" -- FAILED.
2>
2>Build FAILED.
2>
2>Time Elapsed 13:48:47.76
Build
has been canceled.
I am trying to extend the build functionality with VS2017. I've added following code to the bottom of the proj file, just before </Project> tag:
<Target Name="PrintA" BeforeTargets="Build">
<Message Text="AAAAAAAAAAAAAa" Importance="high" />
</Target>
That works as expected. Now I would like to create separated targets file - build.targets and add the build logic there. So, I've created build.targets file in the solution root folder with following code:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="PrintB" BeforeTargets="Build">
<Message Text="BBBBBBBBBBBBBBBBBBBBB" Importance="high"/>
</Target>
</Project>
And then added import to the proj file also:
Then I build the project the AAAAAA is printed and BBBBB is not. What do I miss?
UPDATED: This is the build log(I am unable to paste full log, I think that only this info can be relevant):
Task "WriteLinesToFile" skipped, due to false condition; ('#(_CleanUnfilteredPriorFileWrites)'!='#(_CleanUniqueRemainingFileWritesAfterIncrementalClean)') was evaluated as ('C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\Database2.dacpac;C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\Database2.dll;C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\Database2.pdb;C:\Users\kultasev\source\repos\Database2\Database2\obj\Debug\Database2.dll;C:\Users\kultasev\source\repos\Database2\Database2\obj\Debug\Database2.pdb'!='C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\Database2.dacpac;C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\Database2.dll;C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\Database2.pdb;C:\Users\kultasev\source\repos\Database2\Database2\obj\Debug\Database2.dll;C:\Users\kultasev\source\repos\Database2\Database2\obj\Debug\Database2.pdb').
Target "PostBuildEvent" skipped, due to false condition; ('$(PostBuildEvent)' != '' and ('$(RunPostBuildEvent)' != 'OnOutputUpdated' or '$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)')) was evaluated as ('' != '' and ('' != 'OnOutputUpdated' or '' != '')).
Target "AfterBuild" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\kultasev\source\repos\Database2\Database2\Database2.sqlproj" (target "Build" depends on it):
Target "_CheckForInvalidConfigurationAndPlatform" skipped. Previously built successfully.
Target "_CheckForInvalidConfigurationAndPlatform" skipped. Previously built successfully.
Target "PrintA" in project "C:\Users\kultasev\source\repos\Database2\Database2\Database2.sqlproj" (target "Build" depends on it):
Task "Message"
Task Parameter:Text=AAAAAAAAAAAAAa
Task Parameter:Importance=high
AAAAAAAAAAAAAa
Target "PrintB" in file "C:\Users\kultasev\source\repos\Database2\Database2\build.targets" from project "C:\Users\kultasev\source\repos\Database2\Database2\Database2.sqlproj" (target "Build" depends on it):
Task "Message"
Task Parameter:Text=BBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBB
Target "Build" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" from project "C:\Users\kultasev\source\repos\Database2\Database2\Database2.sqlproj" (entry point):
Task "CallTarget" skipped, due to false condition; ('$(UnloadProjectsOnCompletion)'=='true') was evaluated as (''=='true').
Task "CallTarget" skipped, due to false condition; ('$(UnloadProjectsOnCompletion)'=='true') was evaluated as (''=='true').
Task "CallTarget" skipped, due to false condition; ('$(UnloadProjectsOnCompletion)'=='true') was evaluated as (''=='true').
Target "CleanupEmptyRefsFolder" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\Managed.Web\Microsoft.Web.IISSupport.targets" from project "C:\Users\kultasev\source\repos\Database2\Database2\Database2.sqlproj" (entry point):
Set Property: _RefsFolderFullPath=C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\
Added Item(s):
_FilesInRefsFolder=
C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\\Database2.dacpac
C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\\Database2.dll
C:\Users\kultasev\source\repos\Database2\Database2\bin\Debug\\Database2.pdb
Task "RemoveDir" skipped, due to false condition; (#(_FilesInRefsFolder ->Count()) == 0) was evaluated as (3 == 0).
Done building project "Database2.sqlproj".
Note that the classic project system in VS 2017 doesn't reload imported files during builds even if they change. You need to at least close and re-open the solution to make it work.
For "SDK-style" projects (.NET Standard/Core, ASP.NET Core) in VS 2017 15.3+, this is handled by the new project system (GitHub issue).
I am trying to embed ads on xamarin pcl project based on link
[for iOS][1]http://motzcod.es/post/154696375922/xamarinforms-google-admob-ads-in-ios
when I followed the instructions. and trying to build the following error occurs
>Done building target "ImplicitlyExpandDesignTimeFacades" in project "App1.iOS.csproj".: (TargetId:61)
1>Target "ResolveReferences: (TargetId:62)" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\App1\App1\App1.iOS\App1.iOS.csproj" (target "_UnpackLibraryResources" depends on it):
1>Done building target "ResolveReferences" in project "App1.iOS.csproj".: (TargetId:62)
1>Target "_CollectBundleResources" skipped. Previously built successfully.
1>Target "_XamarinBuildDownloadCore: (TargetId:63)" in file "C:\App1\packages\Xamarin.Build.Download.0.2.2\build\Xamarin.Build.Download.targets" from project "C:\App1\App1\App1.iOS\App1.iOS.csproj" (target "_XamarinBuildDownload" depends on it):
1>Task "Error" skipped, due to false condition; ('$(XamarinBuildDownloadDir)'=='') was evaluated as ('C:\App1\packages\Xamarin.Build.Download.0.2.2\build\..\..\.xbcache\'=='').
1>Using "XamarinDownloadArchives" task from assembly "C:\App1\packages\Xamarin.Build.Download.0.2.2\build\Xamarin.Build.Download.dll".
1>Task "XamarinDownloadArchives" (TaskId:40)
1> Task Parameter:
1> Archives=
1> Gmbladssdk-7.15.0
1> Kind=Tgz
1> Url=https://dl.google.com/dl/cpdc/7d719f8d49d44418-Google-Mobile-Ads-SDK-7.15.0.tar.gz (TaskId:40)
1> Task Parameter:DestinationBase=C:\App1\packages\Xamarin.Build.Download.0.2.2\build\..\..\.xbcache\ (TaskId:40)
1> Extracting C:\Users\cm\AppData\Local\XamarinBuildDownloadCache\Gmbladssdk-7.15.0.tgz to C:\App1\packages\.xbcache\Gmbladssdk-7.15.0 (TaskId:40)
1> Unpacking failure reason:
1> 7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
1>
1> Scanning the drive for archives:
1> 1 file, 17657943 bytes (17 MiB)
1>
1> Extracting archive: C:\\Users\\cm\\AppData\\Local\\XamarinBuildDownloadCache\\Gmbladssdk-7.15.0.tgz
1> --
1> Path = C:\\Users\\cm\\AppData\\Local\\XamarinBuildDownloadCache\\Gmbladssdk-7.15.0.tgz
1> Type = gzip
1> Headers Size = 107
1>
1> Everything is Ok
1>
1> Size: 38983680
1> Compressed: 17657943
1>
1> 7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
1>
1> Scanning the drive for archives:
1> 1 file, 38983680 bytes (38 MiB)
1>
1> Extracting archive: C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\\Google-Mobile-Ads-SDK-7.15.0.tar
1> --
1> Path = C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\\Google-Mobile-Ads-SDK-7.15.0.tar
1> Type = tar
1> Physical Size = 38983680
1> Headers Size = 46592
1> Code Page = UTF-8
1>
1> ERROR: Can not create symbolic link : Access is denied. : C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\Frameworks\GoogleMobileAds.framework\GoogleMobileAds
1> ERROR: Can not create symbolic link : Access is denied. : C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\Frameworks\GoogleMobileAds.framework\Headers
1> ERROR: Can not create symbolic link : Access is denied. : C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\Frameworks\GoogleMobileAds.framework\Versions\Current
1>
1> Sub items Errors: 3
1>
1> Archives with Errors: 1
1>
1> Sub items Errors: 3
1> (TaskId:40)
1>C:\App1\packages\Xamarin.Build.Download.0.2.2\build\Xamarin.Build.Download.targets(25,3): error XBD002: Unpacking failed. Please download 'https://dl.google.com/dl/cpdc/7d719f8d49d44418-Google-Mobile-Ads-SDK-7.15.0.tar.gz' and extract it to the 'C:\App1\packages\.xbcache\Gmbladssdk-7.15.0' directory and create an empty file called 'C:\App1\packages\.xbcache\Gmbladssdk-7.15.0.unpacked'.
1>Done executing task "XamarinDownloadArchives" -- FAILED. (TaskId:40)
1>Done building target "_XamarinBuildDownloadCore" in project "App1.iOS.csproj" -- FAILED.: (TargetId:63)
1>
1>Project Performance Summary:
1> 4015 ms C:\App1\App1\App1.iOS\App1.iOS.csproj 1 calls
I am guessing due to permissions. so I tried to unzip the .tar file and places the unzipped files at .xbcache folder as stated. that didn't work too. is there anyway that I overcome this?
Thanks
If I had to guess, it's because of the way you're trying to extract the files. It's frustrating that it was compressed twice. I did it on Win10 using WinZip and first I extracted the gz, then went inside the extracted folder, located the tar and extracted it directly into the final location.
Adding
cmd.exe /c "ECHO error : unexplainable"
causes this:
1>------ Build started: Project: xxx, Configuration: Debug Win32 ------
1>EXEC : error : unexplainable
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: The command "cmd.exe /c "ECHO error : unexplainable"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: :VCEnd" exited with code -1.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
It happens only when 'error' string is followed by a ':' character.
It is a bug in MSBuild: https://github.com/Microsoft/msbuild/issues/766
The 'Exec' task used by the 'PostBuildEvent' target should have the 'IgnoreStandardErrorWarningFormat' set to true by default but it doesn't, so it fails when finding 'error:' in the output.
An unreliable way to fix this is to modify the 'PostBuildEvent' target in
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets (at line 134) by adding IgnoreStandardErrorWarningFormat="true" to the 'Exec' task
Override predefined 'PostBuildEvent' in your project like here: Can I include a .targets file in a .props property sheet?