-
Notifications
You must be signed in to change notification settings - Fork 64
Convert more projects to SDK-style. #547
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
Conversation
141bc5f to
3b46a41
Compare
|
This has now produced a (mostly, aside from known issues) green build in XA - dotnet/android#4347, and is ready for further cleanup/review. I'm a touch worried about extending our usage of |
|
Nice! |
|
There's still some work needed on the xamarin-android side before we can land this (specifically with respect to handling the addition of a target framework on certain output paths), but I'd love some more eyes on this since the diff is so large. |
|
It feels like we are removing a lot of I think we're better off using |
|
It is more of a theoretical concern, though we did see issues related to this on the xamarin-android side with LibZipSharp. One example of similar potential concern here is with Additionally, once this "modernization" pr lands, we'll be looking at updating some of these tools to be .NET Core apps, and I think the |
|
We could use something like this to ensure we choose the I can see leaving the TF for .exe files, since presumably we'll soon be building them with |
|
I'm not sure if that explicit hint path approach would solve the problem entirely, and it doesn't handle the "which one do we use at runtime and redistribute" question. I can partially revert the |
|
With the HintPath, only the one mentioned would end up in the OutputPath, so it will ensure we only use/ship the one we want. |
|
Ok cool, that approach does appear to be working in a small test case as long as It also has the added benefit of copying supplemental (.pdb/.xml) files automatically, without needing to set |
jonathanpeppers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a draft PR on the xamarin-android side to make sure it won't break the build?
|
Yeah I've been testing with XA along the way in dotnet/android#4347. The latest changes are incompatible, but I will be pushing something here shortly that reworks things based on yesterdays discussion. |
…ignore it if it doesn't exist yet.
|
I think this is ready to go again after backing out the AppendTF removals. There's two failures in the latest XA build but they don't seem related - https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=3546904&view=ms.vss-test-web.build-test-results-tab&runId=11800708&resultId=100261&paneView=attachments |
|
@pjcollins I think I agree the actual error was which is really weird. |
|
Nice work! ❤️ I approve, but since I'm technically the PR owner I can't add an approval. |
Bulk translate various `.csproj` files to [Short-Form Projects][0]:
* Remove `packages.config`, replace with `@(PackageReference)`.
* Set `$(AppendTargetFrameworkToOutputPath)`=False so that we
preserve the existing directory structure.
* Remove `Mono.Options-PCL.cs`, replaced by `Mono.Options` NuGet.
* `JdkInfo.props` doesn't exist when doing preparation via the
xamarin-android repo, so ignore it if it doesn't exist yet.
[0]: https://docs.microsoft.com/en-us/dotnet/core/tools/csproj#additions
Co-authored-by: Peter Collins <[email protected]>
Convert these projects to SDK style
.csprojfiles: