Skip to content
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

Support NET Standard 2.0 #40

Merged
merged 5 commits into from
Mar 1, 2021
Merged

Conversation

TravisOnGit
Copy link
Member

Ask and you shall receive! After several requests to add NET Standard support to Forge, I went down the rabbit hole and came out with hopefully a solution.

  • Update csproj to use SDK style
  • NET Standard 2.0 support added with multi-targeting. This supports .Net Core 2.0+, .Net Framework 4.6.1+, .Net 5.0.
  • Available at \lib\netstandard2.0\Microsoft.Forge.TreeWalker.dll
  • NET Framework 462 still supported explicitly.
  • pdb symbols file added to support better debugging.
  • Updated Roslyn (Microsoft.CodeAnalysis.Scripting) to latest version. Removing old tie to net462 due to dependency on System.Collections.Immutable.

@@ -48,7 +48,7 @@ public Task<int> GetCountAsync()
return Task.FromResult(2);
}

public IDictionary<string, string> GetDictionary()
public Dictionary<string, string> GetDictionary()
Copy link
Collaborator

@zhengmu zhengmu Mar 1, 2021

Choose a reason for hiding this comment

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

Dictionary [](start = 15, length = 10)

just curious, why do you change from "IDictionary" ? #Closed

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh oops. I was testing something else before I started the csproj changes. I'll remove this.


In reply to: 584957321 [](ancestors = 584957321)

<Compile Include="src\SubroutineAction.cs" />
<Compile Include="src\TreeNodeContext.cs" />
<Compile Include="src\TreeWalkerParameters.cs" />
<Compile Include="src\TreeWalkerSession.cs" />
Copy link
Collaborator

@zhengmu zhengmu Mar 1, 2021

Choose a reason for hiding this comment

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

will the new SDK style auto include all .cs files? #Closed

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes! Most of the messy tags that used to be required are default behavior in the new csproj format.


In reply to: 584981315 [](ancestors = 584981315)

Copy link
Collaborator

@zhengmu zhengmu left a comment

Choose a reason for hiding this comment

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

:shipit:

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

Successfully merging this pull request may close these issues.

None yet

2 participants