r/dotnet•
Ascomae

Stopping automatic builds in Visual Studio

Hello,

​

I have a strange problem:

​

For a project I made a docker Build-Container (Linux-Image).

​

If I build the project with the docker-image, while VS is running (at the same folder), both builds will fail because from autogenerated files will be windows or linux specific (Mostly about NuGet Paths).

​

In the project I set some flag, but they they did not work:

Line 19 and 20:

https://github.com/d-velop/dvelop-app-template-cs/blob/master/NuGet.config#L19

​

Any Ideas how I can stop VS from building automatically? Or can I separate the obj-Folders between windows and linux? This shuld also work.

​

For dy to day use this is not that big problem, because we run the docker image at a build server, but it is also meant to be used as an examplte project to test things.

Posted Apr 9, 2019, 2:42 PM UTC

02
quadlix•

Not quite sure how you're encountering this automatic build. I always manually build. in 2017 docker-ized core projects also. I've had issues with the selected "launch" configuration. Where I'll have a "Docker" launch setting that I don't want to use during a local dev session, and will need to select like IIS Express or something else than the Docker launch setting in the menu bar.

1
AscomaeOP•

The container is only used to build a windows distribution and to deploy the app as Amazon AWS Lambda.

The application never runs within the container.

1