-
Notifications
You must be signed in to change notification settings - Fork 480
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 support for net40 and net45 #387
Conversation
moh-hassan
commented
Jan 10, 2019
•
edited
Loading
edited
- Add support for net40 and net45 for the netstandard2.0 project.
- Resolve the null EntryAssembly Problem in issues: Version 2.4.x System.ArgumentNullException parsing options in unit-test #389 WithNotParsed() not being called during test #424 forever.
- Pass the test case 'Add unit tests for Issue389 #[392]'([no-merge] Add unit tests for Issue389 #392)
- Create commandline multi-target project net40;net45;netcoreapp2.0 .
- Ccreate commandline Test multi-target project net461;netcoreapp2.0 .
- Add class to support net40
- Modify the cs demo to run in net40;net45;netcoreapp2.0;netcoreapp2.1
- Pass all tests (334 test case) in both net461 and netcoreapp2.0.
- Appveyor CI success on the fork project:
Thanks for starting this. It was next on my list. Looks like fsharp project wont work on anything prior to 4.5. We can probably split that build off for any <4.5. I've been seeing requests for framework 3.5 support, although off the top of my head I can't think of how cumbersome that might be. |
Added explicit support for .NET 4.6.1 and .NET Core 2.0.
This looks good, although the FSharp package is failing because FSharp isnt supported at the net40 level. @moh-hassan Any ideas on how to prevent it from building when doing a net40 build? We can probably separate it out somehow. The build is getting complicated... lol |
Hi @ericnewton76 ,
With Condition:
I generated Fsharp package by the command:
I get a package: `CommandLineParser.FSharp.2.5.0.nupkg' in my modified pR Let me know i this done in your side, and ready for ping. I'm online now. Can you check the generated package. |
Gotcha. I'll do that
Thanks again
…On Fri, Feb 1, 2019 at 12:45 PM Mohamed Hassan ***@***.***> wrote:
Hi @ericnewton76 <https://github.com/ericnewton76> ,
You can use conditional build
Modify the xml project `CommandLine.csproj' and replace
<ItemGroup>
<PackageReference Include="FSharp.Core" Version="4.5.1" Condition="'$(BuildTarget)' == 'fsharp'" />
</ItemGroup>
With Condition:
<ItemGroup Condition="'$(TargetFramework)' != 'net40' and '$(BuildTarget)' == 'fsharp'">
<PackageReference Include="FSharp.Core" Version="4.5.1" Condition="'$(BuildTarget)' == 'fsharp'" />
</ItemGroup>
I generated Fsharp package by the command:
msbuild /t:pack /p:BuildTarget=fsharp
I get a package: `CommandLineParser.FSharp.2.5.0.nupkg' in my modified pR
the package include net40,net45,net461 and netstandard2
Let me know i this done in your side, and ready for ping. I'm online now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#387 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACG_zKbCtBjizh4vVSPgfj9u6M0YRd-Xks5vJH1MgaJpZM4Z4uJU>
.
--
E.Newton
Senior Software Craftsman
Cell: 407-497-1429
EMail: ericnewton76@gmail.com
|
@ericnewton76
I run I fixed the failed test by using the solution I explained in the same issue All tests pass Successfully in both net461 and netcoreapp2.0 The test pass in CI Appveyor with the green success text: NET461
NETCoreApp2.0
The confliction in the merge is:
which can be resolved manually |
What's the status of this issue? It would be really great if it could be merged soon |
@moh-hassan @ericnewton76 |
The PR is ready to be merged: The current Conflicting files:
It Can be resolved to:
tests/CommandLine.Tests/Unit/Text/HelpTextTests.cs
can be resolved to:
@ericnewton76 |
@vgalka-sl |
@moh-hassan Thank you! Seems Eric is busy, so we just have to wait. |
I have to resolve an error (not related to the current PR) after rebasing , may be due to merging a previous commit:
'VersionRequestedError' is duplicated in the same file: Error.cs in line63 and line68 Also, resolving the following compilation errors:
Can you confirm these modifications? Edit: |
The new PR#428 submitted by @Wind010 is fine and fix the issue of compilation errors and I can rebase Upstream after it's (PR#428) merged. |
Moving the PR to a separate branch in a new PR# 430 |