Steps to reproduce:
Expected:
markup changes should be rebuilt and shown in the browser
Actual:
Project is considered "up to date" and no rebuild happens. Old content shows in browser.
The .razor
wildcard needs to be added here: https://github.com/aspnet/AspNetCore-Tooling/blob/master/src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets#L262
In that case, it seems like a good workaround for people during Preview 4 is to add the following to their .csproj:
<ItemGroup>
<UpToDateCheckInput Include="@(Content->WithMetadataValue('Extension', '.razor'))" />
</ItemGroup>
It seems to work for me. @danroth27, should we describe this workaround in the blog post? The dev experience is pretty bad without applying this workaround.
Do you agree this is safe, @rynowak?
Yes, this is what we will do to fix the bug.
@SteveSandersonMS Yes, the developer experience during the last four hours starting with the Razor Components template was bad. It would have helped to get more visibility of your workaround.
Thanks for the workaround, though!
@tragetaschen For future reference, the list of known issues for .NET Core 3.0 can be found here: https://github.com/dotnet/core/blob/master/release-notes/3.0/preview/3.0.0-preview-known-issues.md
This will probably be fixed in internal builds of VS tomorrow. I think all that will be required here is to update to a newest master and try this out.
Most helpful comment
In that case, it seems like a good workaround for people during Preview 4 is to add the following to their .csproj:
It seems to work for me. @danroth27, should we describe this workaround in the blog post? The dev experience is pretty bad without applying this workaround.
Do you agree this is safe, @rynowak?