.NET Core and .NET Standard Projects Do Not Incrementally Build

I use the standard .NET libraries in my desktop solution, so I can exchange these libraries between my desktop and web solution. However, I see issues with incremental builds. Has anyone else experienced this or were able to fix it?

I see that the standard .NET libraries have some incremental build functions, because if I create them on the command line using "dotnet build", it will take, for example, 1 second, and then if I make a code change in this library and run again, it takes 2 seconds. This will last up to 1 second if I work for the third time.

However, in pure .NET Framework applications, such as a console application or a wpf application, traditionally, if you do not change the code, but inside the visual studio, it does not even try to build a project. He just says "1 relevant." I see that the standard .NET libraries are always re-copied to the output directory, and they also make the whole WPF project rebuild every time. After a while, it starts to get annoying if it takes 5 seconds for each code change!

+4
source share

Source: https://habr.com/ru/post/1668956/


All Articles