Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Incremental Build for C# and VB projects #1327

Closed
Sarabeth-Jaffe-Microsoft opened this issue Nov 8, 2016 · 0 comments
Closed

Improved Incremental Build for C# and VB projects #1327

Sarabeth-Jaffe-Microsoft opened this issue Nov 8, 2016 · 0 comments

Comments

@Sarabeth-Jaffe-Microsoft
Copy link
Contributor

Incremental Build Support
MSBuild only considers the set of items computed in the current build when deciding when to execute a target. When files are included via wildcard (globbing) this can create a problem when deleting an input. The output will be up-to-date with all of the existing inputs, but should be re-built because the set of inputs has changed.
 
We plan to create more reliable incremental builds by recording the list of C# compiler inputs in a file to be checked between builds.

@Sarabeth-Jaffe-Microsoft Sarabeth-Jaffe-Microsoft added this to the Visual Studio 15 RTM milestone Nov 8, 2016
@rainersigwald rainersigwald changed the title Improved Incremental Build Improved Incremental Build for C# and VB projects Nov 8, 2016
AndyGerlicher added a commit to AndyGerlicher/msbuild that referenced this issue Nov 9, 2016
Add a target that runs before CoreCompile that will record tnd store the
state of the Compile ItemGroup. This file is added to the
CustomAdditionalCompileInputs which is an input to CoreCompile. When this
file changes, CoreCompile will run again. This fixes the issue of deleting
a file or adding a file with an old timestamp to a glob (e.g. *.cs).

Fixes dotnet#1327
AndyGerlicher added a commit to AndyGerlicher/msbuild that referenced this issue Nov 9, 2016
Add a target that runs before CoreCompile that will record and store the
state of the Compile ItemGroup. This file is added to the
CustomAdditionalCompileInputs which is an input to CoreCompile. When this
file changes, CoreCompile will run again. This fixes the issue of deleting
a file or adding a file with an old timestamp to a glob (e.g. *.cs).

Fixes dotnet#1327
AndyGerlicher added a commit to AndyGerlicher/msbuild that referenced this issue Nov 11, 2016
Add a target that runs before CoreCompile that will record and store the
state of the Compile ItemGroup. This file is added to the
CustomAdditionalCompileInputs which is an input to CoreCompile. When this
file changes, CoreCompile will run again. This fixes the issue of deleting
a file or adding a file with an old timestamp to a glob (e.g. *.cs).

Fixes dotnet#1327
AndyGerlicher added a commit to AndyGerlicher/msbuild that referenced this issue Nov 14, 2016
Add a target that runs before CoreCompile that will record and store the
state of the Compile ItemGroup. This file is added to the
CustomAdditionalCompileInputs which is an input to CoreCompile. When this
file changes, CoreCompile will run again. This fixes the issue of deleting
a file or adding a file with an old timestamp to a glob (e.g. *.cs).

Fixes dotnet#1327
AndyGerlicher added a commit to AndyGerlicher/msbuild that referenced this issue Nov 14, 2016
Add a target that runs before CoreCompile that will record and store the
state of the Compile ItemGroup. This file is added to the
CustomAdditionalCompileInputs which is an input to CoreCompile. When this
file changes, CoreCompile will run again. This fixes the issue of deleting
a file or adding a file with an old timestamp to a glob (e.g. *.cs).

Fixes dotnet#1327
AndyGerlicher added a commit to AndyGerlicher/msbuild that referenced this issue Nov 14, 2016
Add a target that runs before CoreCompile that will record and store the
state of the Compile ItemGroup. This file is added to the
CustomAdditionalCompileInputs which is an input to CoreCompile. When this
file changes, CoreCompile will run again. This fixes the issue of deleting
a file or adding a file with an old timestamp to a glob (e.g. *.cs).

Fixes dotnet#1327
AndyGerlicher added a commit to AndyGerlicher/msbuild that referenced this issue Nov 14, 2016
Add a target that runs before CoreCompile that will record and store the
state of the Compile ItemGroup. This file is added to the
CustomAdditionalCompileInputs which is an input to CoreCompile. When this
file changes, CoreCompile will run again. This fixes the issue of deleting
a file or adding a file with an old timestamp to a glob (e.g. *.cs).

Fixes dotnet#1327
@AR-May AR-May added the triaged label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Sprint 109.2
In Progress (Andy)
Sprint 109.3
Completed
Development

No branches or pull requests

3 participants