--project-file does not accept relative paths
See original GitHub issueI 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+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
I think this has been improved sufficiently