Visual Studio integration with Docker Compose not functioning as expected.
Hello, I have on solution level a docker-compose file which I use to containerize my application. In Visual Studio I have because of this also a start button with
Docker Compose
. Yesterday I decided to make some changes in my Docker-compose file. Yet because of this I am unable to launch my project again.
When I click on this error message, Visual Studio redirects me to this file: Microsoft.VisualStudio.Docker.Compose.targets
. I have tried to clean and rebuild the project but I have no clue on how to resolve this issue. Deleting this file is discouraged either.17 Replies
If you run a docker compose up manually does it fail?
Nope
Are you sure you're pointing at the docker compose you think you're pointing at?
Could not copy the file "C:\Projects\nhs-frontend-csharp\nhs-frontend-csharp.advice\bin\Microsoft.PythonTools.WebRole.dll" because it was not found.
i cant access microsoft.pythontools since its a flask project
Tbh I've never used anything python related with visual studio
I don't know what the issue might be there.
do you know a place where i can raise an official issue?
https://github.com/microsoft/PTVS/blob/main/Python/loc/lcl/PLK/Microsoft.PythonTools.WebRole.dll.lcl
GitHub
PTVS/Python/loc/lcl/PLK/Microsoft.PythonTools.WebRole.dll.lcl at ma...
Python Tools for Visual Studio. Contribute to microsoft/PTVS development by creating an account on GitHub.
maybe here https://github.com/microsoft/PTVS/issues?
GitHub
Issues · microsoft/PTVS
Python Tools for Visual Studio. Contribute to microsoft/PTVS development by creating an account on GitHub.
I Fixed it! but its quirte lame
Literally created a bin folder and added the file from above.
Did that fix your docker compose
I just see that my initial message was pointed towards another issue I was facing, but I am sure I can fix that one.
Regarding the
Could not copy the file "C:\Projects\nhs-frontend-csharp\nhs-frontend-csharp.advice\bin\Microsoft.PythonTools.WebRole.dll" because it was not found.
; yes that one is solved. I only find it weird that this issue occurs, because it means that adding a Flask Web Project is not build ready. Adding the bin
folder with that file works however, should this file not be there already by default....?
This error showed up due to my LaunchSettings.json in the docker-compose orchestration not being updated.
Shall I make for this an official issue?I mean you could open an issue in GitHub
Gonna do that now 🙂
GitHub
Adding a Flask web project to a docker-orchestration results in Web...
Describe the bug Adding a Flask web project to a docker-orchestration results in WebRole.dll error. Steps to Reproduce Create a blank solution and give it a proper name (for example MyApp). Add a n...