Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Port to .NETStandard 2.0 #893

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

merqlove
Copy link

@merqlove merqlove commented Jan 9, 2020

That port contains only nestandard2.0 due crosscompat. NETStandard 2.0 projects can be used under .net.
Dropped .NET only dependencies. Now project uses netstandard deps only.
Removed some old files in Requests, for better compile.
Remove nuspec usage. Now all in .csproj.

If that project need such upgrade merge & change it for project needs.

@@ -426,7 +432,7 @@ public static string WriteReadCode(Param p)
public static FileStream MakeFile(string path)
{
if (!Directory.Exists(Path.GetDirectoryName(path)))
Directory.CreateDirectory(Path.GetDirectoryName(path));
Directory.CreateDirectory(Path.GetDirectoryName($"{currentDirectory}../../../../{path}"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this? this doesn't seem to be related to .NETStandard change, or it's a changed that is not explained in the commit message

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got error with relative path, so it is cd to the project root from bin/debug directory

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what error? this info needs to be in the commit message

<FileAlignment>512</FileAlignment>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no reason to change this project's targetFramework, projects with .NETFramework 4.x can still link to .NETStandard libraries

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants