-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Errors on Build related to XamlGTask #2975
Comments
I'm getting these exact errors consistently when I use VS 2017 (15.7.3) for Windows. My workaround is to delete all bin & obj folders and rebuild solution. I think VS is locking a dll somewhere in a debug folder. Cleaning the solution does not delete these folders (tsk tsk VS), so I created a batch file to delete them. Place the file in root solution directory and run it while VS is closed. Note that this script is for Windows, so you should find a Mac equivalent.
|
My issue like you.I'm clean solution and restart vs to solve my issue ; you try it. |
I can't reproduce the issue but I believe this is a locking issue |
XamlG parameter (including OutputPath) were changed in one of the -sr for 3.0.0.
If that doesn't help, please report back. @jassmith unlikely to be a locking issue |
I was able to solve the issue after updating all XF nugets to the same version. Worrisome is just, that it was building just fine several minutes before it started throwing errors, with the only changes being done in one xaml file between builds. |
It hasn't happened to me at all in the past week. It's possible, as someone above mentioned, that it was due to having conflicting versions of the XF Nuget between my Android and iOS projects. I'll obviously keep watching to see if it happens again, but I guess in the meantime, should I close the issue, and re-open it if it does indeed happen again? Thanks! |
The issue reappeared - sadly!
I have updated all the XF nuget packages, cleaned obj/bin, restarted VS -> to no avail. Please help! I will try to open a new issue |
I'm so sick and tired of this error. When will it be fixed ? |
I have the same issue. I have done the above solution and none of them work. I've loyal to XF but all these bug is making it hard to keep using XF. I'm starting to lean towards RN. |
Thanks for the feedback and comments. you should really share your projects that has the issue so we can investigate. |
The solution I am building is rather extensive. However, I can share it if it helps any... However, given the fact that reverting to an earlier version and re-doing the operations does NOT lead to the same problem, I believe the project itself will be of little help. I would suggest another approach: when I get an error of this kind (and it IS permanent when it happens) I could upload the backup copy and the faulty project (a couple of Gigs will be necessary). Then you can investigate the differences and maybe get a clue as to what went wrong. Would this be acceptable? And if so, where should I upload the projects. |
I've also had a similar experience (mobile project was previously working, suddenly begins to show this error, ensuring that all projects were targetting same XF nuget and deleting all obj and bin directories did not resolve). For those presently stuck by this issue: I have 'fixed' things by commenting out the Target with name of 'XamlG' and 'XamlC' in Xamarin.Forms.Targets. This lets me build/debug, but I have no doubt it will bite me soon enough. |
Not sure why this is closed. This is still occurring on Visual Studio for Mac with Xamarin forms 3.3.0.912540 and I don't see a real solution. |
+1 @Screech129 |
So turns out my issue was I had accidentally added a xamarin forms nuget to my core project that didn't contain forms. Hope this helps someone. |
I'm still seeing this with Visual Studio for Mac v7.6.10 and XF v3.3.0.912540. Very frustrating. |
I am getting this now after upgrading to XCode 10.1 and latest VS over the weekend. I had some success yesterday with deleting bin / obj and restarting, but now I seem to be completely jammed this morning, cannot get the droid project to run at all. Visual Studio Community 2017 for Mac Package version: 516000221 Mono Framework MDK NuGet UPDATE: I think I will list this; its pretty all over the place but "might" add value to someone.
Could someone advise how I can send more information / open a bug report to help diagnose this when it happens again? Thanks for your help |
I had the same issue: XAMLFiles parameter is not supported by XAMLGTask task. |
I had the same issue, I was using Azure Build Pipeline. It's was working locally anyway. SolutionYou need to check Consolidate tab |
This is still happening with AppCenter Build, local build seem to be working just fine:
The Xamarin.Forms have been consolidate already (the solution nuget management doesn't report any package with mismatch version). Everything is up to date (except Prism which we are still using version 6.x). The error is bad because it mask the true problem and we cannot known what is really happening or bothering the build. I don't known why this is close, but a real error for the actual problem would be required to truly fix this issue. It's a huge time waster. I still haven't figure out why it does that this time around. |
To remove the bin and obj folder under Mac OS, create a script removeBinObj.sh:
dont' forget to add the executable flag:
|
@godboutj does your script fix the issue, or? |
Seem like the VS build can be corrupted some how, cleaning the build folders, fix the issues for me. Fixing different Xamarin.Forms version and then cleaning the build/obj folders and rebuild fix that obscure error. Same as @adrianknight89 fix but for Mac OS |
Alright, thanks! |
When I try to build my XF project, I intermittently get two errors. If I try to rebuild over and over, they sometimes go away and I'm able to build.
Visual Studio Mac 7.5.2 (Build 40)
Xamarin.Forms 3.0.0.550146 or 3.1.0.469394-pre1 (happens on both)
Here are the two errors:
/Users//Projects/MemberApp/packages/Xamarin.Forms.3.1.0.469394-pre1/build/netstandard2.0/Xamarin.Forms.targets(4,4): Error MSB4064: The "OutputPath" parameter is not supported by the "XamlGTask" task. Verify the parameter exists on the task, and it is a settable public instance property. (MSB4064) (MemberApp.Droid)
/Users//Projects/MemberApp/packages/Xamarin.Forms.3.1.0.469394-pre1/build/netstandard2.0/Xamarin.Forms.targets(3,3): Error MSB4063: The "XamlGTask" task could not be initialized with its input parameters. (MSB4063) (MemberApp.Droid)
The text was updated successfully, but these errors were encountered: