You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 27, 2019. It is now read-only.
Port the solution NETStandard.
This will unlock ability to port GitVersionTask to .NETStandard.
This will unlock dotnet cli builds for projects that consume GitVersionTask
@dazinator 2. StringFormatMethod is just a ReSharper helper-attribute as far as I know. 3. Latest version, 10.4.0, supports netstandard1.0-- or one could remove the annotations. 4. Just took a quick look,.. I can't see that WarningException ever gets serialized, but I might be missing something.
[StringFormatMethod("format")] attribute (no idea how to replace this - perhaps need compilation directive.)
using JetBrains.Annotations;
I would add a compiler directive for these ReSharper features based on the platform you are currently viewing in the editor, so at least if they switch to the full .NET Framework, these features will still work for them. (ie. #if NET45)
[Edit: never mind from @pdrhsm 's comment it is supported on .NETStandard 1.0 now]
SerializationInfo - (no idea how to replace this - perhaps need compilation directive.)
Since binary serialization is not supported until .NET Standard 2.0, I have been using compiler directives to comment this feature out
@pdrhsm As a workaround for LibGit2Sharp not having a Portable library... to continue working, in my GitTools.Testing PR, I modified the csproj to conditionally include the portable library version depending on the TargetFramework. GitTools.Testing.Tests.csproj#L32-L40
Also, you should open a PR against feature/netstandard if you want to merge your changes in.
Now that GitTools.Core is targeting netstandard1.3 - The GitTools.Core.Tests project which is net45 can't reference it. I'm going to re-target the tests project to net46 to resolve this..
Activity
dazinator commentedon Jun 28, 2017
Need latest libgit2sharp nuget package (with supports for netstandard1.3) to be released.
#40 - Restructured solution based on netstandard 1.3 project.
dazinator commentedon Jun 28, 2017
I have started work in a branch but it's not yet successfully building.
Following cannot be resolved:
[StringFormatMethod("format")]attribute (no idea how to replace this - perhaps need compilation directive.)using JetBrains.Annotations;SerializationInfo- (no idea how to replace this - perhaps need compilation directive.)dazinator commentedon Jun 28, 2017
Have attached an API portability analysis: ApiPortAnalysis.xlsx
pdrhsm commentedon Jun 30, 2017
@dazinator
2. StringFormatMethod is just a ReSharper helper-attribute as far as I know.
3. Latest version, 10.4.0, supports netstandard1.0-- or one could remove the annotations.
4. Just took a quick look,.. I can't see that WarningException ever gets serialized, but I might be missing something.
dazinator commentedon Jun 30, 2017
Yeah the serialisation constructor for exceptions used to be a best practice. Im not sure its required anymore though..
conniey commentedon Jun 30, 2017
I would add a compiler directive for these ReSharper features based on the platform you are currently viewing in the editor, so at least if they switch to the full .NET Framework, these features will still work for them. (ie. #if NET45)
[Edit: never mind from @pdrhsm 's comment it is supported on .NETStandard 1.0 now]
Since binary serialization is not supported until .NET Standard 2.0, I have been using compiler directives to comment this feature out
JakeGinnivan commentedon Jul 1, 2017
Happy to just remove all blockers, rather than solving
pdrhsm commentedon Jul 3, 2017
Removed SerializationInfo and updated to newer version of JetBrain.Annotations here.
I was unable to push my commits to GitTools.Core@feature/netstandard.
Edit: So it seems that all thats left now is waiting for LibGit2Sharp to release a nuget with netstandard support.
conniey commentedon Jul 3, 2017
@pdrhsm As a workaround for LibGit2Sharp not having a Portable library... to continue working, in my GitTools.Testing PR, I modified the csproj to conditionally include the portable library version depending on the TargetFramework. GitTools.Testing.Tests.csproj#L32-L40
Also, you should open a PR against feature/netstandard if you want to merge your changes in.
dazinator commentedon Jul 3, 2017
@pdrhsm I have submitted a PR on your behalf and merged those changes in, thank you.
@conniey - good idea, I'll use the same approach for now.
dazinator commentedon Jul 3, 2017
Now that GitTools.Core is targeting netstandard1.3 - The
GitTools.Core.Testsproject which isnet45can't reference it. I'm going to re-target the tests project tonet46to resolve this..dazinator commentedon Jul 3, 2017
The next blockers are all with
ProcessHelper- it usesProcessStartInfo,Processand it's kin. These are all not available until NETStandard2.0 - https://github.com/dotnet/corefx/issues/12797The sole usage for the
ProcessHelperwithin GitTools.Core is for theDumpGraph()method - because it shells out togit.dazinator commentedon Jul 3, 2017
Ok I think this can be reviewed now. I ended up removing
DumpGraphonnetstandard- because of the lack of system.diagnostic.process api's.dazinator commentedon Jul 3, 2017
PR Submitted.
dazinator commentedon Jul 9, 2017
Waiting on GitTools/GitTools.Testing#6 to be merged, so can then get the tests on travis to run under netcoreapp.
pdrhsm commentedon Aug 4, 2017
@dazinator as far as I can see this seems to be done?
If so; when can we expect as release?! 👍
dazinator commentedon Aug 4, 2017
@pdrhsm -
GitTools.Corewas released to nuget: https://www.nuget.org/packages/GitTools.Core/