question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--project-file does not accept relative paths

See original GitHub issue

I have the following file structure for my Application.

ExampleApp
├─ Sources
│  ├─ Project1
│  ├─ Project2
│  ├─ Project3
│  └─ Project4
├─ Tests
│  ├─ Project1.Tests
│  ├─ Project2.Tests
│  │  └─ stryker-config.json
│  ├─ Project3.Tests
│  └─ Project4.Tests
└─ ExampleApp.sln

When my current directory is Project1.Tests and I run dotnet stryker --project-file="../../Sources/Project1/Project1.csproj", I get the error message Project reference issue.

Likewise I get the same error message when my current directory is Project2.Tests and I run dotnet stryker with a stryker-config.json containing the following;

{
    "stryker-config":
    {
        "project-file": "../../Sources/Project2/Project2.csproj"
    }
}

The error does not occur when using absolute paths. The version of dotnet-stryker I am using is Version 0.11.0 (beta). The issue happens both in Windows 10 and macOS.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
jisperliucommented, Jul 3, 2019

+1 the logging is confusing. It’s probably better to let ppl know they can just use project name instead of giving a full path and this intuition that ppl can use relative path

0reactions
rouke-broersmacommented, Nov 6, 2021

I think this has been improved sufficiently

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why this Relative Path of a file is not working (..\) and (.\)
I have been working on a project but while opening files from different folders I came across this peculiar problem where the relative...
Read more >
Relative path issues for projects in a solution
Given a solution file in a subfolder, paths within that solution file will be relative to the file's location. This doesn't seem to...
Read more >
Relative Path could not be found!
Accept Solution Reject Solution. Right before that line, issue the command 'dir' to display the current directory. This will tell you where ...
Read more >
Relative Paths - NI Community - National Instruments
Open CVI, and it understands the relative include paths in the project, and it builds fine, even after I discard all previous object...
Read more >
Can't get the file from relative path, why? : r/dotnet
Hello, I'm trying to get the path to the email template and send an email using that template, which is written in html....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found