-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Copy static assets during BeforeBuild target to fix Visual Studio "rebuild" failures #11216
Conversation
Hi there @OzoneNZ, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Works like a charm #h5yr! |
Am I right in assuming package devs should be making a similar change in .targets to avoid the same issue? |
@nathanwoulfe I guess that depends on if the packages need to write files into the project directories for editing by their users. We're hoping to move away from these msbuild hacks to immutable content in nuget packages and package developers should try to do so where possible also.
|
Cherry picked to 9.0.1 |
Description
Fixes issue #11215 when using
Rebuild
option in Visual Studio/msbuild where every second rebuild would fail due to missing static asset filesFixes #10760
Fixes #11215
msbuild output prior to this change: