Google-Mobile-Ads-SDK - Can not create symbolic link : Access is denied - xamarin

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.

Related

getting errors when am building the cordova windows application

1>------ Build started: Project: InsightsGoApp, Configuration: Debug Windows-x86 ------
1> Your environment has been set up for using Node.js 8.11.3 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.42
1> ------ Package already installed globally at correct version.
1> ------ Cordova tools 6.1.1 already installed.
1> ------ Build Settings:
1> ------ Build Settings:
1> ------ platformConfigurationBldDir: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\bld\Windows-x86\Debug
1> ------ platformConfigurationBinDir: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\bin\Windows-x86\Debug
1> ------ buildCommand: build
1> ------ platform: Windows-x86
1> ------ cordovaPlatform: windows
1> ------ configuration: Debug
1> ------ cordovaConfiguration: Debug
1> ------ projectName: InsightsGoApp
1> ------ projectSourceDir: C:\Aleem\Development\InsightsGoApp\InsightsGoApp
1> ------ npmInstallDir: C:\Users\sheakbar\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9
1> ------ buildTarget: LocalMachine
1> ------ language: en-US
1> ------ Platform windows already exists
1> ------ Updating plugins
1> ------ Currently installed plugins: cordova-plugin-file#6.0.1,cordova-plugin-inappbrowser#3.0.0
1> ------ Currently installed dependent plugins: cordova-plugin-device#2.0.2,cordova-plugin-network-information#2.0.1,cordova-plugin-whitelist#1.3.3
1> ------ Currently configured plugins:
1> ------ Preparing platform: windows
1> Executing "before_prepare" hook for all plugins.
1> Executing "before_build" hook for all plugins.
1> Searching PlatformJson files for differences between project vs. platform installed plugins
1> No differences found between project and windows platform. Continuing...
1> Generating platform-specific config.xml from defaults for windows at C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\config.xml
1> Merging project's config.xml into platform-specific windows config.xml
1> Found "merges/windows" folder. Copying its contents into the windows project.
1> Merging and updating files from [www, platforms\windows\platform_www, merges\windows] to platforms\windows\www
1> copy platforms\windows\platform_www\cordova-js-src\confighelper.js platforms\windows\www\cordova-js-src\confighelper.js (updated file)
1> copy platforms\windows\platform_www\cordova-js-src\exec.js platforms\windows\www\cordova-js-src\exec.js (updated file)
1> copy platforms\windows\platform_www\cordova-js-src\platform.js platforms\windows\www\cordova-js-src\platform.js (updated file)
1> copy platforms\windows\platform_www\cordova_plugins.js platforms\windows\www\cordova_plugins.js (updated file)
1> copy www\global_constants.js platforms\windows\www\global_constants.js (updated file)
1> copy www\global_data.js platforms\windows\www\global_data.js (updated file)
1> copy www\global_static.js platforms\windows\www\global_static.js (updated file)
1> copy www\global_variables.js platforms\windows\www\global_variables.js (updated file)
1> copy www\index.html platforms\windows\www\index.html (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-device\src\windows\DeviceProxy.js platforms\windows\www\plugins\cordova-plugin-device\src\windows\DeviceProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-device\www\device.js platforms\windows\www\plugins\cordova-plugin-device\www\device.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\src\windows\FileProxy.js platforms\windows\www\plugins\cordova-plugin-file\src\windows\FileProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\DirectoryEntry.js platforms\windows\www\plugins\cordova-plugin-file\www\DirectoryEntry.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\DirectoryReader.js platforms\windows\www\plugins\cordova-plugin-file\www\DirectoryReader.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\Entry.js platforms\windows\www\plugins\cordova-plugin-file\www\Entry.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\File.js platforms\windows\www\plugins\cordova-plugin-file\www\File.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileEntry.js platforms\windows\www\plugins\cordova-plugin-file\www\FileEntry.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileError.js platforms\windows\www\plugins\cordova-plugin-file\www\FileError.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileReader.js platforms\windows\www\plugins\cordova-plugin-file\www\FileReader.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileSystem.js platforms\windows\www\plugins\cordova-plugin-file\www\FileSystem.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileUploadOptions.js platforms\windows\www\plugins\cordova-plugin-file\www\FileUploadOptions.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileUploadResult.js platforms\windows\www\plugins\cordova-plugin-file\www\FileUploadResult.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileWriter.js platforms\windows\www\plugins\cordova-plugin-file\www\FileWriter.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\Flags.js platforms\windows\www\plugins\cordova-plugin-file\www\Flags.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\LocalFileSystem.js platforms\windows\www\plugins\cordova-plugin-file\www\LocalFileSystem.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\Metadata.js platforms\windows\www\plugins\cordova-plugin-file\www\Metadata.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\ProgressEvent.js platforms\windows\www\plugins\cordova-plugin-file\www\ProgressEvent.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\browser\isChrome.js platforms\windows\www\plugins\cordova-plugin-file\www\browser\isChrome.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\fileSystemPaths.js platforms\windows\www\plugins\cordova-plugin-file\www\fileSystemPaths.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\fileSystems.js platforms\windows\www\plugins\cordova-plugin-file\www\fileSystems.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\requestFileSystem.js platforms\windows\www\plugins\cordova-plugin-file\www\requestFileSystem.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\resolveLocalFileSystemURI.js platforms\windows\www\plugins\cordova-plugin-file\www\resolveLocalFileSystemURI.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-inappbrowser\src\windows\InAppBrowserProxy.js platforms\windows\www\plugins\cordova-plugin-inappbrowser\src\windows\InAppBrowserProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-inappbrowser\www\inappbrowser.js platforms\windows\www\plugins\cordova-plugin-inappbrowser\www\inappbrowser.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-network-information\src\windows\NetworkInfoProxy.js platforms\windows\www\plugins\cordova-plugin-network-information\src\windows\NetworkInfoProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-network-information\www\Connection.js platforms\windows\www\plugins\cordova-plugin-network-information\www\Connection.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-network-information\www\network.js platforms\windows\www\plugins\cordova-plugin-network-information\www\network.js (updated file)
1> copy www\scripts\Common\common.css platforms\windows\www\scripts\Common\common.css (updated file)
1> copy www\scripts\Common\jquery-2.1.4.min.js platforms\windows\www\scripts\Common\jquery-2.1.4.min.js (updated file)
1> copy www\scripts\Common\underscore-min-new.js platforms\windows\www\scripts\Common\underscore-min-new.js (updated file)
1>MSBUILD : cordova-build warning : Warning: The following image was skipped because it has an unsupported size (24x24): res/icons/windows/icon-24.png
1>MDAVSCLI : warning : The following image was skipped because it has an unsupported size (24x24): res/icons/windows/icon-24.png
1>MSBUILD : cordova-build warning : Warning: The following image was skipped because it has an unsupported size (48x48): res/icons/windows/icon-48.png
1>MDAVSCLI : warning : The following image was skipped because it has an unsupported size (48x48): res/icons/windows/icon-48.png
1>MSBUILD : cordova-build warning : Warning: The following image was skipped because it has an unsupported size (55x55): res/icons/windows/icon-55.png
1>MDAVSCLI : warning : The following image was skipped because it has an unsupported size (55x55): res/icons/windows/icon-55.png
1> Updating icons and splash screens at platforms\windows\images
1> Prepared windows project successfully
1> Executing "pre_package" hook for all plugins.
1> Executing "after_prepare" hook for all plugins.
1> Discovered plugin "cordova-plugin-document-viewer" in config.xml. Installing to the project
1> Executing "before_plugin_add" hook for all plugins.
1> Calling plugman.fetch on plugin "git+https://github.com/sitewaerts/cordova-plugin-document-viewer.git"
1> Fetching plugin "git+https://github.com/sitewaerts/cordova-plugin-document-viewer.git" via git clone
1> ------ Copied C:\Aleem\Development\InsightsGoApp\InsightsGoApp\bin\Windows-x86\Debug\Microsoft.AppxPackage.Metadata.Overrides.props to platforms\windows\Microsoft.AppxPackage.Metadata.Overrides.props
1> ------ Building platform: windows
1> Debug
1> ------ Build configuration options: --debug
1> Executing "before_compile" hook for all plugins.
1> Reading build config file: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\build.json
1> getLatestMatchingMSBuild
1> getLatestMSBuild
1> Searching for available MSBuild versions...
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.5 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0 /v MSBuildToolsPath
1> Command finished with error code 1: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.5,/v,MSBuildToolsPath
1> Command finished with error code 1: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0,/v,MSBuildToolsPath
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0,/v,MSBuildToolsPath
1> Found MSBuild v12.0 at C:\Program Files (x86)\MSBuild\12.0\bin\amd64\
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0,/v,MSBuildToolsPath
1> Found MSBuild v14.0 at C:\Program Files (x86)\MSBuild\14.0\bin
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0,/v,MSBuildToolsPath
1> Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
1> Using MSBuild v14.0 from C:\Program Files (x86)\MSBuild\14.0\bin
1> Building project: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj
1> Configuration : debug
1> Platform : x86
1> Buildflags : /p:AppxBundle=Never
1> MSBuildTools : C:\Program Files (x86)\MSBuild\14.0\bin
1> Running command: C:\WINDOWS\system32\reg.exe query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows" /s /v InstallationFolder /reg:32
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows,/s,/v,InstallationFolder,/reg:32
1> buildProject spawn: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild [ 'C:\\Aleem\\Development\\InsightsGoApp\\InsightsGoApp\\platforms\\windows\\CordovaApp.Windows10.jsproj',
1> '/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal',
1> '/nologo',
1> '/p:Configuration=debug',
1> '/p:Platform=x86',
1> '/p:AppxBundle=Never' ] { stdio: 'inherit' }
1> Running command: "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=debug /p:Platform=x86 /p:AppxBundle=Never
1> prebuild.js: Patching platform `10`
1> - Injected `base.js` reference to `/www/index.html`
1> - Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s*<\/script>)(\s*)/ from /www/index.html
1> - Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base.js">\s*<\/script>)(\s*)/ from /www/index.html
1> CordovaApp.Windows10 -> C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\AppPackages\CordovaApp.Windows10_0.0.1.1_x86_debug_Test\CordovaApp.Windows10_0.0.1.1_x86_debug.appx
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2748,5): error MSB3030: Could not copy the file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Add-AppDevPackage.ps1" because it was not found. [C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj]
1> Command finished with error code 1: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=x86,/p:AppxBundle=Never
1>MSBUILD : cordova-build error : code: Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1 No valid MSBuild was detected for the selected target: Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
1>code : error C: \Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1 No valid MSBuild was detected for the selected target: Error C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==`enter code here`========
I also had endless errors when trying to use the Windows 10 SDK, it's the worst SDK ever made. Try using the WP 8.1 SDK, you can create apps for both Windows Phone 8.1 and Windows 10 Mobile using it and VS2015, by selecting Windows Universal as target.
You may need to uninstall absolutely EVERYTHING and then install the 8.1 SDK from the VS setup program, if you don't have it already installed. You can also use the standalone SDK 8.1 Update 1 installer. You need to download the one labeled Windows Phone 8.1 Update and Emulators.
Last: If you decide to switch to VS2017, forget about WP8.1 compatibility, as it does not work with the 8.1 SDK, that's why I keep using VS2015 and the 8.1 SDK.

Why Custom Build Step works in VS2012 but doesn't work in VS2013?

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).

Multi-Device Hybrid Apps for Visual Studio: ripple emulator doesn't start after the build

I try to build a empty project with target platform Ripple (Galaxy)/Android and
but when finish the build Visual Studio open Chrome with address
http://localhost:4400/___vs_to_ripple___/index.html?_enableripple=cordova-3.0.0-NexusGalaxy
without run the ripple emulator, of course I get an error. Do I must set some environment variable?
Thanks in advance
below my output window
1>------ Inizio compilazione: Progetto: BlankCordovaApp1, Configurazione: Debug Android ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(90,5): warning : Al compilatore TypeScript Compiler non è stato fornito alcun file per la compilazione. La compilazione verrà ignorata.
1> Your environment has been set up for using Node.js 0.11.13 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\c5uzit0w.pdv\packages\vs-mda
1> ------ Name from source package.json: vs-mda
1> ------ Version from source package.json: 0.1.1
1> ------ Current globally installed version : 0.1.1
1> ------ Package already installed globally at correct version.
1> ------ Build settings:
1> ------ buildCommand: prepare
1> ------ platform: Android
1> ------ cordovaPlatform: android
1> ------ configuration: Debug
1> ------ cordovaConfiguration: Debug
1> ------ projectName: BlankCordovaApp1
1> ------ projectSourceDir: C:\aaaaaaa\BlankCordovaApp1\BlankCordovaApp1
1> ------ App dir c:\aaaaaaa\BlankCordovaApp1\BlankCordovaApp1\bld\Debug already exists
1> ------ Copying app files to www
1> ------ Done copying app files to www
1> ------ Copying res files
1> ------ Done copying res files
1> ------ Platform android already exists
1> ------ Certificate copy from c:\aaaaaaa\BlankCordovaApp1\BlankCordovaApp1\res\cert\android to platforms\android
1> ------ Done copying certificate files to platforms\android
1> ------ Updating plugins
1> ------ Currently installed plugins:
1> ------ Currently installed dependent plugins:
1> ------ Currently configured plugins:
1> ------ Preparing platform: android
1> cordova library for "android" already exists. No need to download. Continuing.
1> Generating config.xml from defaults for platform "android"
1> Calling plugman.prepare for platform "android"
1> Wrote out Android application name to "BlankCordovaApp1"
1> Wrote out Android package name to "io.cordova.BlankCordovaApp1"
2>------ Inizio distribuzione: Progetto: BlankCordovaApp1, Configurazione: Debug Android ------
========== Compilazione: 1 completate, 0 non riuscite, 0 aggiornate, 0 ignorate ==========
========== Distribuzione: 1 completate, 0 non riuscite, 0 ignorate ==========
I solved!
The problem was a white space contained in my profile folder. I renamed my profile folder and now works perfectly!

A Visual C++ Project for Linking Without Compiling

I'm trying to create a vc++ project that will link several libraries together, without first compiling anything.
I created an empty project, added Additional Dependencies in the Linker options, but when I try to build it I get the following:
1>------ Rebuild All started: Project: sde-mix-mt, Configuration: Release x64 ------
1>Build started 2/6/2013 11:32:49 PM.
1>_PrepareForClean:
1> Deleting file "x64\Release\sde-mix-mt.lastbuildstate".
1>InitializeBuildStatus:
1> Creating "x64\Release\sde-mix-mt.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1> Deleting file "x64\Release\sde-mix-mt.unsuccessfulbuild".
1> Touching "x64\Release\sde-mix-mt.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.04
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Although it says Build succeeded it didn't actually build anything (check the time elapsed).

Qt + VS2010: moc: Too many input files specified

Trying to compile my simple Qt app in visual studio with the VS-addin for Qt, I receive the following error:
1>------ Rebuild All started: Project: XXXXXXXXXXXXX, Configuration: Release Win32 ------
1>Build started 5/05/2012 6:57:33 PM.
1>_PrepareForClean:
1> Deleting file "release\XXXXXXXXXXXXX.lastbuildstate".
1>InitializeBuildStatus:
1> Touching "release\XXXXXXXXXXXXX.unsuccessfulbuild".
1>CustomBuild:
1> MOC XXXXXXXXXXXXXMainWidget.h
1> moc: Too many input files specified
1> Usage: moc [options] <header-file>
1> -o<file> write output to file rather than stdout
1> -I<dir> add dir to the include path for header files
1> -E preprocess only; do not generate meta object code
1> -D<macro>[=<def>] define macro, with optional definition
1> -U<macro> undefine macro
1> -i do not generate an #include statement
1> -p<path> path prefix for included file
1> -f[<file>] force #include, optional file name
1> -nn do not display notes
1> -nw do not display warnings
1> #<file> read additional options from file
1> -v display version of moc
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.05
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
What's the deal? I googled it, and the issue appeared to be a bug in 1.1.7. The solution was to rejigger the includes in the VS project. That said, I would prefer to stay with 1.1.10 - it is only a month old and I am sure that the issue is elsewhere.
This can happen if you have spaces in your filenames or paths.
There might be workarounds with some form of quoting, but the most sane (IMO) way of dealing with this is to simply avoid using spaces in your project path and filenames.

Resources