Skip to content
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

[bug] Placeholders not well processed [dotnet/.NET Blazor build] #741

Closed
RubenPX opened this issue Jul 15, 2024 · 0 comments
Closed

[bug] Placeholders not well processed [dotnet/.NET Blazor build] #741

RubenPX opened this issue Jul 15, 2024 · 0 comments

Comments

@RubenPX
Copy link

RubenPX commented Jul 15, 2024

Describe the bug

When i try to build .net project with blazor. Home.razor is not well parsed.

private async Task GreetAsync() {
    GreetMsg = await JsRuntime.InvokeAsync<string>("__TAURI__.{% if beta %}core{% else %}tauri{% endif %}.invoke", "greet", new { name = GreetInput });
}

I know this maybe is a early feature. Guys Keep going. I Love Tauri

Reproduction

Create any project using dotnet with blazor

Expected behavior

Deploy/expand code

if is in beta v2

private async Task GreetAsync() {
    GreetMsg = await JsRuntime.InvokeAsync<string>("__TAURI__.core.invoke", "greet", new { name = GreetInput });
}

If is 1.0

private async Task GreetAsync() {
    GreetMsg = await JsRuntime.InvokeAsync<string>("__TAURI__.tauri.invoke", "greet", new { name = GreetInput });
}

Full tauri info output

PS C:\Users\rfilipe\Desktop\VRCPX\tauri-app\src-tauri> cargo tauri info
WARNING: no lock files found, defaulting to npm

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 126.0.2592.102
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 21.6.2
    - pnpm: 9.5.0
    - npm: 9.6.6
    - bun: 1.1.10

[-] Packages
    - tauri [RUST]: 1.7.1
    - tauri-build [RUST]: 1.5.3
    - wry [RUST]: 0.24.10
    - tao [RUST]: 0.16.9
    - tauri-cli [RUST]: 1.6.0
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 1.6.0

[-] App
    - build-type: build
    - CSP: unset
    - distDir: ../dist/wwwroot
    - devPath: http://localhost:1420/

Stack trace

No response

Additional context

No response

@RubenPX RubenPX changed the title [bug] Placeholders not well processed [dotnet build] [bug] Placeholders not well processed [dotnet/.NET Blazor build] Jul 15, 2024
@FabianLars FabianLars transferred this issue from tauri-apps/tauri Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant