OpenTween
OpenTween copied to clipboard
OpenTween.csproj を新しい形式にする
動作には影響がないようにしているつもりです。
これまでとの違いとして、リリース時に AssemblyInfo.cs のバージョンを書き換えていたのを OpenTween.csproj のバージョンを書き換えるようにする必要があります。
SDK スタイルの csproj は OpenTween.Tests.csproj では移行済みですが、OpenTween.csproj は Visual Studio 上で WinForms のフォームやユーザーコントロールの新規追加ができなくなる問題があり移行できていません。 .NET に移行できればこの辺の問題も解決できそうですが、 .NET 6 の時点では HiDPI 対応に難があり今のところ保留となっています…。
@upsilon
確認しました。
<UseWindowsForms>true</UseWindowsForms>
を追加したら出そうなのですがどうでしょう?
.NET Framework で使う分にはビルドの影響もないはずです。
AssemblyInfo.cs
の自動生成を有効にすると、ビルド時のロケール設定に依存して OpenTween.pdb
および OpenTween.exe
のハッシュ値が変化してしまい Reproducible build の妨げになることが分かったため、回避策が見つかるまでは <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
で自動生成を無効化します。
--- a/OpenTween/obj/Debug/net472/OpenTween.AssemblyInfo.cs 2022-11-29 18:28:10.000000000 +0900
+++ b/OpenTween/obj/Debug/net472/OpenTween.AssemblyInfo.cs 2022-12-01 00:24:09.904235300 +0900
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
+// このコードはツールによって生成されました。
+// ランタイム バージョン:4.0.30319.42000
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
+// コードが再生成されるときに損失したりします。
// </auto-generated>
//------------------------------------------------------------------------------
@@ -23,5 +23,5 @@
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("OpenTween.Tests")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2")]
-// Generated by the MSBuild WriteCodeFragment class.
+// MSBuild WriteCodeFragment クラスによって生成されました。