-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit porting to .net5 #114
base: master
Are you sure you want to change the base?
Conversation
MetroFramework/MetroFramework.csproj
Outdated
<ItemGroup> | ||
<Reference Include="PresentationCore"> | ||
<HintPath>..\..\..\..\..\..\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\5.0.0-preview.6.20308.1\ref\net5.0\PresentationCore.dll</HintPath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These HintPaths should be replaced by a <UseWindowsForms>true</UseWindowsForms>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to figure out how. Keyword seems unrecognised.
I updated the hintpaths though
<Compile Include="Controls\MetroTextBoxDesigner.cs" /> | ||
<Compile Include="Controls\MetroTileDesigner.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<ProjectReference Include="..\MetroFramework\MetroFramework.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this entire ItemGroup
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<TargetFrameworkProfile /> | ||
<TargetFramework>net5.0</TargetFramework> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to net5.0-windows and add <UseWindowsForms>true</UseWindowsForms>
here
In MetroMessageBox.cs an exception is thrown when clicking OK on a message box. The exception is (Edit: Noticed on core3.1 but I assume it affects 5 as well) |
Just a note that when I build this PR, I cannot add any of the controls to the toolbox anymore. Visual Studio just will not accept the dll to add. |
@roxaskeyheart the thing we're all waiting for is to https://github.com/dotnet/winforms-designer/ to become public |
No description provided.