Failing to codesign "no such file or directory" on distribution - c#

I've been stuck all day trying to get a Xamarin.iOS mobile application to distribute after archive.
The archive process runs smoothly, then when we attempt to distribute via Ad Hoc, it fails with a message complaining about a missing file.
The error is as follows:
Could not create ipa file for distribution of the archive '[redacted]'
/usr/bin/codesign exited with code 1
/usr/bin/codesign exited with code 1
Failed to codesign '.../Mobile.iOS/obj/iPhone/Debug/archives/Mobile.iOS 3-30-21 11.41 AM.xcarchive/Products/Applications/Mobile.iOS.app//**/*.dylib': [redacted]/Library/Caches/Xamarin/mtbs/builds/Mobile.iOS/17a75d5999f2d5c58a10f98135732a71be8d334fae491e1585d4d1f1bbfa6140/C:/Users/.../Mobile.iOS/obj/iPhone/Debug/archives/Mobile.iOS 3-30-21 11.41 AM.xcarchive/Products/Applications/Mobile.iOS.app//**/*.dylib: No such file or directory
Failed to codesign '.../Mobile.iOS/obj/iPhone/Debug/archives/Mobile.iOS 3-30-21 11.41 AM.xcarchive/Products/Applications/Mobile.iOS.app//**/*.metallib': [redacted]/Library/Caches/Xamarin/mtbs/builds/Mobile.iOS/17a75d5999f2d5c58a10f98135732a71be8d334fae491e1585d4d1f1bbfa6140/C:/Users/.../Mobile.iOS/obj/iPhone/Debug/archives/Mobile.iOS 3-30-21 11.41 AM.xcarchive/Products/Applications/Mobile.iOS.app//**/*.metallib: No such file or directory
I have shortened some file paths (...) and redacted some identifying information of our client.
To resolve this we have attempted to:
The usual clean & rebuild
Deleting /bin & /obj
Clearing provisioning profiles & redownloading
Deleting all build data/caches and the "iOS folder" from %LOCALAPPDATA%\Xamarin
Reinstalling visual studio
Deleting & redownloading the project files (which work on other machines)
Any help/pointers would be appreciated

Related

Xamarin IOS Build Error "Extracting Zip entry would have resulted in a file outside the specified destination directory."

I am trying to build a new IOS release and get the following error:
"C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(80,3): error : There was an error unzipping the file bin\iPhone\AppStore\AppBundle\MyApp.zip: Extracting Zip entry would have resulted in a file outside the specified destination directory."
The output line that generates this error is:-
"/usr/bin/zip -r /Users/fred/Library/Caches/Xamarin/mtbs/builds/MyApp/ca830d1e9af62a1e18d114cf402fd82be9cb814135209657390ffb486f0d0ee4/bin/iPhone/AppStore/AppBundle/MyApp.zip ../MyApp.app"
It appears that rather than going back to the parent directory and then zipping the "MyApp.app" directory, the process is creating a zip file with ".." as the root directory with "MyApp.app" as a sub directory, which explains the above error.
I can deploy a debug build to a device, but I cannot build an AppStore release or do an Archive process. My project previously built fine using Visual Studio 2019, but I had to upgrade to get a certificate fix that was only corrected in Visual Studio 2022.
Is there any known fixes for this issue?
I'm using:
Visual Studio v17.3.1
Xamarin v5.0.0.2515
Windows 11 machine
Compiling against;
macOS Monterey v12.5.1
Xcode v13.4.1
Comment out or delete this 'Unzip' task
<!--Unzip App Bundle on Windows-->
<Unzip Condition="Exists('$(DeviceSpecificOutputPath)AppBundle\$(_AppBundleName).zip')" ZipFilePath="$(DeviceSpecificOutputPath)AppBundle\$(_AppBundleName).zip" ExtractionPath="$(DeviceSpecificOutputPath)AppBundle\$(_AppBundleName)$(AppBundleExtension)" />
in the file
..\Community\Msbuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets
Same issue here. Opened MS dev com "Xamarin iOS deployment no longer works".
I did find something that works for me. Select to Archive iOS build and wait for error. Select View Archive + failing iOS build, tap Distribute, cancel the creds challenge, tap Open Folder, and submit the ipa to Apple.

Why can't I deploy from Team Foundation Server, but I can from Visual Studio with the same publish profile?

I am currently using my install of Visual Studio 2015 to deploy my builds to the network drives we update with my program. I have a publish profile set up and it has worked for months.
Our company recently bought team foundation server, and I was able to set up the build agent. Once I had all my code checked in, the build server was green, visual studio 2015 was installed on the TFS server, and my build worked just fine. It deposited the build to the normal local directory on the server, and everything worked great.
So then I was wanting to take full advantage of the tfs deployment feature. I set up my msbuild arguments for deploy on build. But every time it gets to the deploy part of the build, it fails. It gives me the error "Error MSB3191: Unable to create directory". And it said the specific reason was wrong username or password. I have access to this folder, I can publish to it directly from visual studio every time.
The service account that is running the build server has access to this folder. The local shadow account for the service account has access to this folder. All the accounts involved in the project in tfs have full rights to do everything imaginable. But still, it will not let me deploy my project to a this network drive path from the server where tfs is running, using the deploy on build method, or any other method. I am beyond confused at this point.
EDIT:
My msbuild arguments are:
/t:BUILD /t:Publish /p:DeployOnBuild=True /p:PublishProfile="TestThingWeb"
The publish profile definitely works. The deploy on build using tfs does not.
This is the entire log file that I am getting. I had to delete a bunch of crap to get it to fit in this window, but the error message is code boxed.
Starting: Get sources
Syncing repository: TestWebProject (TFVC)
Workspace Name: ws_6_5;DEPFOUNDATION\DEPTFSBDAGT
tf get /version:C271
Done syncing repository TestWebProject to version C271 (workspace version C271)
Running tasks
Starting task: NuGet restore ***.sln
Set workingFolder to default: C:\DEPBuildAgent\tasks\NuGetInstaller\0.1.17
Executing the powershell script: C:\DEPBuildAgent\tasks\NuGetInstaller\0.1.17\NuGetInstaller.ps1
C:\DEPBuildAgent\agent\worker\tools\NuGet.exe restore "C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1.sln" -NonInteractive
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
All packages listed in packages.config are already installed.
Finishing task: NuGetInstaller
Starting task: Build solution ***.sln
Build started 8/2/2016 12:08:31 PM.
1>Project "C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1.sln" on node 1 (BUILD;Publish target(s)).
1>ValidateSolutionConfiguration:
Building solution configuration "release|any cpu".
1>Project "C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1.sln" (1) is building "C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\TestWebProject1.csproj" (2) on node 1 (default targets).
2>GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
_CopyOutOfDateSourceItemsToOutputDirectory:
Skipping target "_CopyOutOfDateSourceItemsToOutputDirectory" because all output files are up-to-date with respect to the input files.
_CopyAppConfigFile:
Skipping target "_CopyAppConfigFile" because all output files are up-to-date with respect to the input files.
CopyFilesToOutputDirectory:
TestWebProject1 -> C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\bin\TestWebProject1.dll
ValidatePublishProfileSettings:
Validating PublishProfile(TestThingWeb) settings.
ValidateGlobalPackageSetting:
$(PackageAsSingleFile) is True
$(PackageFileName) is obj\Release\Package\TestWebProject1.zip. Validating...
CollectFilesFromIntermediateAssembly:
Gather all files from Project items #(IntermediateAssembly). Adding:
bin\TestWebProject1.dll to bin\TestWebProject1.dll
CollectFilesFromContent:
Gather all files from Project items #(Content). Adding:
Content\bootstrap.css;Content\bootstrap.min.css;favicon.ico;fonts\glyphicons-halflings-regular.svg;Global.asax;Content\Site.css;Scripts\ai.0.15.0-build58334.js;Scripts\ai.0.15.0-build58334.min.js;Scripts\bootstrap.js;Scripts\bootstrap.min.js;ApplicationInsights.config;Scripts\jquery-1.10.2.js;Scripts\jquery-1.10.2.min.js;Scripts\jquery.validate.js;Scripts\jquery.validate.min.js;Scripts\jquery.validate.unobtrusive.js;Scripts\jquery.validate.unobtrusive.min.js;Scripts\modernizr-2.6.2.js;Scripts\respond.js;Scripts\respond.min.js;Scripts_references.js;Web.config;Web.Debug.config;Web.Release.config;Views\Web.config;Views_ViewStart.cshtml;Views\Shared\Error.cshtml;Views\Shared_Layout.cshtml;Views\Home\About.cshtml;Views\Home\Contact.cshtml;Views\Home\Index.cshtml;Views\Account_ExternalLoginsListPartial.cshtml;Views\Account\ConfirmEmail.cshtml;Views\Account\ExternalLoginConfirmation.cshtml;Views\Account\ExternalLoginFailure.cshtml;Views\Account\ForgotPassword.cshtml;Views\Account\ForgotPasswordConfir...
CollectFilesFromIntermediateSatelliteAssembliesWithTargetPath:
Gather all files from Project output (IntermediateSatelliteAssembliesWithTargetPath). Adding:
CollectFilesFromReference:
Gather all files from Project items #(ReferenceCopyLocalPaths,ReferenceComWrappersToCopyLocal,ResolvedIsolatedComModules,_DeploymentLooseManifestFile,NativeReferenceFile).
CollectFilesFromAllExtraReferenceFiles:
Gather all files from Project items #(AllExtraReferenceFiles). Adding:
CollectFilesFrom_SourceItemsToCopyToOutputDirectory:
Gather all files from Project items #(_SourceItemsToCopyToOutputDirectoryAlways,_SourceItemsToCopyToOutputDirectory). Adding:
bin\ApplicationInsights.config;bin\roslyn\csc.exe;bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll;bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll;bin\roslyn\Microsoft.CodeAnalysis.dll;bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll;bin\roslyn\Microsoft.CSharp.Core.targets;bin\roslyn\Microsoft.VisualBasic.Core.targets;bin\roslyn\System.Collections.Immutable.dll;bin\roslyn\System.Reflection.Metadata.dll;bin\roslyn\vbc.exe;bin\roslyn\VBCSCompiler.exe;bin\roslyn\VBCSCompiler.exe.config
CollectFilesFrom_binDeployableAssemblies:
Gather all files from Project items #(_binDeployableAssemblies). Adding:
PipelineCollectFilesPhase:
Publish Pipeline Collect Files Phase
ExcludeGeneratedDebugSymbol:
Exclude All Debug Symbols
PreTransformWebConfig:
Found The following for Config tranformation:
Web.config
Skip copying Web.config to obj\Release\TransformWebConfig\original\Web.config, File obj\Release\TransformWebConfig\original\Web.config is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\Web.Release.config to obj\Release\TransformWebConfig\assist\Web.config, File obj\Release\TransformWebConfig\assist\Web.config is up to date
TransformWebConfigCore:
Skipping target "TransformWebConfigCore" because all output files are up-to-date with respect to the input files.
PostTransformWebConfig:
Transformed Web.config using C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
PipelineTransformPhase:
Publish Pipeline Transform Phase
CopyAllFilesToSingleFolderForPackage:
Copying all files to temporary location below for package/publish:
obj\Release\Package\PackageTmp.
Skip copying bin\TestWebProject1.dll to obj\Release\Package\PackageTmp\bin\TestWebProject1.dll, File obj\Release\Package\PackageTmp\bin\TestWebProject1.dll is up to date
Skip copying Content\bootstrap.css to obj\Release\Package\PackageTmp\Content\bootstrap.css, File obj\Release\Package\PackageTmp\Content\bootstrap.css is up to date
Skip copying Content\bootstrap.min.css to obj\Release\Package\PackageTmp\Content\bootstrap.min.css, File obj\Release\Package\PackageTmp\Content\bootstrap.min.css is up to date
Skip copying favicon.ico to obj\Release\Package\PackageTmp\favicon.ico, File obj\Release\Package\PackageTmp\favicon.ico is up to date
Skip copying fonts\glyphicons-halflings-regular.svg to obj\Release\Package\PackageTmp\fonts\glyphicons-halflings-regular.svg, File obj\Release\Package\PackageTmp\fonts\glyphicons-halflings-regular.svg is up to date
Skip copying Global.asax to obj\Release\Package\PackageTmp\bin\Microsoft.ApplicationInsights.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll to obj\Release\Package\PackageTmp\bin\Microsoft.AspNet.Identity.Core.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.AspNet.Identity.Core.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.Identity.EntityFramework.2.2.1\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll to obj\Release\Package\PackageTmp\bin\Microsoft.AspNet.Identity.EntityFramework.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.AspNet.Identity.EntityFramework.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.Identity.Owin.2.2.1\lib\net45\Microsoft.AspNet.Identity.Owin.dll to obj\Release\Package\PackageTmp\bin\Microsoft.AspNet.Identity.Owin.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.AspNet.Identity.Owin.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll to obj\Release\Package\PackageTmp\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Host.SystemWeb.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Host.SystemWeb.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Security.Cookies.3.0.1\lib\net45\Microsoft.Owin.Security.Cookies.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Cookies.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Cookies.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Security.Facebook.3.0.1\lib\net45\Microsoft.Owin.Security.Facebook.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Facebook.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Facebook.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Security.Google.3.0.1\lib\net45\Microsoft.Owin.Security.Google.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Google.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Google.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Security.MicrosoftAccount.3.0.1\lib\net45\Microsoft.Owin.Security.MicrosoftAccount.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.MicrosoftAccount.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.MicrosoftAccount.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.OAuth.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.OAuth.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Owin.Security.Twitter.3.0.1\lib\net45\Microsoft.Owin.Security.Twitter.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Twitter.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Owin.Security.Twitter.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll to obj\Release\Package\PackageTmp\bin\Microsoft.Web.Infrastructure.dll, File obj\Release\Package\PackageTmp\bin\Microsoft.Web.Infrastructure.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll to obj\Release\Package\PackageTmp\bin\Newtonsoft.Json.dll, File obj\Release\Package\PackageTmp\bin\Newtonsoft.Json.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Owin.1.0\lib\net40\Owin.dll to obj\Release\Package\PackageTmp\bin\Owin.dll, File obj\Release\Package\PackageTmp\bin\Owin.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll to obj\Release\Package\PackageTmp\bin\System.Web.Helpers.dll, File obj\Release\Package\PackageTmp\bin\System.Web.Helpers.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll to obj\Release\Package\PackageTmp\bin\System.Web.Mvc.dll, File obj\Release\Package\PackageTmp\bin\System.Web.Mvc.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll to obj\Release\Package\PackageTmp\bin\System.Web.Optimization.dll, File obj\Release\Package\PackageTmp\bin\System.Web.Optimization.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll to obj\Release\Package\PackageTmp\bin\System.Web.Razor.dll, File obj\Release\Package\PackageTmp\bin\System.Web.Razor.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll to obj\Release\Package\PackageTmp\bin\System.Web.WebPages.Deployment.dll, File obj\Release\Package\PackageTmp\bin\System.Web.WebPages.Deployment.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll to obj\Release\Package\PackageTmp\bin\System.Web.WebPages.dll, File obj\Release\Package\PackageTmp\bin\System.Web.WebPages.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll to obj\Release\Package\PackageTmp\bin\System.Web.WebPages.Razor.dll, File obj\Release\Package\PackageTmp\bin\System.Web.WebPages.Razor.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\WebGrease.1.5.2\lib\WebGrease.dll to obj\Release\Package\PackageTmp\bin\WebGrease.dll, File obj\Release\Package\PackageTmp\bin\WebGrease.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\ApplicationInsights.config to obj\Release\Package\PackageTmp\bin\ApplicationInsights.config, File obj\Release\Package\PackageTmp\bin\ApplicationInsights.config is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\csc.exe to obj\Release\Package\PackageTmp\bin\roslyn\csc.exe, File obj\Release\Package\PackageTmp\bin\roslyn\csc.exe is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.Build.Tasks.CodeAnalysis.dll to obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll, File obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.CodeAnalysis.CSharp.dll to obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll, File obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.CodeAnalysis.dll to obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.dll, File obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.CodeAnalysis.VisualBasic.dll to obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll, File obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.CSharp.Core.targets to obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CSharp.Core.targets, File obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CSharp.Core.targets is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.VisualBasic.Core.targets to obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.VisualBasic.Core.targets, File obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.VisualBasic.Core.targets is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\System.Collections.Immutable.dll to obj\Release\Package\PackageTmp\bin\roslyn\System.Collections.Immutable.dll, File obj\Release\Package\PackageTmp\bin\roslyn\System.Collections.Immutable.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\System.Reflection.Metadata.dll to obj\Release\Package\PackageTmp\bin\roslyn\System.Reflection.Metadata.dll, File obj\Release\Package\PackageTmp\bin\roslyn\System.Reflection.Metadata.dll is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\vbc.exe to obj\Release\Package\PackageTmp\bin\roslyn\vbc.exe, File obj\Release\Package\PackageTmp\bin\roslyn\vbc.exe is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\VBCSCompiler.exe to obj\Release\Package\PackageTmp\bin\roslyn\VBCSCompiler.exe, File obj\Release\Package\PackageTmp\bin\roslyn\VBCSCompiler.exe is up to date
Skip copying C:\DEPBuildAgent_work\6\s\TestWebProject1\packages\Microsoft.Net.Compilers.1.0.0\tools\VBCSCompiler.exe.config to obj\Release\Package\PackageTmp\bin\roslyn\VBCSCompiler.exe.config, File obj\Release\Package\PackageTmp\bin\roslyn\VBCSCompiler.exe.config is up to date
Skip copying obj\Release\TransformWebConfig\transformed\Web.config to obj\Release\Package\PackageTmp\Web.config, File obj\Release\Package\PackageTmp\Web.config is up to date
PipelinePreDeployCopyAllFilesToOneFolder:
Publish Pipeline Deploy phase Stage PipelinePreDeployCopyAllFilesToOneFolder
WebFileSystemPublish:
Creating directory "\depkcfs\data\APPLICATION DEVELOPMENT\WORK\ADS\Jack Moore\TestWebProject".
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(93,5): Error MSB3191: Unable to create directory "\depkcfs\data\APPLICATION DEVELOPMENT\WORK\ADS\Jack Moore\TestWebProject". The user name or password is incorrect.
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(93,5): error MSB3191: Unable to create directory "\depkcfs\data\APPLICATION DEVELOPMENT\WORK\ADS\Jack Moore\TestWebProject". The user name or password is incorrect. [C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\TestWebProject1.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(93,5): error MSB3191: [C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\TestWebProject1.csproj]
2>Done Building Project "C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\TestWebProject1.csproj" (default targets) -- FAILED.
1>Done Building Project "C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1.sln" (BUILD;Publish target(s)) -- FAILED.
Build FAILED.
"C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1.sln" (BUILD;Publish target) (1) ->
"C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\TestWebProject1.csproj" (default target) (2) ->
(WebFileSystemPublish target) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0*****`
\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(93,5): error MSB3191: Unable to create directory "\\depkcfs\data\APPLICATION DEVELOPMENT\WORK\ADS\Jack Moore\TestWebProject". The user name or password is incorrect`***.**
[C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\TestWebProject1.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(93,5): error MSB3191: [C:\DEPBuildAgent_work\6\s\TestWebProject1\TestWebProject1\TestWebProject1.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.20
Process 'msbuild.exe' exited with code '1'.
Finishing task: VSBuild
Starting task: Copy Files to: $(build.artifactstagingdirectory)
Set workingFolder to default: C:\DEPBuildAgent\tasks\CopyFiles\1.0.12
found 0 files
Finishing task: CopyFiles
Starting task: Publish Artifact: drop
Set workingFolder to default: C:\DEPBuildAgent\tasks\PublishBuildArtifacts\1.0.27
Max Concurrent Uploads 2, Max Creators 1
Found 0 files to upload.
Created 0 files without uploading content. Total files processed 0
Uploaded artifact 'C:\DEPBuildAgent_work\6\a' to container folder 'drop' of build 128.
Associated artifact 62 with build 128
Finishing task: PublishBuildArtifacts
Task VSBuild failed. This caused the job to fail. Look at the logs for the task for more details.
Worker Worker-4658dbb2-e9d7-4d73-a1d9-57d2de4008f0 finished running job 4658dbb2-e9d7-4d73-a1d9-57d2de4008f0
Finishing Build
I think you may have an issue I came across on my first publishing via WebDeploy.
Add in /p:UserName="NameOnServerForSiteYou'repusblishingTo" /p:Password:YourPassword in your publishing.xml

Project upgrade from VS 2013 to VS 2015 windows 8.1 universal apps

I was about to update my existing windows 8.1 universal app to VS2015 along with its portable projects.But it fails with below error
"Error : DEP6810 : MdilXapCompile.exe failed with error code 1004. See log file 'C:\xxx\xxx.WindowsPhone\obj\ARM\Debug\MDIL\MDILXapCompileLog.txt' for more details"
The Log file Contents
Error: Compile filter argument specified non-existent file: C:\xxx\xxx\xxx.WindowsPhone\obj\ARM\Debug\MSIL\PhoneLibrary\Microsoft.SharePoint.Client.Portable.dll
Invalid argument
Microsoft (R) MDIL XAP Compiler - Version 4.0.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
Usage: MDILXAPCompile /In:<InputPath> /Out:<OutputPath> /Config:<ConfigPath> [/CompileFilter:<Assembly Path>;<Assembly Path>] [/Timeout:<Timeout>] [/Log:<LogPath>] [/AppX]
/In - Path to directory containing files to process
/Out - Path to directory to place processed files in
/Config - Path to configuration file
/CompileFilter - Optional restrictive list of assembly files in InputPath,
separated by semi-colons, to be compiled.
/Timeout - Optional timeout in milliseconds before killing the Crossgen process. Overrides config file timeout value. Use -1 for infinite timeout, 0 for application default (2 hours).
/Log - Optional path to log file
/AppX - Specifies that assemblies correspond to an AppX package
Relative paths are relative to this executable's directory.
I get this error only when I debug the project but it works normal when i generate package and deploy it to device.
Answers are highly appreciated.
I got this solved. But may not be the direct way. Its quite strange.
I referred my dll's from the folder(named as PhoneLibrary) inside the app. As per log file location "C:\xxx\xxx\xxx.WindowsPhone\obj\ARM\Debug\MSIL\PhoneLibrary\Microsoft.SharePoint.Client.Portable.dll" it failed to create the folder.
So i just created folder in that location and copied my dll's in that folder and worked great.

Failed to convert the downloaded code coverage tool to XML

I have code coverage enabled on TFS 2013. I work with MSBuild.SonarQube.Runner 1.0.1. When I run the End phase of the Analysis. I get the following error messages:
11:36:00.269 Failed to convert the downloaded code coverage tool to XML. No code coverage information will be uploaded to SonarQube.<br/>
Check that the downloaded code coverage file (C:\Builds\39\[product name]\System_Main_Release_Code_Analysis\.sonarqube\out\VSCodeCoverageReport.coverage) is valid by opening it in Visual Studio. If it is not, check that the internet security settings on the build machine allow files to be downloaded from the Team Foundation Server machine.
Post-processing failed. Exit code: 1
An error occurred while copying diagnostic activity logs to the drop location. Details: Forbidden
On the build server there is no VSCodeCoverageReport.coverage file - at least not at the indicated location and with that name. However, when I click on (Coverage Results) in the TFS Build summary, a coverage file is downloaded that opens up in Visual Studio in the Code Coverage Results Window.
What could be the issue?
The problem is solved.
The proxy settings on the build agent had changed. This resulted in http requests to the TFS server or any local addresses to fail.
It was particularly challanging to figure out, because the Agent build log that tells you all the details of a build is the file that could not be transferred to the drop location. So I used ProcMon from Sysinternals with File monitor enabled during a build. A comparison between a successful build in the past and a current failed build showed me which file was missing (the agent log file). A search in ProcMon for this file revealed where that file was located on the build agent. The Agent Log file contained the Downloading coverage file from {0} to {1} line Dinesh was looking for in his attempt to help me. That http address pasted into a browser showed an "Access denied" message.
From there it was a logical step to analyse the Proxy settings. What finally solved it was to check "Bypass proxy server for local addresses" in the Local Area Network (LAN) Settings"

Build step failing for TeamCity and Team Foundation Server 2012

Updated with images.
When setting up a project in TeamCity, I cannot get the build step to work. I get the same
error every time.
Failed to start MSBuild.exe. Failed to find project file at path: C:\TeamCity\buildAgent\work\42c94c0380966ffa\Main\Solution.sln
I am able to connect to the TFS. Where I put the root as following.
$/Projectname/
Testing the connection returns ok.
When creating the build step I use MSBuild and set the Build file path to where the solution exists in the tfs structure. So for example.
Build file path: Main\MySolution.sln
Because in the TFS this is where the solution is. $/Projectname/Main/MySolution.sln. When I run the build step I get the error above. What am I doing wrong? The 42c94c0380966ffa folder is created on disc but it is empty.
LOG
[14:55:24]Checking for changes
[14:55:25]Publishing internal artifacts
[14:55:25][Publishing internal artifacts] Sending build.start.properties.gz file
[14:55:25]Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[14:55:25]Checkout directory: C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:25]Updating sources: server side checkout
[14:55:25][Updating sources] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist
[14:55:25][Updating sources] Transferring cached clean patch for VCS root: EEL TFS
[14:55:25][Updating sources] Repository sources transferred
[14:55:25][Updating sources] Removing C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:25][Updating sources] Updating C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:25]Step 1/1: Build Solution (MSBuild) (2s)
[14:55:25][Step 1/1] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\TeamCity\buildAgent\work\42c94c0380966ffa /msbuildPath:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
[14:55:25][Step 1/1] in directory: C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:28][Step 1/1] Failed to start MSBuild.exe. Failed to find project file at path: C:\TeamCity\buildAgent\work\42c94c0380966ffa\Main\MySolution.sln
[14:55:28][Step 1/1] Process exited with code -42
[14:55:28][Step 1/1] Step Build Solution (MSBuild) failed
[14:55:28]Publishing internal artifacts
[14:55:28][Publishing internal artifacts] Sending build.finish.properties.gz file
[14:55:28]Build finished
My VCS root configuration, username and password removed.
And where the solution is located.
And the build step
Version control settings
General settings
It looks like you've configured your build to look for MySolution.sln but in TFS it's actually called EEL B2C.sln.

Categories

Resources