Just playing with Xamarin.Forms, downloaded sample project TipCalc from here. When I try to open the solution in Xamarin Studio I am getting this error.
When i try to build the project, i get this error
Error MSB4019: The imported project "C:\Program Files
(x86)\MSBuild\Microsoft\Portable\v4.5\Microsoft.Portable.CSharp.targets"
was not found. Confirm that the path in the declaration is
correct, and that the file exists on disk. (MSB4019) (TipCalc.Android)
Please someone guide me, what should i configure in my project, to make this to run successfully. I am using Xamarin Studio 5, my OS is windows 7 ultimate.
I installed Portable Library Tools followed by Xamarin.Android to fix this. This error occurs if we try to load the pcl project without installing portable library tools, because Xamarin checks for following file in the machine while loading pcl project.
C:\Program Files
(x86)\MSBuild\Microsoft\Portable\v4.0Microsoft.Portable.CSharp.targets
Related
I'm a mac developer trying out xamarin. I first tried Xamarin.Mac, but found that there was barely any support on that, so I added in Xamarin.Forms by adding some code and importing a NuGet package.
I'm using xcode for UI design and Visual Studio Mac 2022 for this, but whenever I try to run it throws the error 'xamarin/xamarin.h' file not found. I don't have a xamarin.h file, and don't know how to create one.
Error PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate entry. MyApplication (Package) C:\MyApplication (Package)\GENERATEPROJECTPRIFILE
<- This is the error I always get if I want to compile my .NET 5 WinUI 3 (0.8.1) Desktop Packaged Project.
Either on the Packaging Project or on the main Application Project.
And bevor this error ther is always this error:
Error PRI222: 0x80073b0f - Unspecified error occurred. MyApplication (Package) C:\MyApplication (Package)\GENERATEPROJECTPRIFILE
On the internet, I couldn't find any solution.
Can please somebody help?
Some additional info:
I have the latest version of Visual Studio Community (16.10.3)
I also have the latest version of my Project Reunion/Windows App SDK NuGet packages (0.8.1)
... and each other NuGet is also up to date
My C# application uses some [DllImport] and [ComImport]
I also use the PInvoke from Microsoft's CsWin32 project
I tried to create a new project and copy code file content by file content into new files but it does not help.
I had the same error, what I did was to remove all the images from the assets and it worked, then I was adding little by little until I found the assets that gave error.
I understand that the error is generic, VS does not help much.
I have created new Xamarin.Forms project with Android and iOS. After that I installed Realm(3.4.0) in my all 3 projects(PCL, Android and iOS) using nuget. I have also manually added FodyWeavers.xml and I am getting below warning:
could not resolve reference "packages\realm\3.4.0\build..\native\ios\universal\librealm-wrappers.a". if this reference is required by your code, you may get compilation errors.
When I am checking for this file at the specified path, file exists in my system.
For me it's solved by delleting folders bin, obj(Image below) and closing the Visual Studio, after just rebuild it and everithing ok.
Hope it helps.
Previously I was using Xamarin Studio to build the App and it was working perfectly fine. Now I copied the same solution and try to build on Visual Studio through Xamarin Mac Agent. whenever I try to run the App, I am getting following error:
The root assembly
/Users/eagle/Library/Caches/Xamarin/mtbs/builds/App1.iOS/3592b16d5f6494c29443153f9249eb47/bin/iPhone/Debug/App1.exe
conflicts with another assembly
(/Users/eagle/Library/Caches/Xamarin/mtbs/builds/App1.iOS/3592b16d5f6494c29443153f9249eb47/bin/iPhone/Debug/App1.exe).
Upgrade the VS to current stable channel version, refer to here
Try to rename Application Name in your project in visual studio,since both two assembly would be referred to same place.
When i build current project for wp8 , everything works fine. When i build for windows8 i get following error :
: error MSB4019: The imported project "C:\Program Files
(x86)\MSBuild\Microsoft
\VisualStudio\v12.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props"
was not found. Confirm that the path in the declaration is
correct, an d that the file exists on disk.
I have spend a couple of hours searching for solution on the internet but to no avail.
Anyone have any ideas ???
I have been troubleshooting the same issue, but I am building for Windows 7. However, when I searched, I found this, which is specific to Windows 8, and may be the key to your answer.
Found at http://gmc.yoyogames.com/index.php?showtopic=570925:
On that page under Visual Studio it states: "You will also need to install a version of Microsoft Visual Studio ... that supports Windows Store Javascript app creation.."
and
its Visual Studio Express for Windows 8. I had installed Visual Studio Express for Desktop which is not suitable.
In my case, the problem was that the project had VS 12.0 coded as a variable into the jsproj file while I was using VS 14.0 (VS2015). Changing the "12.0" to "14.0" fixed it for me, once I saved changes, closed and reopened the project
.