-
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
v9 Fix build required before initial publish #11211
v9 Fix build required before initial publish #11211
Conversation
Any chance #11215 can be resolved in this PR too? Believe it's just a case of updating the |
No worries, cheers for explaining - have opened another PR to resolve that issue |
related reading |
8b6eaa7
to
84adc64
Compare
@p-m-j I have a similar issue blocking our move to V9, where the first fresh Build of a 9.0.1 project does not copy the Only the second Build run actually copies the I suspect this is something that also requires changes to Sounds very similar to this issue however: https://stackoverflow.com/a/606658 Also note that the issue remains even when applying this PR patch |
Managed to solve the above issue with some changes to I think what's going on is that <Content Include="umbraco/**" CopyToOutputDirectory="Always" /> Which would explain why the second-time build has no issues copying the files, because they exist from the very start having been copied during the first build attempt - the stack overflow link above confirms this My workaround is to wrap the <Target Name="IncludeUmbracoAssets" AfterTargets="CopyUmbracoAssets">
<ItemGroup>
<Content Include="umbraco/**" CopyToOutputDirectory="Always" CopyToPublishDirectory="Always" />
</ItemGroup>
</Target> |
Yep that's annoying, I called it quits when the published output was sorted, will have a look later on in the week. |
d5ea79f
to
f4610af
Compare
f4610af
to
b0ad3a2
Compare
b0ad3a2
to
7a92976
Compare
With huge thanks to the comments in dotnet/sdk#960