lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shad Storhaug (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENENET-565) Port Lucene.Net.Replicator
Date Fri, 21 Jul 2017 08:57:00 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16095979#comment-16095979
] 

Shad Storhaug commented on LUCENENET-565:
-----------------------------------------

> So I was going to ask how you where running tests?

I use the Visual Studio Test Explorer for both the {{Lucene.Net.sln}} and {{Lucene.Net.Portable.sln}}
solutions. But on the CLI, we use {{dotnet test}}. It requires the [NUnit 3 Test Adapter](https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnit3TestAdapter)
for it to discover the tests.

Connie Yau at Microsoft contributed the current hack to get it working in each of these scenarios.


1. The {{project.json}} and {{<project name>.xproj}} files get it working on .NET Core
and on the CLI. It only works in Visual Studio 2015 update 3.
2. The {{<project name>.project.json}} file allows Visual Studio 2012+ to build and
test on .NET Framework. It is the replacement for the {{package.config}} file, which would
interfere with the .NET Core build if it were present.

I have the lucene-cli tool (which only targets .NET Core) working fine in Visual Studio 2015,
but all breaks down on the command line during the restore process. I think you should be
able to use the same structure for both of your projects to get them working in Visual Studio
2015 update 3. 

However, note that currently .NET Core doesn't work in other versions of Visual Studio than
2015 update 3.

But even if you just go back to {{package.config}} to get it working on .NET Framework that
would be fine for now - I can straghten it up, merge it, and then do the {{.csproj}} conversion.
However, once we are converted it won't work at all on any Visual Studio version except 2017.
Thanks Microsoft :(.

> Port Lucene.Net.Replicator
> --------------------------
>
>                 Key: LUCENENET-565
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-565
>             Project: Lucene.Net
>          Issue Type: Task
>          Components: Lucene.Net.Replicator
>    Affects Versions: Lucene.Net 4.8.0
>            Reporter: Shad Storhaug
>            Priority: Minor
>              Labels: features
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message