プロジェクトが複数の DLL に分割されている場合、バージョン管理が問題になる可能性があることを読みました。バージョン管理の問題を導入して、その意味を理解しようとしています。Windows フォーム アプリケーションとクラス ライブラリの 2 つの単純なプロジェクトがあります。フォームは次のとおりです。
Imports ClassLibrary1
Public Class Form1
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Dim c1 As Class1 = New class1
c1.TEST()
End Sub
End Class
クラスライブラリは次のとおりです。
Public Class Class1
Public Sub TEST()
MsgBox("TEST1")
End Sub
End Class
以下の Windows フォーム アプリのバージョン番号を確認してください。
以下のクラス ライブラリのバージョンを参照してください。
プロジェクトをビルドすると、期待どおりに実行可能ファイルと DLL が得られます。バージョン管理の問題を導入するために、次の手順に従いました。
1) Build the project
2) Go to the bin folder and create a copy of debug/WindowsApplication1.exe
3) Go into the DLL properties and change the DLL version in Visual Studio
4) Rebuild the project
5) Overwrite the .EXE in the BIN folder (debug/WindowsApplication1.exe) with the .EXE copied in step 2
6) Launch the .EXE in the bin folder
古いバージョンの .exe が新しい DLL を使用しているため、手順 5 でエラーが表示されると思いました。ただし、プログラムは期待どおりに実行されます。私は何が欠けていますか?これは基本的な質問だと認識しています。私は今日の午後それをググった。