Fake path of csproj #9056
Unanswered
timcassell
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Not that I am aware of. Why would you not have permissions to copy it, if you have permissions to build it (read it) apparently? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to override the path msbuild uses when parsing a csproj? I want to pretend like the csproj is at a different directory, so that relative paths will be resolved at that other directory. I would move it before running msbuild, but I might not have permissions to do so.
Context: In BenchmarkDotNet, we are looking at copying the user's original csproj to resolve a host of issues in the auto generated project. If we just copy it and build it as-is, all relative paths will be broken. And there is no easy way for us to just parse it and rewrite the relative paths ourselves that I know of, especially if they include imports. dotnet/BenchmarkDotNet#1403
Beta Was this translation helpful? Give feedback.
All reactions