-
Notifications
You must be signed in to change notification settings - Fork 258
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
RazorLight not working in single-file bundle #429
Comments
I experienced the same problem but with a different error message. Everything works fine locally, but when I publish it I get:
If I set PublishSingleFile to False in the Publish Profile, then the error disappears:
Additional information
|
This also happens to me on linux (Ubuntu 20.04). |
@marcosdimitrio :
Unfortunately that will not help you fix all errors but the one you're currently encountering. |
I've done some more digging an am not sure that there is anything this project can do.
calls
which calls
That method calls
which will always set |
I did include it in both projects (webapi and razorlight project), it only worked when PublishSingleFile is set to false. When I set PublishSingleFile to true it stops working. |
RazorLight indeed does not work in a single-file bundle yet. |
Hi @toddams, is there any work going on in the matter of supporting single-file bundles? |
Any update on this? I'm affected by this issue. |
1 similar comment
Any update on this? I'm affected by this issue. |
Does this makes unfeasible to use this package in a dotnet cli tool? |
@brodrigz Why would you use this package in a dotnet cli tool? dotnet cli is NOT for production use - even Microsoft says so. Using the package in a dotnet cli tool requires installing the SDK, vs. only the runtime. You should NOT install an SDK on a production machine. |
I wouldn't, I want to use this for development only, but packaged as a .nugget package |
I had previously thought that dotnet tools always got packed as a single file, they don't. Currently using this package on a dotnet tool and it works perfectly. |
Describe the bug
I'm trying to use this package but when I publish using
-p:PublishSingleFile=true
, my application throws an error when the code touch this library.To Reproduce
Steps to reproduce the behavior:
-p:PublishSingleFile=true
, for example:dotnet publish . -c Release -r win-x64 -p:PublishSingleFile=true
Expected behavior
I expected that my application works.
Information (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: