Visual Studio Builds Projects Every Time I Run

前端 未结 13 970
花落未央
花落未央 2021-01-17 08:42

I have a .NET solution in Visual Studio 2010 with a bunch of projects. Up until recently, when I would run the startup project from within the IDE, projects would only buil

13条回答
  •  爱一瞬间的悲伤
    2021-01-17 09:28

    I landed here looking for a solution to my own situation and none of the answers provided a fix.

    After investigation I discovered a situation where UWP projects are compiled every time if the Copy to Output Directory property value is set to Copy always or Copy if newer on xaml files. In the past this would help solve certain compile issues, however since the introduction of xbf these values on these files force Visual Studio to recompile every time, even when there are no changes to any source code.

    I wrote a blog post about it: Preventing Visual Studio Recompiles in UWP

    I hope this helps someone.

提交回复
热议问题