Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

VB -> C#: Basic WPF Transformations

オープン
#995 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
desktop, tooling

調査の方向性

素の VB WPF (.NET 7) プロジェクト、Hello World テキストブロック、CodeConverter 拡張機能を使って報告を再現します。XAML x:Class 名前空間、Application.xaml の命名、x:ClassModifier の可視性について変換経路を追跡します。完了条件は、変換後の C# プロジェクトが3つすべてのケースを手動編集なしで処理できることです。

索引モデルが issue の本文から書いたものです。

説明

help wanted VB -> C#

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:Class attributes 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 a void Main for 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 case x:ClassModifier="internal").
主要言語
C#
スター
913
フォーク
244
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

icsharpcode/CodeConverter のほかの issue

icsharpcode/CodeConverter の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。