I am trying to build an app in Xamarin Studio that is synced with my Windows computer using iCloud Drive and I am getting this error when I try and build:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets:
Error: Error executing task CreateAdditionalLibraryResourceCache:
Directory '/Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/SkimurSkimmer/SkimurSkimmer/C:\Users\Edward\AppData\Local\Xamarin\Android.Support.v7.AppCompat\20.0.0\content\support\v7\appcompat' not found. (SkimurSkimmer)
...SkimurSkimmer/mmer/SkimurSkimmer/C:\Users\Edward\AppData....
The appending of the Windows path onto the OS-X path is an issue with the files that you are syncing.
Delete the bin and obj output directories in the project subdirectory:
** Actually within all your projects of the solution.
In Xamarin Studio do a Build All.
At that point, the cache directory will be created if it does not already exist and the required resource will be downloaded and inflated.
You have to watch out for sync'ing those output directories, especially the obj.
The other to watch out for is the datetime stamp issues, as differences between the machines can cause things not to get rebuilt when needed. Again deleting the obj and bin directories solve it
Hi I also got the error: âError executing task CreateAdditionalLibraryResourceCacheâ, and my problem turned out to be a form of PathTooLongException. So, to fix this particular error, all you have to do is move the project to some other shorter directory such as "C:\", that is, if you're working in Windows. Btw I'm working in Visual Studio 2015.
Related
I am getting this error for various DLL's which are outputs of projects in my solution.
Things I have tried:
Restarting PC multiple times
Closing visual studio
Turning off all visual studio extensions
Deleting the files manually in the explorer. I get the error "The action can't be completed because the file is open in another program"
Using ProcessExplorer to find processes that are using the DLL's. It does not find any processes
I have tried using ResourceMonitor and WhoLockMe as well, to no avail
I have killed the explorer.exe process and that didn't work either
From command line I ran 'git reset --hard HEAD' to revert to the last commit (which was a stable build)
Any other ideas how I might be able to unlock these files?
Update: Turns out that some of the DLL's in every solution that I opened with Visual Studio yesterday are permanently locked
I do not have Visual Studio Achievments installed and I have disabled all extensions. Closing open documents did not help.
Somehow the issue solved itself after I did the following:
Clone the project into a different folder
Build and run the cloned project with Visual Studio
A few hours of programming later I tried to delete the files and they were no longer locked
I'm sorry I cannot seem to fix this error:
Severity Code Description Project File Line Suppression State
Error CS2012 Cannot open
'C:\Users\Usuario\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe'
for writing -- 'Access to the path
'C:\Users\Usuario\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe'
is
denied.' WindowsFormsApp1 C:\Users\Usuario\source\repos\WindowsFormsApp1\WindowsFormsApp1\CSC 1 Active
I suppose it has something to do with the file being read only? I tried changing it and it reverts to read only, I tried closing and reopening VS, I tried running it as an administrator, I changed the assembly name and default namespace and now it won't even run the debugger
I'm new to C#, I used to do Java and never had an error like this one, sorry if it's something very simple. By the way I'm using Windows 10 with Bitdefender installed
Had the same problem and fixed it with deleting obj directory.
Hope it helps :)
This issue occurs because the dll file is open some where, suppose you try to delete the dll file from obj folder then also message appears that "The file is open in another program."
In my case, I close all VS instance and copy the root folder and paste it into another folder then open my solution in VS it works fine.
I have ran into this issue on a few occasions. It seems the best way to fix this is to close down everything and restart your computer. It seems there is a lock on a file within the bin folder of the project and the best/only way I found so far to get around this issue is to restart your computer.
I could solve this restoring the .exe from the Quarantine zone in the Avira Antivirus, restarting the computer and turning off the real time protection in Avira, after these steps I could compile the project again.
I created a C# Website using Visual studio 2015 in my laptop, i copied the same folder to my desktop system and open in Visual studio 2015, when i try to run the application its suddenly gives following error.
The operation could not be completed. The system cannot find the path specified
Anybody feel same error in your latest Visual Studio 2015? I updated all the latest patches.
following trial are done
Re created the soluition file(.sln)
Deleted Web.config and added new one
Still the error exists, so i cant able to debug or run the application.
(1) Run VS as an admin (or elevated access) and open the solution.
(2) Set up a project as Start up Project (if you have multiple proj)
(3) Set up page as start up page.
this should help you run it
Create manually (Windows Explorer if necessary) a folder with name "Service References". Even if the folder does not appear in the Solution Explorer, is there.
Try adding the wsdl (xml) file again.
I had the same problem, resolved by creating a Connected Services folder in my project.
So juste create a Connected Services folder or a Service References folder in your project
I experienced this error. When I shorten the file path of the solution, the error disappear. I think you may put your solution to a folder with too long path name or your solution have some file with too long name.
I got a more specific project-load error message when I removed the project from the solution and tried to re-add it. In my case, it was because the URL/address of the application had changed in my local IIS. When I updated the tag in the .vbproj (or .csproj) file to the new value, then the project loaded successfully.
I have a WPF project that I am ready to deploy using Visual Studio 2012 but I'm running into missing file issues. I've searched for hours to find nothing but incorrect information about VS2k12 not even having ClickOnce support to it being a bug in VS that was claimed to be fixed in an update but people still complain the update didn't fix it.
If I Start the project in VS it runs fine and my test button works as expected.
When I Publish the project, the publish succeeds, running setup.exe installs successfully and program starts to main window fine.
Clicking test button crashes the application on a FileNotFoundException.
Line that causes crash:
streamReader = new StreamReader("ReceiptTemplates/templates.xml");
FileNotFoundException:
Could not find file
C:\Users\dirt\AppData\Local\Apps\2.0\GEDD6PQW.N72\8M9ONPGG.TVB\prof..tion_40c30d08e677b188_0001.0000_985901e6c8ad767f\ ReceiptTemplates\templates.xml'.
Exists:
C:\MyProject\bin\MyMode\ReceiptTemplates\templates.xml
Confirmed Does Not Exist: C:\Users\dirt\AppData\Local\Apps\2.0\GEDD6PQW.N72\8M9ONPGG.TVB\prof..tion_40c30d08e677b188_0001.0000_985901e6c8ad767f\ReceiptTemplates\ReceiptTemplates\templates.xml
The templates.xml file has a Build Action of Content.
Note: There are other folders/files in the ReceiptTemplates folder that are present such as folder/item.html and picture.bmp, just not the templates.xml file that I can tell...
What am I missing?
Thanks to #drch for this:
In my case the ReceiptTemplates/templates.xml file was set to be a "Data File" and not "Include".
Solution:
Right click Project -> Properties -> Publish -> Application Files
Find file causing issue and change it to Include
If it says 'Data File' its in the data folder
If it says 'Include' its in the bin folder
Check in C:\Users\dirt\AppData\Local\Apps\2.0\Data for it ;)
I've searched everywhere and I can't seem to find anyone with the same problem (although I'm sure people have made the same mistake in the past)...I accidentally deleted the contents of my Debug and Release folders. Now I am getting file not found errors. As a background, it's a Windows Forms Application in C#, and I'm running Visual Studio 10.
Here's the errors:
Unable to read manifest 'bin\Debug\projectName.vshost.exe.manifest'
Could not find file [pathName]\projectName.vshost.exe.manifest.
Before I was missing the manifest, I was getting an error that it could not find the other contents of the folder (the exe, the pdb, etc.), error MSB3113 (link)
Things I've tried (and some of them were far-fetched, I know):
I tried renaming bogus files for all the missing files
I tried to find the deleted files, but can't
I tried deleting all the contents of the Debug/Release folders and doing a clean build
I tried deleting the Debug/Release directories
Let me know if you can think of anything I could try out. My issue seems to be vaguely similar to this one.
Here's how I ended up solving the problem - turns out I included my bin and obj directories in my project. For anyone experiencing the same problem, simply right click and "Exclude From Project." After doing this, clean and rebuild your project, and you should be good to go.
In my case the file app.manifest was checked-out. This file is located in my Winforms project under Properties folder. I selected this file from Pending Changes window and did "undo pending checkout". After that the build succeeded. This happened in Visual Studio 2008.
Worked for me: Properties => Build => Generate serialization assembly => change from Auto to Off