WinUI.Monaco
1.1.49.114
See the version list below for details.
dotnet add package WinUI.Monaco --version 1.1.49.114
NuGet\Install-Package WinUI.Monaco -Version 1.1.49.114
<PackageReference Include="WinUI.Monaco" Version="1.1.49.114" />
paket add WinUI.Monaco --version 1.1.49.114
#r "nuget: WinUI.Monaco, 1.1.49.114"
// Install WinUI.Monaco as a Cake Addin #addin nuget:?package=WinUI.Monaco&version=1.1.49.114 // Install WinUI.Monaco as a Cake Tool #tool nuget:?package=WinUI.Monaco&version=1.1.49.114
WinUI.Monaco-Editor
Introduction
The Monaco Editor (Visual Studio Code) as UI Control for WinUI 3.0
Notice: As part of a project restructuring, the NuGet name of the library was changed from winui.monaco-editor
to WinUI.Monaco
.
Install Monaco in a WinUI 3.0 Project
dotnet add package WinUI.Monaco
WinUI.Monaco Version
The library version is composed as follows:
- the current project version
- the used Monaco Editor version
- the GitHub RunNumber of the build
1.1.${{ env.MONACO_VERSION }}.${{ github.run_number }}
(example: 1.1.44.13
)
Handler
This Monaco control uses handlers to provide certain actions that have nothing directly to do with the actual Monaco editor:
MonacoWebViewDevToolsHandler
This handler can be used to open the WebView2 DevTools.
MonacoWebViewDevToolsHandler handler = this.MonacoEditor.GetHandler<MonacoWebViewDevToolsHandler>();
handler.OpenDebugWebViewDeveloperTools();
MonacoFileRecognitionHandler
With this handler you can pass a file extension and get back the code language supported by the Monaco Editor, which can then be set in the Monaco Editor.
MonacoFileRecognitionHandler handler = this.MonacoEditor.GetHandler<MonacoFileRecognitionHandler>();
string fileCodeLanguage = handler.RecognizeLanguageByFileType(Path.GetExtension(file.Path));
await this.MonacoEditor.SetLanguageAsync(fileCodeLanguage);
Contributors
Development
Update the Monaco Version
The monaco project is stored in the C#-Project Monaco under the folder monaco-editor
.
To update the monaco version follow these steps (Only do this if it is really necessary. The project is always automatically updated to the latest release version of the monaco project via a GitHub workflow):
- download the latest version from Microsoft Monaco Project
- extract the archive file
- delete all files except for
index.html
from the foldermonaco-editor
. Theindex.html
is required for the project - copy all new files from the extracted archive to the folder
monaco-editor
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows10.0.19041 is compatible. net7.0-windows was computed. net8.0-windows was computed. net9.0-windows was computed. |
-
net6.0-windows10.0.19041
- Microsoft.Windows.SDK.BuildTools (>= 10.0.22621.3233)
- Microsoft.WindowsAppSDK (>= 1.5.240311000)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.52.119 | 393 | 11/26/2024 |
1.1.49.117 | 255 | 11/6/2024 |
1.1.49.116 | 507 | 6/16/2024 |
1.1.49.115 | 167 | 6/12/2024 |
1.1.49.114 | 244 | 6/4/2024 |
1.1.48.113 | 232 | 5/13/2024 |
1.1.47.78 | 309 | 5/3/2024 |
1.1.47.76 | 262 | 5/3/2024 |
1.1.47.75 | 218 | 5/3/2024 |
1.1.47.62 | 185 | 5/2/2024 |
1.1.47.61 | 142 | 5/2/2024 |
1.1.47.60 | 154 | 5/2/2024 |
1.1.47.59 | 153 | 5/2/2024 |
1.1.47.58 | 162 | 5/2/2024 |
1.1.47.57 | 150 | 5/2/2024 |
1.1.47.56 | 157 | 5/2/2024 |
1.1.47.55 | 160 | 5/2/2024 |
1.1.47.54 | 151 | 5/2/2024 |
1.1.47.53 | 131 | 5/2/2024 |
1.1.47.52 | 130 | 5/2/2024 |
1.1.47.51 | 164 | 5/2/2024 |
1.1.47.50 | 323 | 4/5/2024 |
1.1.47.49 | 262 | 4/5/2024 |
1.1.47.48 | 205 | 4/5/2024 |
1.1.47.47 | 304 | 3/24/2024 |
1.1.47.46 | 278 | 3/24/2024 |
1.1.46.45 | 160 | 3/23/2024 |
1.1.46.44 | 637 | 2/10/2024 |
1.1.46.43 | 480 | 2/10/2024 |
1.1.46.42 | 455 | 2/10/2024 |
1.1.46.41 | 463 | 2/10/2024 |
1.1.46.40 | 503 | 2/10/2024 |
1.1.46.39 | 487 | 2/10/2024 |
1.1.46.38 | 492 | 2/10/2024 |
1.1.46.37 | 538 | 2/10/2024 |
1.1.46.36 | 477 | 2/10/2024 |
1.1.46.35 | 466 | 2/10/2024 |
1.1.44.34 | 512 | 1/28/2024 |
1.1.44.33 | 560 | 12/26/2023 |
1.1.44.32 | 570 | 12/26/2023 |
1.1.44.31 | 605 | 12/26/2023 |
1.1.44.30 | 544 | 12/26/2023 |
1.1.44.29 | 548 | 12/26/2023 |
1.1.44.28 | 579 | 12/26/2023 |
1.1.44.27 | 717 | 11/22/2023 |
1.1.44.26 | 578 | 11/22/2023 |
1.1.44.25 | 522 | 11/22/2023 |
1.1.44.24 | 554 | 11/22/2023 |
1.1.44.23 | 513 | 11/22/2023 |
1.1.44.22 | 569 | 11/21/2023 |
1.1.44.21 | 611 | 11/20/2023 |
1.1.44.19 | 635 | 11/20/2023 |
1.1.44.18 | 634 | 11/20/2023 |
1.0.0 | 589 | 11/20/2023 |