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.
Related
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).
Cordova build fails since upgrade to 2017. Error from output as below:
Building project: C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : x64
C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj(61,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
1>MSBUILD : cordova-build error : Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
1>Done building project "PresalesApp.jsproj" -- FAILED.
Have had a look at modules installed and all Windows 10 UWP items seem to be installed.
Anyone else upgraded from 15-17 and had a similar issue?
Verbose Build Log:
1> Task "CreateBuildInfoMetadata" skipped, due to false condition; ( '$(Platform)' == 'android' AND '$(TelemetryEnabled)' == 'True' ) was evaluated as ( 'Windows-x86' == 'android' AND 'True' == 'True' ).
1> Using "CreateBuildInfoMetadata" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
1> Task "CreateBuildInfoMetadata"
1> Done executing task "CreateBuildInfoMetadata".
1> Using "VsTac" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
1> Task "VsTac"
You have been opted out of telemetry. To change this, run: cordova telemetry on.
[VSTAC_VERBOSE]No scripts found for hook "before_build".
[VSTAC_VERBOSE]No scripts found for hook "before_prepare".
[VSTAC_VERBOSE]Checking config.xml for saved platforms that haven't been added to the project
[VSTAC_VERBOSE]Checking for any plugins added to the project that have not been installed in windows platform
[VSTAC_VERBOSE]No differences found between plugins added to project and installed in windows platform. Continuing...
[VSTAC_VERBOSE]Generating config.xml from defaults for platform "windows"
[VSTAC_VERBOSE]Found "merges" for windows platform. Copying over existing "www" files.
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square150x150Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square150x150Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square150x150Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square150x150Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square30x30Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square30x30Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square310x310Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square310x310Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square44x44Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square44x44Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square44x44Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square44x44Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square70x70Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square70x70Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square71x71Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square71x71Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square71x71Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square71x71Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\StoreLogo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\StoreLogo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\StoreLogo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\StoreLogo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Wide310x150Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Wide310x150Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Wide310x150Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Wide310x150Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\screens\windows\SplashScreen.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\SplashScreen.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\screens\windows\SplashScreen.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\SplashScreenPhone.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\screens\windows\SplashScreenPhone.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\SplashScreenPhone.scale-240.png
[VSTAC_VERBOSE]Updated project successfully
[VSTAC_VERBOSE]No scripts found for hook "pre_package".
[VSTAC_VERBOSE]Executing script found in plugin cordova-plugin-ms-adal for hook "after_prepare": plugins\cordova-plugin-ms-adal\scripts\prePackage-windows.js
[VSTAC_VERBOSE]Resolving module name for shelljs => shelljs
[VSTAC_VERBOSE]Resolving module name for path => path
[VSTAC_VERBOSE]Resolving module name for fs => fs
[VSTAC_VERBOSE]Checking config.xml for saved plugins that haven't been added to the project
------ Building platform: windows
------ Build configuration options: --debug -- --win --archs x86
You have been opted out of telemetry. To change this, run: cordova telemetry on.
[VSTAC_VERBOSE]No scripts found for hook "before_compile".
[VSTAC_VERBOSE]Reading build config file: C:\code\presales\PresalesApp\PresalesApp\build.json
[VSTAC_VERBOSE]Searching for available MSBuild versions...
[VSTAC_VERBOSE]Found MSBuild v12.0 at C:\Program Files (x86)\MSBuild\12.0\bin\
[VSTAC_VERBOSE]Found MSBuild v14.0 at C:\Program Files (x86)\MSBuild\14.0\bin\
[VSTAC_VERBOSE]Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework\v4.0.30319\
Building project: C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : x86
C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj(61,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
1> MSBUILD : cordova-build error : Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
1> Done executing task "VsTac" -- FAILED.
1>Done building target "BuildMDA" in project "PresalesApp.jsproj" -- FAILED.
1>
1>Done building project "PresalesApp.jsproj" -- FAILED.
1>
1>Build FAILED.
1>
In my BuildTools folder (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0) there isn't a Javascript Folder, only a TypeScript folder, but I have selected all options when installing the BuildTools?
After I removed the platform (VS 2015 generated directory) and rebuild, the CLI will get the correct build files for VS2017, and successfully build the project.
VS can do a better job by: Migrate document make it clear, or clear the build didn't clean up the corresponding platform directory.
I've upgraded to a new windows 10 development machine.
Everything works great, except post-build events in msbuild/visual studio.
This is for any project, new or existing.
They all work fine on other people's windows 7 machines.
They work fine on the build server (jenkins).
They do not work for me at all, either in visual studio or with msbuild.
PRE-build events works fine.
It's like the postbuild event isn't even defined.
Unfortunately, our postbuild events are fundamental to the build process.
Starting with a basic console app and configuring the build events as:
<PropertyGroup>
<PreBuildEvent>echo before build</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>echo after build</PostBuildEvent>
</PropertyGroup>
The build output is literally:
1>------ Rebuild All started: Project: ConsoleApplication1, Configuration: Debug Any CPU ------
1> before build
1> ConsoleApplication1 -> C:\dev\postbuild\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Running msbuild with /v:diag I get this section:
PostBuildEvent = echo after build
PostBuildEventDependsOn =
PreBuildEvent = echo before build
PreBuildEventDependsOn =
When running prebuild:
Target "PreBuildEvent: (TargetId:22)" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\dev\postbuild\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.csproj" (target "CoreBuild" depends on it):
Using "Exec" task from assembly "Microsoft.Build.Tasks.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "Exec" (TaskId:19)
Task Parameter:WorkingDirectory=bin\Debug\ (TaskId:19)
Task Parameter:Command=echo before build (TaskId:19)
echo before build (TaskId:19)
before build (TaskId:19)
Done executing task "Exec". (TaskId:19)
Done building target "PreBuildEvent" in project "ConsoleApplication1.csproj".: (TargetId:22)
When running PostBuild:
Target "PostBuildEvent: (TargetId:77)" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\dev\postbuild\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.csproj" (target "CoreBuild" depends on it):
Done building target "PostBuildEvent" in project "ConsoleApplication1.csproj".: (TargetId:77)
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
I noticed that Custom Build Steps stopped working in my Visual Studio 2013. e.g. CMAKE generated ZERO_CHECK doesn't work. I tried everything from Troubleshooting Build Customizations but nothing helped.
I created simple c++ console application, changed Item Type for ReadMe.txt from text to Custom Build Tool, and entered simple commands to Command Line.
#echo on
copy %0 test.bat
del c:\1.txt
In project file it looks like:
<ItemGroup>
<CustomBuild Include="ReadMe.txt">
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">#echo on
copy %0 test.bat
del c:\1.txt</Command>
</CustomBuild>
</ItemGroup>
In Visual Studio 2012 everything work as supposed, file test.bat created, file c:\1.txt deleted. But in Visual Studio 2013 it doesn't work.
Visual Studio 2013 output:
1>Target "ComputeCustomBuildOutput: (TargetId:28)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets" from project "D:\Projects\Projects\VS2013Test\CppConsole2012\CppConsole2012\CppConsole2012.vcxproj" (target "CustomBuild" depends on it):
1>Task "CreateItem" skipped, due to false condition; ('%(CustomBuildDirsToMake.OutputFileToTool)'!='') was evaluated as (''!='').
1>Task "MakeDir" (TaskId:15)
1> Task Parameter:
1> Directories=
1> D:\Projects\Projects\VS2013Test\CppConsole2012\CppConsole2012\
1> AcceptableNonZeroExitCodes=
1> Command=#echo on
1> copy %0 test.bat
1> del c:\1.txt
1> LinkObjects=true
1> Message=Performing Custom Build Tools
1> MinimalRebuildFromTracking=true
1> Outputs=SomeText;
1> TrackerLogDirectory=Debug\CppConsole2012.tlog\
1> TreatOutputAsContent=false (TaskId:15)
1>Done executing task "MakeDir". (TaskId:15)
1>Done building target "ComputeCustomBuildOutput" in project "CppConsole2012.vcxproj".: (TargetId:28)
1>Target "CustomBuild: (TargetId:29)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets" from project "D:\Projects\Projects\VS2013Test\CppConsole2012\CppConsole2012\CppConsole2012.vcxproj" (target "_BuildGenerateSourcesAction" depends on it):
1>Done building target "CustomBuild" in project "CppConsole2012.vcxproj".: (TargetId:29)
Visual Studio 2012 Output:
1>Target "ComputeCustomBuildOutput: (TargetId:41)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets" from project "D:\Projects\Projects\VS2012Test\CppConsole2012\CppConsole2012\CppConsole2012.vcxproj" (target "CustomBuild" depends on it):
1>Task "CreateItem" skipped, due to false condition; ('%(CustomBuildDirsToMake.OutputFileToTool)'!='') was evaluated as (''!='').
1>Task "MakeDir" (TaskId:27)
1> Task Parameter:
1> Directories=
1> D:\Projects\Projects\VS2012Test\CppConsole2012\CppConsole2012\
1> AcceptableNonZeroExitCodes=
1> Command=#echo on
1> copy %0 test.bat
1> del c:\1.txt
1> LinkObjects=true
1> Message=Performing Custom Build Tools
1> MinimalRebuildFromTracking=true
1> Outputs=SomeText;
1> TrackerLogDirectory=Debug\
1> TreatOutputAsContent=false (TaskId:27)
1>Done executing task "MakeDir". (TaskId:27)
1>Done building target "ComputeCustomBuildOutput" in project "CppConsole2012.vcxproj".: (TargetId:41)
1>Target "CustomBuild: (TargetId:42)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets" from project "D:\Projects\Projects\VS2012Test\CppConsole2012\CppConsole2012\CppConsole2012.vcxproj" (target "_BuildGenerateSourcesAction" depends on it):
1>Using "CustomBuild" task from assembly "Microsoft.Build.CppTasks.Common.v110, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "CustomBuild" (TaskId:28)
1> Task Parameter:
1> Sources=
1> ReadMe.txt
1> AcceptableNonZeroExitCodes=
1> Command=#echo on
1> copy %0 test.bat
1> del c:\1.txt
1> LinkObjects=true
1> Message=Performing Custom Build Tools
1> MinimalRebuildFromTracking=true
1> Outputs=SomeText;
1> TrackerLogDirectory=Debug\
1> TreatOutputAsContent=false (TaskId:28)
1> Task Parameter:BuildSuffix=
1> :VCEnd (TaskId:28)
1> Task Parameter:TrackerLogDirectory=Debug\ (TaskId:28)
1> Task Parameter:MinimalRebuildFromTracking=True (TaskId:28)
1> Task Parameter:TrackFileAccess=True (TaskId:28)
1> Task Parameter:ToolArchitecture=Native32Bit (TaskId:28)
1> Forcing rebuild of all source files due to missing command TLog "D:\Projects\Projects\VS2012Test\CppConsole2012\CppConsole2012\Debug\custombuild.command.1.tlog". (TaskId:28)
1> #echo on
1> copy %0 test.bat
1> del c:\1.txt (TaskId:28)
1> Performing Custom Build Tools (TaskId:28)
1> 1 file(s) copied. (TaskId:28)
1> Could Not Find c:\1.txt (TaskId:28)
1>Done executing task "CustomBuild". (TaskId:28)
1>Done building target "CustomBuild" in project "CppConsole2012.vcxproj".: (TargetId:42)
You can see part of VS2012 log is absent in VS2013:
1>Using "CustomBuild" task from assembly "Microsoft.Build.CppTasks.Common.v110, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "CustomBuild" (TaskId:28)
...
1>Done executing task "CustomBuild". (TaskId:28)
You're missing the Outputs metadata. See this MSDN page for info.
<ItemGroup>
<CustomBuild Include="ReadMe.txt">
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
#echo on
copy %0 test.bat
del c:\1.txt
</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">test.bat;%(Outputs)</Outputs>
</CustomBuild>
</ItemGroup>
Without it, I get a warning from the CustomBuild task,
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): warning MSB8018: No outputs specified for item "ReadMe.txt". Its custom build command will be skipped. [<PATH>\SandboxCpp.vcxproj]
#echo on
copy %0 test.bat
del c:\1.txt (TaskId:15)
Done executing task "CustomBuild". (TaskId:15)
I'm guessing you didn't get the printout of Using "CustomBuild" task from assembly because your verbosity level is too low in the VS2013 log (there should be a lot more there).