-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Unable to get compilation #28
Comments
Finally got a chance to return to this... Hmm, I can very easily recreate the conflicting references problem, but it does not actually appear to be the reason for compilations failing in my real project. I've adapted my sample and attached it. You'll see it logs a whole bunch of problems, but still manages to create the compilation at the end of the process... Are you able to repro this? |
OK, this gets weirder... I just found that I can only repro the conflicting references problem if I first build the Target solution (in VS) and then run the repro. If I then delete the
|
OK, WOW. If I simply So the presence of binaries under |
That's great intel. I wasn't able to reproduce when I tried a couple days ago - hopefully this gets me closer. My first thought it maybe is has something to do with the project.assets.json file that the SDK NuGet task sticks in the obj folder. That can screw up a build if it gets out of sync. |
Hi @daveaglick - just wondering whether you managed to repro this? |
I haven't had a ton of OSS time the last week or so - hoping things settle down a bit at work and I can get back to it this week. |
Tried some things tonight:
These are the errors I see when running against a clean source tree:
And when running against a dirty tree without project.assets.json:
|
Another possible clue... I tried checking what files were being reported by The failing case reports a hell of a lot more files. Here is the list from a working build and a failing build. Not sure what this tells me yet, if anything. Think I'm done for now 😫 |
I finally got some time to play with this, but didn't get very far. I grabbed the BuildalyzerRepro.zip. It seems to be looking for SampleTarget.sln which doesn't appear to be included. Is this something I should create? If you could check your updated sample files in somewhere, that would be helpful. |
@curtisshipley SampleTarget.sln is in there - it's under the Target directory. |
Ah, so it is. Thanks. Now I'm getting bitten by this: An unhandled exception of type 'Microsoft.Build.Exceptions.InvalidProjectFileException' occurred in System.Private.CoreLib.dll I'll see what I can do to get past it. |
@curtisshipley if you didn't find it already, a workaround for the MSBuild problem is discussed in #32 |
Buildalyzer 1.0.0 was released to NuGet last night. Can you please try it out when you get the chance and let me know the status of this issue? FYI - the Buildalyzer 1.0.0 API has changed significantly. Revised documentation is forthcoming, but I wanted to get the release out there ASAP. Hopefully you'll be able to figure out the differences, but if not the source code of the tests is a good place to look or wait until better docs are out next week. |
I can no longer repro this particular issue with |
When calling
GetCompilationAsync
I am seeingTaskCanceledException
for some projects. Digging in, I found that the build itself is failing:In this code, the final line triggers a build of the solution. Here is the full log output of my application run, which includes the Buildalyzer output interspersed with my own library's output.
Notice these points of interest:
Xamarin.Forms.Build.Tasks.FixedCreateCSharpManifestResourceName
TaskCanceledException
at the end. I get this when attempting to get the compilation for theServices.Connected
project. Other projects (Utility
,ViewModels
, andServices
) do successfully return a compilation (I have no idea if it's usable yet though)The text was updated successfully, but these errors were encountered: