Visual Studio Builds Projects Every Time I Run

前端 未结 13 969
花落未央
花落未央 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:12

    TargetFramework in .csproj vs. supportedRuntime-sku in app.config

    Just found another reason for rebuilds (at least with the new sdk-style project files, didn't try for the "old style" projects): if the TargetFramework element in the .csproj file does not match the sku-attribute of the supportedRuntime-entry in the app.config, visual studio will also rebuild the project every single time.

    For example, targeting 4.6.2 in the .csproj

    
      
        net462
      
    
    

    vs. 4.6.1 specified in app.config

    
         
            
        
    
    

    will trigger a rebuild.

提交回复
热议问题