VB -> C#: Basic WPF Transformations
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
調査の方向性
素の VB WPF (.NET 7) プロジェクト、Hello World テキストブロック、CodeConverter 拡張機能を使って報告を再現します。XAML x:Class 名前空間、Application.xaml の命名、x:ClassModifier の可視性について変換経路を追跡します。完了条件は、変換後の C# プロジェクトが3つすべてのケースを手動編集なしで処理できることです。
索引モデルが issue の本文から書いたものです。
説明
I just converted a WPF project from VB.NET to C#. There were a few basic transformations that had to be done manually. I want to describe them in this issue to (a) aid other people doing the same and (b) provide a TODO list in case anyone wants to add these transformations to CodeConverter.
These "issues" can be reproduced by creating a vanilla VB WPF (.NET 7) project with the Visual Studio default template, adding a "Hello World" text block to the main window and converting it to C# with the CodeConverter extension (I used 9.1.3.0).
- You need to add the default namespace to all
x:Classattributes in the root element of your XAML files. The VB compiler adds the default namespace automatically, but the C# compiler doesn't. - If no
Sub Main()exists, you need to rename Application.xaml(.cs) to App.xaml(.cs). Apparently, C# only auto-generates avoid Mainfor an App.xaml, not for an Application.xaml. - If your XAML files have non-default visibility (e.g.
x:ClassModifier="Friend"), this value needs to be converted to the corresponding C# value (in this casex:ClassModifier="internal").
- 主要言語
- C#
- スター
- 913
- フォーク
- 244
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
icsharpcode/CodeConverter のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
icsharpcode/CodeConverter#1271 · コメント 1 件 ·
-
C# -> VB
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
icsharpcode/CodeConverter#1281 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
icsharpcode/CodeConverter#1275 ·
-
VB -> C#
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
icsharpcode/CodeConverter#1273 ·
-
VB -> C#: "Group By Into" Linq queries supressing aggregations ("Into" part) in the converted codeオープンDifficult area VB -> C#
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
icsharpcode/CodeConverter#1272 ·
icsharpcode/CodeConverter の issue をすべて見る
似ている issue
-
ci-failure-cause test-failure
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
area:frontend bug FE hotspot:css mvp P3
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
klasolsson81/jobbliggaren#1856 ·
メンテナーはふだん 1 日以内に返信
-
Area: App+Library Build
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Aaronontheweb/freshdesk-cli#148 ·