Skip to content
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

Use props/ directory directly #813

Closed
wants to merge 1 commit into from
Closed

Conversation

VPeruS
Copy link
Contributor

@VPeruS VPeruS commented Sep 21, 2018

Using in csproj file that lay not at two dirs deep of any subproject cause warnings about missing file.

Using <Import> in csproj file that lay not at two dirs deep of any subproject cause warnings about missing file.
@Perksey
Copy link
Contributor

Perksey commented Sep 21, 2018

👍 improvement

@Nihlus
Copy link
Contributor

Nihlus commented Sep 21, 2018

The SolutionDir variable is made for this exact purpose. If it's not working, we'd better fix that instead.

@Perksey
Copy link
Contributor

Perksey commented Sep 21, 2018

Wait is it just warnings it's throwing, not errors? If so I think it's best to just ignore the warnings, and use the current variable.

@VPeruS
Copy link
Contributor Author

VPeruS commented Sep 21, 2018

Just a warning about missing file

If so I think it's best to just ignore the warnings, and use the current variable.

Never ignore warnings

@Perksey
Copy link
Contributor

Perksey commented Sep 21, 2018

Yes but if the warning is just a false-positive, then there's no problem. The file obviously exists.

@Nihlus
Copy link
Contributor

Nihlus commented Sep 21, 2018

Which file is raising the warning? If it's just the stylecop reference, use SolutionDir there.

@VPeruS
Copy link
Contributor Author

VPeruS commented Sep 21, 2018

$(SolutionDir) is set only when you build complete solution, but I usually build single csproj

@Perksey
Copy link
Contributor

Perksey commented Sep 21, 2018

And when you build a single csproj, does the issue fixed by this PR break the build, or does it continue regardless?

@VPeruS
Copy link
Contributor Author

VPeruS commented Sep 21, 2018

And when you build a single csproj, does the issue fixed by this PR break the build, or does it continue regardless?

This pr don't break build.

@Perksey
Copy link
Contributor

Perksey commented Sep 21, 2018

So building a single csproj works fine then?

@VPeruS
Copy link
Contributor Author

VPeruS commented Sep 21, 2018

Yeap, but it's looks like dotnet-cli issue. Docs(online) didn't specify that you can build solution, and it will be good to have -p flag to pick project

@Perksey
Copy link
Contributor

Perksey commented Sep 21, 2018

Given that this doesn't affect build, this PR is more a nitpick than necessity and, as such, isn't really needed.

@VPeruS
Copy link
Contributor Author

VPeruS commented Sep 24, 2018

Of course it doesn't broke build, it just allow you to build single project without building others, and many of them are completely separate, like Rewrited, Windows native bindings

@Nihlus
Copy link
Contributor

Nihlus commented Sep 24, 2018

The OpenAL PR also addresses this issue by defining its own solution root variable, and using a single relative path from each project to import the common properties where it lives.

@Perksey
Copy link
Contributor

Perksey commented Sep 24, 2018

To be honest, I'm against this being merged for reasons we've both already stated.

@VPeruS VPeruS closed this Sep 24, 2018
@varon
Copy link
Member

varon commented Sep 24, 2018

I can't believe nobody said this, but thanks as always @VPeruS. We appreciate every contribution, even the ones that don't make it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants