-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Packaging of static assets of razor libraries is different in Githhub Actions from Local Computer #61140
Comments
@rbuergi thanks for contacting us. Capture an msbuild binlog and check the casing on the paths in the binlog. |
Hi @javiercn. Thanks for resonding so quickly. This is the entire log from github actions. At least judging on my windows setup, the casings seem to be correct... However, I wonder why I get all the duplicate messages which I don't get on Windows. |
@rbuergi thanks for the additional details. Unfortunately, the logs we need are the MSBuild binlogs generated with dotnet build /bl. Alternatively, we would suggest you either create a new class library and start adding files until you are able to trigger the issue and provide a minimal repro. |
@javiercn I am sorry I didn't understand. I have now produced the binlog for the pack process. It took me a while, I didn't even know this exists. I guess this is what I need to do? If not, I am sorry. I know now how to produce this on github, so can also add the one for build. Thanks a lot for taking care. |
I had already asked the following issue: #60680. You have kindly explained to me how to configure the razor libs to create proper nuget packages. This setup works perfectly when I build the packages locally. I can also use them in a Blazor project, and all the js files get added to the staticwebassets folder.
However, when I try to build the razor library with the exact same commands on github actions under linux, I get warnings for the javascript files that
this pattern repeats for all javascript files.
In the published package, the js files get correctly added under contentFiles/any/net9.0/wwwroot, but they are missing from staticwebassets.
I have executed the exact same commands from the github action on my local machine, and the packages build fine. What's the difference between running the command on my local machine versus github actions? I really don't know how to advance on this; I wouldn't like to publish packages from my local PC....
The text was updated successfully, but these errors were encountered: