dotnet lambda publish-layer error (Unknown error executing command: The filename or extension is too long)
See original GitHub issueHello everyone, im getting this error while trying to publish a layer in the latest tooling (as of 20190329), any ideas?
PS C:\masked\Shared.Framework> dotnet lambda publish-layer --layer-name tb-framework --pl .\Shared.Framework.csproj --layer-type runtime-package-store --framework netcoreapp2.1 --s3-bucket masked-bucket --region sa-east-1 Amazon Lambda Tools for .NET Core applications (3.2.0) Project Home: https://github.com/aws/aws-extensions-for-dotnet-cli, https://github.com/aws/aws-lambda-dotnet
… invoking ‘dotnet store’ for manifest C:\masked\Shared.Framework.csproj into output directory C:\masked\AppData\Local\Temp\tb-framework-636894804424153463\dotnetcore/store
… store: Microsoft ® Build Engine version 16.0.450+ga8dc7f1d34 for .NET Core
… store: Copyright © Microsoft Corporation. All rights reserved.
… store: Restore completed in 382.67 ms for C:\masked\Shared.Framework.csproj.
… store: Restore completed in 417.87 ms for C:\masked\Shared.Framework.csproj.
… store: Restore completed in 456.12 ms for C:\masked\Shared.Framework.csproj.
… store: Restore completed in 352.88 ms for C:\masked\Shared.Framework.csproj.
… store: Restore completed in 884.95 ms for C:\masked\Shared.Framework.csproj.
… store: Restore completed in 299.23 ms for C:\masked\Shared.Framework.csproj.
… store: Restore completed in 569.19 ms for C:\masked\Shared.Framework.csproj.
… store: Restore completed in 1.49 sec for C:\masked\Shared.Framework.csproj.
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: The “FilterResolvedFiles” task failed unexpectedly. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.LockFileExtensions.GetTransitivePackagesList(LockFileTarget lockFileTarget, LockFileTargetLibrary package, IDictionary2 libraryLookup) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProjectContext.GetTransitiveList(String package) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.FilterResolvedFiles.ExecuteCore() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: The "FilterResolvedFiles" task failed unexpectedly. [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.LockFileExtensions.GetTransitivePackagesList(LockFileTarget lockFileTarget, LockFileTargetLibrary package, IDictionary
2 libraryLookup) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProjectContext.GetTransitiveList(String package) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.FilterResolvedFiles.ExecuteCore() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: The “FilterResolvedFiles” task failed unexpectedly. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.LockFileExtensions.GetTransitivePackagesList(LockFileTarget lockFileTarget, LockFileTargetLibrary package, IDictionary2 libraryLookup) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProjectContext.GetTransitiveList(String package) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.FilterResolvedFiles.ExecuteCore() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: The "FilterResolvedFiles" task failed unexpectedly. [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.LockFileExtensions.GetTransitivePackagesList(LockFileTarget lockFileTarget, LockFileTargetLibrary package, IDictionary
2 libraryLookup) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProjectContext.GetTransitiveList(String package) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.FilterResolvedFiles.ExecuteCore() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: The “FilterResolvedFiles” task failed unexpectedly. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.LockFileExtensions.GetTransitivePackagesList(LockFileTarget lockFileTarget, LockFileTargetLibrary package, IDictionary2 libraryLookup) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProjectContext.GetTransitiveList(String package) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.FilterResolvedFiles.ExecuteCore() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: The "FilterResolvedFiles" task failed unexpectedly. [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.LockFileExtensions.GetTransitivePackagesList(LockFileTarget lockFileTarget, LockFileTargetLibrary package, IDictionary
2 libraryLookup) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProjectContext.GetTransitiveList(String package) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.FilterResolvedFiles.ExecuteCore() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: The “FilterResolvedFiles” task failed unexpectedly. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\masked\Shared.Framework.csproj]
… store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.LockFileExtensions.GetTransitivePackagesList(LockFileTarget lockFileTarget, LockFileTargetLibrary package, IDictionary2 libraryLookup) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProjectContext.GetTransitiveList(String package) [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.FilterResolvedFiles.ExecuteCore() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\masked\Shared.Framework.csproj] ... store: C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ComposeStore.targets(426,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\masked\Shared.Framework.csproj] ... store: Files were composed in C:\masked\AppData\Local\Temp\tb-framework-636894804424153463\dotnetcore\store\x64\netcoreapp2.1\ ... store: The list of packages stored is in C:\masked\AppData\Local\Temp\tb-framework-636894804424153463\dotnetcore\store\x64\netcoreapp2.1\artifact.xml Uploading runtime package store manifest to S3 Uploading to S3. (Bucket: masked-bucket Key: tb-framework-636894804424007602/artifact.xml) ... Progress: 100% Upload complete to s3://masked-bucket/tb-framework-636894804424007602/artifact.xml Create zip file of runtime package store directory Unknown error executing command: The filename or extension is too long at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at Amazon.Lambda.Tools.LambdaPackager.BundleWithBuildLambdaZip(String zipArchivePath, String rootDirectory, IDictionary
2 includedFiles, IToolLogger logger) in E:\JenkinsWorkspaces\aws-extensions-for-dotnet-cli\src\Amazon.Lambda.Tools\LambdaPackager.cs:line 548
at Amazon.Lambda.Tools.LambdaPackager.BundleDirectory(String zipArchivePath, String sourceDirectory, Boolean flattenRuntime, IToolLogger logger) in E:\JenkinsWorkspaces\aws-extensions-for-dotnet-cli\src\Amazon.Lambda.Tools\LambdaPackager.cs:line 153
at Amazon.Lambda.Tools.Commands.PublishLayerCommand.CreateRuntimePackageStoreLayerZipFile(String layerName, String s3Prefix) in E:\JenkinsWorkspaces\aws-extensions-for-dotnet-cli\src\Amazon.Lambda.Tools\Commands\PublishLayerCommand.cs:line 254
at Amazon.Lambda.Tools.Commands.PublishLayerCommand.PerformActionAsync() in E:\JenkinsWorkspaces\aws-extensions-for-dotnet-cli\src\Amazon.Lambda.Tools\Commands\PublishLayerCommand.cs:line 111
at Amazon.Common.DotNetCli.Tools.Commands.BaseCommand`1.ExecuteAsync() in E:\JenkinsWorkspaces\aws-extensions-for-dotnet-cli\src\Amazon.Common.DotNetCli.Tools\Commands\BaseCommand.cs:line 44
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (6 by maintainers)
Top GitHub Comments
I just published version 1.15.2.0 of the AWS Toolkit for Visual Studio that contains the fix that was previously released with the command line tools.
I have the same problem with 3.2.2 and upgrade to 3.2.3 fixed it.