I'm converting to Net5. I have 40 out of 41 projects converted OK
The remaining project will not let me reference System.WindowsForms.
There are two versions of System.WindowsForms, I've been using 2.4 routinely (I hope that's what I should be doing).
I tried them both in the troublesome procedure.
What happens is: I select Project/Add COM Reference and then check System.WindowsForms.
Close the dialog and reopen it and see that the check is gone.
I did this because checking it did not have any effect on the error I was trying to fix.
I'm using System.Windows.Forms.StatusBarPanel. Could that be a problem in Net5?
BTW. I also tried including:
In that case I also checked System.WindowsForms (I'm not sure it would show checked) but it was not checked.
The remaining project will not let me reference System.WindowsForms.
There are two versions of System.WindowsForms, I've been using 2.4 routinely (I hope that's what I should be doing).
I tried them both in the troublesome procedure.
What happens is: I select Project/Add COM Reference and then check System.WindowsForms.
Close the dialog and reopen it and see that the check is gone.
I did this because checking it did not have any effect on the error I was trying to fix.
I'm using System.Windows.Forms.StatusBarPanel. Could that be a problem in Net5?
BTW. I also tried including:
VB.NET:
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Drawing" />
<Import Include="System.Diagnostics" />
<Import Include="System.Windows.Forms" />
<Import Include="System.Linq" />
<Import Include="System.Xml.Linq" />
<Import Include="System.Threading.Tasks" />
</ItemGroup>
In that case I also checked System.WindowsForms (I'm not sure it would show checked) but it was not checked.
Last edited: