Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Problem with XamlCTask - solution don't compile after update to 1.4.3-pre2

$
0
0

Hi all

I work with VS and have a shared-project.
After update to 1.4.3-pre2 (without change anything), I was not able to compile anymore (not Android, not iOS and not WP).
I have lost now over a full day to try solve the problem and finally have found a solution (at least for my problem).
Therefore, I post the steps here for all other users.

Error-message:

Die Xamarin.Forms.Build.Tasks.XamlCTask-Aufgabe konnte nicht aus der M:\SW\VS_2013\Xamarin\MatrixGuide\packages\Xamarin.Forms.1.4.3.6358-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Build.Tasks.dll-Assembly geladen werden. Stellen Sie sicher, dass die -Deklaration korrekt ist, die Assembly und alle zugehörigen Abhängigkeiten verfügbar sind und die Aufgabe eine öffentliche Klasse enthält, die Microsoft.Build.Framework.ITask implementiert. M:\SW\VS_2013\Xamarin\MatrixGuide\packages\Xamarin.Forms.1.4.3.6358-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets 56 3 MatrixGuide.Android

same error-message in all projects.
Important note: I you have this problem, you also may have some other error-messages.
I then have searched the internet and found a entry in StackOverflow:
- Close solution, delete \bin\, \obj. and \packages\ folder (NuGet) and restart VS
=> I have done this, but this don't have solved my problem

To solve the problem I had to:
- close the solution in VS
- open the files:
- AppName.Android.csproj
- AppName.iOS.csproj
- AppName.Winphone.csproj
in the sub-folders of the solution with editor.
Then I had to remove (just delete) two old references (1.2.3.6257) .to .forms:

  <Import Project="..\..\packages\Xamarin.Forms.1.2.3.6257\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10\Xamarin.Forms.targets"  


and


Condition="Exists('..\..\packages\Xamarin.Forms.1.2.3.6257\build\portable-win+net45+wp80+MonoAndroid10+MonoTouch10\Xamarin.Forms.targets')" />

Where it seems, as the deletion of the import has done the job...
Note: there were also references to the new version stored in the .csproj-file.
Then reopen the solution in VS, clean and rebuild.
With these manual changes, I'm now able to further build for all platforms.

No idea how the false (old) references were added to the .csproj-file (or were not removed automatically by update to Pre-2)

So, if you have similar problems, I suggest you, to first only manually clean the .csproj-files.
If this don't solve the problem, try also to delete \obj\, \bin\, and \packages- folder (but I don't think, that this is necessary)

Hope this helps some other users... :sunglasses:


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>