-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add Exceptionless.Windows&Wpf for dotnet core 3.0 rc #216
Conversation
@rwecho awesome! Thanks for the pr :). Was there any specific changes needed for core support? I'm wondering what it would take to use the same NuGet package/existing projects as I know we can upgrade the existing via csproj and do multi targeting. I'm guessing you tried this? What issues did you run into? Thanks again |
hi @niemyjski Thanks for your reply.
<ItemGroup>
<EmbeddedResource Update="Dialogs\CrashReportForm.resx">
<SubType>Designer</SubType>
<DependentUpon>CrashReportForm.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup> And I add new commits : remove dotnet core version && replace windows with multi targeting. |
Thanks for your help. I think multi targeting is the best approach. I'll help test this as well :). |
I'm just checking in to see how things were going. Did you have any luck merging these? |
@rwecho is there anything I can do to help with this pr? |
1 similar comment
@rwecho is there anything I can do to help with this pr? |
@niemyjski Sorry for late reply . I am not familiar with appveyor/cla. It warns me build failed and let me sign the license. I don't know what to do. I thought you will resolve it . But sorry for ignoring this again. Could you tell me what I should do next ? Thanks. |
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.
I left some comments and questions on this review (thanks again for the PR). Do we need to make any build changes for this / maybe simplify the whole build because now the project system can build nuget packages for everything. Also did you run into any issues testing this on .NET 4.5?
@@ -7,7 +7,7 @@ | |||
<AssemblyTitle>Exceptionless client for non visual (ie. Console and Services) applications.</AssemblyTitle> | |||
<Description>Exceptionless client for portable applications. $(Description)</Description> | |||
<PackageTags>Exceptionless;Error;Report;Reporting;Exception;Logging;Log;ELMAH;pcl;NETSTANDARD;Core</PackageTags> | |||
<TargetFrameworks>netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard2.0;portable46-net451+win81+wpa81;net45</TargetFrameworks> |
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.
I think we still need to support this, any reason this was removed?
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.
I forgot to add it again. Because I can not compile success on my pc environment.
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\..\..\</SolutionDir> | ||
<RestorePackages>true</RestorePackages> | ||
<TargetFrameworks>netcoreapp3.0;net45</TargetFrameworks> | ||
<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.
What does this do?
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.
UseWindowsForms label providers Microsoft.WindowsDesktop.App.WindowsForms framework collections.
It's along with project created, same with UseWPF
@@ -5,6 +5,5 @@ | |||
|
|||
[assembly: CLSCompliant(true)] | |||
[assembly: ComVisible(false)] | |||
[assembly: AssemblyTitle("Exceptionless.Wpf")] |
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.
Any reason for removing this?
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.
same to the above AssemblyTitle reason.
@@ -22,7 +26,7 @@ | |||
[AppName] has encountered a problem and needs to close. We are sorry for the inconvenience. | |||
</TextBlock> | |||
<Image Name="errorImage" Grid.Column="2" | |||
Source="../Images/ErrorFeedback.png" | |||
Source="/Exceptionless.Wpf.Core;component/Images/ErrorFeedback.png" |
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.
Where did this core namespace come from? Is this correct?
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.
I forgot to modify it, when migrating from Exceptionless.Wpf.Core. I'll fix it.
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" | ||
FocusManager.FocusedElement="{Binding ElementName=DescriptionTextBox}" | ||
Icon="../Images/ErrorFeedback.png"> | ||
Icon="/Exceptionless.Wpf.Core;component/Images/ErrorFeedback.png" |
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.
Where did this core namespace come from? Is this correct?
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.
I forgot to modify it, when migrating from Exceptionless.Wpf.Core. I'll fix it.
@@ -4,6 +4,5 @@ | |||
|
|||
[assembly: CLSCompliant(true)] | |||
[assembly: ComVisible(false)] | |||
[assembly: AssemblyTitle("Exceptionless.Windows")] |
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.
Any reason for removing this?
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.
This will produce error CS0579: Duplicate 'System.Reflection.AssemblyTitleAttribute' attribute. The csproj will generate title attribute same with project name, this should be written in the in the csporj.
samples/Exceptionless.SampleWindows/Exceptionless.SampleWindows.csproj
Outdated
Show resolved
Hide resolved
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.
Hi @niemyjski thanks for your patience to give directions. I did some work according to your reviews.
- upgrade to .NET Core 3.1
- restore portable46-net451+win81+wpa81 for project Exceptionless
- fix icons error namespace.
samples/Exceptionless.SampleWindows/Exceptionless.SampleWindows.csproj
Outdated
Show resolved
Hide resolved
@@ -7,7 +7,7 @@ | |||
<AssemblyTitle>Exceptionless client for non visual (ie. Console and Services) applications.</AssemblyTitle> | |||
<Description>Exceptionless client for portable applications. $(Description)</Description> | |||
<PackageTags>Exceptionless;Error;Report;Reporting;Exception;Logging;Log;ELMAH;pcl;NETSTANDARD;Core</PackageTags> | |||
<TargetFrameworks>netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard2.0;portable46-net451+win81+wpa81;net45</TargetFrameworks> |
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.
I forgot to add it again. Because I can not compile success on my pc environment.
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\..\..\</SolutionDir> | ||
<RestorePackages>true</RestorePackages> | ||
<TargetFrameworks>netcoreapp3.0;net45</TargetFrameworks> | ||
<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.
UseWindowsForms label providers Microsoft.WindowsDesktop.App.WindowsForms framework collections.
It's along with project created, same with UseWPF
@@ -5,6 +5,5 @@ | |||
|
|||
[assembly: CLSCompliant(true)] | |||
[assembly: ComVisible(false)] | |||
[assembly: AssemblyTitle("Exceptionless.Wpf")] |
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.
same to the above AssemblyTitle reason.
@@ -22,7 +26,7 @@ | |||
[AppName] has encountered a problem and needs to close. We are sorry for the inconvenience. | |||
</TextBlock> | |||
<Image Name="errorImage" Grid.Column="2" | |||
Source="../Images/ErrorFeedback.png" | |||
Source="/Exceptionless.Wpf.Core;component/Images/ErrorFeedback.png" |
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.
I forgot to modify it, when migrating from Exceptionless.Wpf.Core. I'll fix it.
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" | ||
FocusManager.FocusedElement="{Binding ElementName=DescriptionTextBox}" | ||
Icon="../Images/ErrorFeedback.png"> | ||
Icon="/Exceptionless.Wpf.Core;component/Images/ErrorFeedback.png" |
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.
I forgot to modify it, when migrating from Exceptionless.Wpf.Core. I'll fix it.
@@ -4,6 +4,5 @@ | |||
|
|||
[assembly: CLSCompliant(true)] | |||
[assembly: ComVisible(false)] | |||
[assembly: AssemblyTitle("Exceptionless.Windows")] |
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.
This will produce error CS0579: Duplicate 'System.Reflection.AssemblyTitleAttribute' attribute. The csproj will generate title attribute same with project name, this should be written in the in the csporj.
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.
Thanks for the PR! We need to test this like crazy before merging which I'll start this process here this week or next (traveling a bunch this week). If you could help test and list the platforms tested that would be a huge help!
Thanks for the PR! I merged it into a branch so I can continue testing it and update the build if required. |
* add winform & wpf for dotnet core 3.0 preview. * add nuget script * remove core projects for dotnet core 3.0 and will replaced with fx version. * replace fx version with multi targeting * fix obsolete namepsace. * upgrade .NET Core 3.1 * restore frameworks portable46-net451+win81+wpa81 Co-authored-by: Blake Niemyjski <[email protected]>
Copy windows&wpf project to generate new dotnet core 3.0 version.