S Nash
S Nash

Reputation: 2499

ASP.NET DLL gets deleted every second build

I'm using a C# WebForm app. IDE is VS2019 version 16.11.24

I'm dealing with a very strange behavior:

My solution is consisted of 3 DLLS. for simplicity let call them a.dll, b.dll and c.dll.

a.dll depends on b.dll and b.dll depends on c.dll.

The build output path for all 3 dlls is bin folder(debug and release).

The behavior I see now is whenever I do a rebuild a.dll and b.dll always get generated but c.dll only gets generated on every second rebuild!(c.dll only gets delete on other builds)

None of my dll projects have any build events.

I wonder if this is a bug with VS or I'm doing something wrong(changed a setting somewhere).

More info: It seem I only see the strange behavior if I use Debug build. Release build always generates all 3 dlls.

enter image description here

Upvotes: 1

Views: 111

Answers (1)

S Nash
S Nash

Reputation: 2499

For future viewer Info:

I can confirm this is a BUG with VS 2019 16.11.24.

This behavior was reported by 2 developers.

We copied the solution folder to a different machine with VS Version 2019 16.11.28 on it and all 3 dlls were generated every time with rebuild.

Upvotes: 1

Related Questions