Joshua Sachs

Results 9 comments of Joshua Sachs

Took me a while to get this working... There was no situation where the secure websocket setting worked, in fact it broke accessing rcon locally. Just set it to `0`...

How would we go about using Html.Raw()? I believe this is impacted.

What do I need to import to get that method

Sorry if I'm just dense, but I I don't have @Raw as an option in my cshtml file. I assume I need a using or inject?

Ok it works. Sorry for the confusion.

Doesn't seem you can actually build a project when the views contain `@Raw() ` - is there a workaround?

> The name Raw does not exist in the current context. I understand that RazorLight will compile the template, but visual studio checks the CSHTML on build and shits itself.

In a netcore project: ``` "buildOptions": { "emitEntryPoint": true, "preserveCompilationContext": true, "compile": { "exclude": [ "**/*.cshtml", "node_modules" ] } }, ``` This will allow you to compile/publish but will not...

I found a better workaround. ``` @{ var rawString = new RazorLight.Text.RawString(content); } ... Here I want to print @(rawString) without any compile issues. ``` I think it would make...