question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Composer not building locally

See original GitHub issue

Describe the bug

Composer was working fine until I published it to Azure. Now it’s not building locally

this is a screenshot:

Version

1.4.0-nightly.236155.f2b2823 Detail:

Browser

Microsoft Edge Version 89.0.774.76 (Official build) (64-bit)

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Go to Composer
  2. Click on '“start bot”
  3. See error

Expected behavior

Screenshots

Additional context

entire error message below:

Error occurred building the bot

Message:
Command failed: dotnet build WeatherBot3.csproj
Command:
dotnet build WeatherBot3.csproj
Stack Trace:
Error: Command failed: dotnet build WeatherBot3.csproj

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Output:
Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj : warning NU1701: Package 'Microsoft.Azure.KeyVault.Core 1.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.
  All projects are up-to-date for restore.
C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj : warning NU1701: Package 'Microsoft.Azure.KeyVault.Core 1.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 1 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 2 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 3 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 4 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 5 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 6 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 7 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 8 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 9 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 10 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): error MSB3027: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Exceeded retry count of 10. Failed.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): error MSB3021: Unable to copy file "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process. [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]

Build FAILED.

C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj : warning NU1701: Package 'Microsoft.Azure.KeyVault.Core 1.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.
C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj : warning NU1701: Package 'Microsoft.Azure.KeyVault.Core 1.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 1 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 2 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 3 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 4 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 5 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 6 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 7 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 8 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 9 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): warning MSB3026: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Beginning retry 10 in 1000ms. The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): error MSB3027: Could not copy "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". Exceeded retry count of 10. Failed.  [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
C:\Program Files\dotnet\sdk\5.0.104\Microsoft.Common.CurrentVersion.targets(4858,5): error MSB3021: Unable to copy file "C:\Users\kelvinchen\WeatherBot3\WeatherBot3\obj\Debug\netcoreapp3.1\apphost.exe" to "bin\Debug\netcoreapp3.1\WeatherBot3.exe". The process cannot access the file 'C:\Users\kelvinchen\WeatherBot3\WeatherBot3\bin\Debug\netcoreapp3.1\WeatherBot3.exe' because it is being used by another process. [C:\Users\kelvinchen\WeatherBot3\WeatherBot3\WeatherBot3.csproj]
    12 Warning(s)
    2 Error(s)

Time Elapsed 00:00:11.62
Killed:
Code:
1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
v-kydelacommented, Apr 21, 2021

@rvinothrajendran - Thanks

@kelvinchen822 - Are you still working on this?

0reactions
v-kydelacommented, Apr 26, 2021

I am closing this issue due to inactivity. We are still happy to provide help if you need any, though it may be a good idea to make a new post if that’s the case. Please have a look at this to find out the best places to ask for help, and consider asking questions on Stack Overflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Composer
Try clearing Composer's cache by running composer clear-cache . Ensure you're installing vendors straight from your composer.
Read more >
Composer does not fetch dependencies from local repository
Using git daemon I am able to fetch project A as dependency, but the dependencies defined with require in the composer.json in project...
Read more >
How to work on fork of Composer package locally ... - Reddit
Then what u/AegirLeet said is probably best. Clone the GIthub repo, throw it into a directory somewhere, and modify the PSR4 autoload section...
Read more >
sh: composer: command not found when running build:project ...
I fixed this by adding a symbolic link 'composer' in the directory where composer.phar lives pointing to the composer.phar file (ln -s composer....
Read more >
Uploading local files via composer - Drupal Answers
1 Answer 1 · Using Composer to Install Drupal and Manage Dependencies · Building a Drupal site with Git.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found