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
Build error when duplicated (vsmac bug) extensions are referenced #5759
Comments
Quick ugly workaround :
The original snippet was :
|
It works when I follow your instructions. OTOH It seems to skip |
Logs were cut down...
so it seems |
It also works with current stable and I only see one extension in your logs: MyApp.iOS.NextToSeeExtension.appex |
Here is a repro project @spouliot , you will have to restore nuget packages : CrossTVST.zip |
OMG, don't ask me why but you are right, the references where not the right ones : A manual edit seems to fix it @spouliot |
@jstedfast @sgmunn I don't know how it happens (but the SDK don't read, nor modify, .csproj) but it causes issues in builds |
Do we know how this happened? Are there steps that I can perform in the IDE that cause this? |
I just created a new iOS single view project + new watchOS project with VSMac master and got the issue. It's indeed the double watchOS reference:
Likely something wrong with the template or the new project dialog mechanisms. Version info: https://gist.github.com/VincentDondain/2b9ce6c3ff443f4262259e7306dc3219 |
I bet the IPhoneProject logic is duplicated in the TemplateWizard logic |
Hi. I just had the same issue. I had a extension project included in iOS then I had to remove it. Then a few days I had to add the same code again. It was removed from the code base as well. When I re-added the new project I got this error. I looked at my git history and the thing is that the IDE did not remove the reference from my csproj file at the time I removed the extension project. My git history says this. So when I re-added the extension project it just added another entry to the iOS csproj file. This post saved me. Thanks! ... as a note to people that still have problems with the "Ditto" after they have removed the dublicate entry and the code compiles but get this error deploying to a real iOS device: Restart IDE. That did the trick. I'm on VS for Mac. |
I had the same problem and I spent several hours trying to figure out what it was! I had 2 identical "Project References" in my Xamarin ios .csproj file. Open that file up using the VS for Mac editor (right click the .csproj file and it should be the top-most option) and open it and search for Project Reference. If there are identical entries, comment out one of them and save the changes. |
Steps to Reproduce
Expected Behavior
Build success
Actual Behavior
Build fail with this error message :
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(1629,4): error MSB4094: "/Users/me/WKS/CrossTVST/TVST.Android.UI/TVST.iOS.NextToSeeExtension/bin/iPhoneSimulator/Debug/device-builds/iphone10.4-12.1/extensions.appex;/Users/me/WKS/CrossTVST/TVST.Android.UI/TVST.iOS.NextToSeeExtension/bin/iPhoneSimulator/Debug/device-builds/iphone10.4-12.1/extensions.appex" is an invalid value for the "Source" parameter of the "Ditto" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".
Environment
Build Logs
https://gist.github.com/jonathanantoine/95b212c99bf73db3411faae46a607d8e
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: