-
Notifications
You must be signed in to change notification settings - Fork 1
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
It is not clear how to use this fork in a C# application #3
Comments
Thank you for your suggestion. <Edit: corrected the mixup of solution and project> |
@gjdv thanks for responding. I'm using visual studio code so I'm not sure:
applies to me. Can you confirm whether your port of SimpleNLG works in .NET Core, or is it only for .NET Framework? |
It had been a while since I used the this code (or C# at all :) ), so I verified for you by creating a new solution and project. The code works in both frameworks (.NET Framework and .NET Core). Here are the steps to take in Visual Studio:
|
@gjdv thanks for the detailed response. I have copied SimpleNLG.csproj to the console app folder but there are dependency errors. The output of
It seems to me that this fork will only with Visual Studio, not Visual Studio Code, because Visual Studio Code does not use solution files. |
@ccaneke Thanks for the info. It looks like 'Package reference projects' are a new format, which I should be able to migrate to (https://docs.microsoft.com/en-us/nuget/consume-packages/migrate-packages-config-to-package-reference). I'll give it a try tomorrow |
@ccaneke I tried migrating to PackageReference, which seemed to work and led to the project file attached (and removed the packages.config file). Then I tried recreating the above test project in .NET Core and found that now I get messages that SimpleNLG is not compatible with .NET Core. Unfortunately porting it from .NET Framework to Core is far from straight forward and will take me more time than I have available right now. There seems to be an (unofficial) tool to help in the process. Perhaps you can give that a try? |
@gjdv thanks for updating the project to use a .csproj project file instead of a package.config file. Could the reason that SimpleNLG is not compatible with .NET Core be either because the .csproj references .NET Framework instead of .NET Core, or SimpleNLG uses namespaces from .NET Framework that are not available in .NET Core? When I get the chance I'll take a look at that try-convert dotnet tool you linked. |
Since there doesn't seem to be a nuget package for this fork, it would be helpful to include a usage section in the README
The text was updated successfully, but these errors were encountered: