Open MarkStega opened 8 months ago
@MarkStega thanks for contacting us.
Try adding ~<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
~ to https://github.com/Material-Blazor/Material.Blazor/blob/main/Directory.Build.props to see if that fixes your issue.
Does it work if you do the build/publish step from the command line?
Please set the <AccelerateBuildsInVisualStudio>**false**</AccelerateBuildsInVisualStudio>
instead. The above was unintentional / typo.
Hi @MarkStega. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
@javiercn
On the desktop in Visual Studio, the 'accelerate' addition makes no difference; The source files in the images & icons directory of Material.Blazor.Website.MD3 get deleted and then the publish fails.
The same behavior occurs with a command line 'dotnet publish'.
I originally saw the behavior on the workflow run in the github repository. https://github.com/Material-Blazor/Material.Blazor/actions/runs/7182566364/job/19559534765
What I find odd is that the almost identical projects in the repository build and publish with no issue.
RCL's of Material.Blazor & Material.Blazor.Website comprise the content of Material.Blazor.Website.Webassembly
in the same fashion as
RCL's of Material.Blazor.MD3 & Material.Blazor.Website.MD3 comprise the content of Material.Blazor.Website.Webassembly.MD3
but the build and publish of the 'non MD3' version succeeds.
@javiercn
You actually helped me with the csproj for the resource build in 35274
@javiercn
Now that it appears that #38445 is unlikely to be implemented, is there documentation on the 'preferred' way to build 3rd party assets using csproj commands?
@MarkStega I've updated @javiercn's comment above as he meant to recommend you to try to disable the accelerated build in VS. Can you please try that again and see if that makes a difference: https://github.com/dotnet/aspnetcore/issues/52673#issuecomment-1850608468
Hi @MarkStega. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
With AccelerateBuildsInVisualStudio set to true or false the same error occurs.
I don't think we can point to Visual Studio as the problem. The issue was first seen on a github actions CLI build. I was able to reproduce in VS which was more convenient than setting up a CLI build process on my development system.
Is there an existing issue for this?
Describe the bug
I have a WASM app that fails to publish after I added TypeScript/Javascript source to one of the razor class libraries that compose the app. To make matters worse the publish step is deleting input files from the RCL source.
Expected Behavior
I'd expect to be able to add content files to the RCL without breaking the WASM publish.
Steps To Reproduce
This is a fully reproducible problem and even though the repository is large, I can walk through the needed steps for reproduction with a minimal understanding of the repository required.
The public, open source repository is https://github.com/Material-Blazor/Material.Blazor.
1) Clone the repository 2) Checkout the vNext branch 3) Publish the Material.Blazor.Website.WebAssembly.MD3 project using the FolderProfile 4) This succeeds 5) Edit the Material.Blazor.Website.MD3.csproj 6) Delete the comment markers on lines 101, 85, 83, and 79. This enable production of two javascript assets 7) Repeat the publish step 3 above
This has two unfortunate results.
The first is that there are five files not found. They are static assets in the wwwroot folder of the Material.Blazor.Website.MD3 project. The errors are below.
The second is that those static assets are deleted from the source tree.
Exceptions (if any)
No response
.NET Version
8.0.100
Anything else?
Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.9.0 Preview 1.1