WebView2 runtime fixed version ์ ์ฉํ๊ธฐ
Distribute your app and the WebView2 Runtime - Microsoft Edge Development
How to distribute the WebView2 Runtime when releasing an app that uses Microsoft Edge WebView2, either by distributing the automatically updated Evergreen Runtime, or distributing a Fixed Version of the WebView2 Runtime.
docs.microsoft.com
1. WebView2 runtime fixed version ๋ค์ด๋ก๋
https://developer.microsoft.com/ko-kr/microsoft-edge/webview2/#download-section
WebView2 - Microsoft Edge Developer
When distributing your application, there are a few ways you can ensure the WebView2 Runtime is on client machines. Learn more about those options. For installation issues and error codes see our troubleshooting guide. Evergreen Bootstrapper The Bootstrapp
developer.microsoft.com
2. cmd์์ WebView2 runtime cabํ์ผ ์์ถ ํด์
expand (๋ค์ด๋ก๋๋ฐ์ cab ๊ฒฝ๋ก) -F:* (์์ถํด์ ํ ๊ฒฝ๋ก)
ํ์ผํ์๊ธฐ๋ฅผ ํตํ ์์ถ ํด์ ๋ ํ์ผ ์์ค์ ์ผ์ผํฌ ์ ์์ผ๋ฏ๋ก cmd๋ฅผ ํตํด ์์ถ ํด์ ํ๋ค.
3. ์์ถํด์ ํ ํ์ผ์ ๊ฒฝ๋ก ํ์ธ
ํด๋น ๊ฒฝ๋ก๋ C# ์ฝ๋ ๋ด์์ ์ฌ์ฉ๋๊ธฐ ๋๋ฌธ์ ๊ฒฝ๋ก๋ฅผ ํ์ ํ๊ณ ์์ด์ผํ๋ค.
4. ์ฝ๋ ๋ด์์ fixed ๋ฒ์ ์ ์ฉ
async private void Init_webview2()
{
webView2.CreationProperties = new Microsoft.Web.WebView2.WinForms.CoreWebView2CreationProperties
{
BrowserExecutableFolder = @"C:\WebView2_Runtime\Microsoft.WebView2.FixedVersionRuntime.103.0.1264.62.x64"
};
((System.ComponentModel.ISupportInitialize)(this.webView2)).EndInit();
await webView2.EnsureCoreWebView2Async();
}
BrowserExecutableFolder ์ 3๋ฒ์์ ํ์ธํ ์์ถํด์ ํ์ผ์ ๊ฒฝ๋ก๋ฅผ ์ง์ ํ๋ค.
'๐ป๊ฐ๋ฐ > WEB' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ค๋ฅํด๊ฒฐ] WebView2 ์คํ ์ Form ์์ ๋ณด์ด์ง ์์ ๋ (0) | 2022.08.02 |
---|---|
[์ค๋ฅํด๊ฒฐ] System.InvalidOperationException: 'CreationProperties cannot be modified after the initialization of CoreWebView2 has begun.' (0) | 2022.08.02 |
[.NET] ๋น๋(Build)์ ๋ค์๋น๋(ReBuild) ์ฐจ์ด (0) | 2022.07.25 |
Custom URI ๋ง๋ค๊ธฐ (0) | 2022.07.12 |
[CSS] ์ ํ์ (0) | 2022.03.28 |